[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7857] Changed index function
From: |
Torstein |
Subject: |
[Fmsystem-commits] [7857] Changed index function |
Date: |
Wed, 12 Oct 2011 09:24:57 +0000 |
Revision: 7857
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7857
Author: vator
Date: 2011-10-12 09:24:57 +0000 (Wed, 12 Oct 2011)
Log Message:
-----------
Changed index function
Modified Paths:
--------------
trunk/controller/inc/class.uicontrol.inc.php
Modified: trunk/controller/inc/class.uicontrol.inc.php
===================================================================
--- trunk/controller/inc/class.uicontrol.inc.php 2011-10-12 08:53:38 UTC
(rev 7856)
+++ trunk/controller/inc/class.uicontrol.inc.php 2011-10-12 09:24:57 UTC
(rev 7857)
@@ -146,23 +146,34 @@
self::render_template_xsl('datatable', $data);
}
- public function index()
+ public function index()
{
- if( isset($_POST['save_control']) )
+ $add_document_link =
$GLOBALS['phpgw']->link('/index.php', array('menuaction'=>
'controller.uiexample.index') );
+
+ // Show tab control details
+ if(phpgw::get_var('view') == "view_control")
{
+ $this->view_control();
+ }
+ // Save or update control details and show tab control
groups
+ else if( isset($_POST['save_control']) ||
phpgw::get_var('view') == "view_control_groups")
+ {
$this->edit_control();
}
- else if( isset($_POST['save_control_groups']) )
+ // Save control groups and show tab control items
+ else if( isset($_POST['save_control_groups']) ||
phpgw::get_var('view') == "view_control_items")
{
$this->edit_control_groups();
}
+ // Save control items and show tab receipt
else if( isset($_POST['save_control_items']) )
{
$this->edit_control_items();
}
- else if( isset($_POST['show_receipt']) )
+ // Save receipt
+ else if( isset($_POST['save_receipt']) )
{
- $this->show_receipt();
+ $this->save_receipt();
}
else{
$this->view_control();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7857] Changed index function,
Torstein <=