[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12662] modifying project class
From: |
Alejandro |
Subject: |
[Fmsystem-commits] [12662] modifying project class |
Date: |
Mon, 26 Jan 2015 23:33:36 +0000 |
Revision: 12662
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12662
Author: nudrick
Date: 2015-01-26 23:33:35 +0000 (Mon, 26 Jan 2015)
Log Message:
-----------
modifying project class
Modified Paths:
--------------
branches/dev-syncromind/property/inc/class.uiproject.inc.php
Modified: branches/dev-syncromind/property/inc/class.uiproject.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiproject.inc.php
2015-01-23 23:32:28 UTC (rev 12661)
+++ branches/dev-syncromind/property/inc/class.uiproject.inc.php
2015-01-26 23:33:35 UTC (rev 12662)
@@ -2000,7 +2000,8 @@
'datatable'
=> $datavalues,
'myColumnDefs'
=> $myColumnDefs,
'myButtons'
=> $myButtons,
- 'tabs'
=> self::_generate_tabs($tabs,array('documents' =>
$id?false:true, 'history' => $id?false:true),$selected_tab),
+ //'tabs'
=> self::_generate_tabs($tabs,array('documents'
=> $id?false:true, 'history' => $id?false:true),$selected_tab),
+ 'tabs'
=> self::_generate_tabs($tabs, array('documents' =>
$id?false:true, 'history' => $id?false:true)),
'msgbox_data'
=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
'value_origin'
=> isset($values['origin']) ? $values['origin'] : '',
'value_origin_type'
=> isset($origin)?$origin:'',
@@ -2784,8 +2785,33 @@
'edit_action'
=> $GLOBALS['phpgw']->link('/index.php',array('menuaction' =>
'property.uiproject.edit', 'id' => $id)),
);
}
+
+ protected function _generate_tabs($tabs_ = array(), $suppress =
array())
+ {
+ $active_tab = 'general';
+ $tabs = array
+ (
+ 'general' =>
array('label' => lang('general'), 'link' => '#general', 'function' =>
"set_tab('general')"),
+ 'location' =>
array('label' => lang('location'), 'link' => '#location', 'function' =>
"set_tab('location')"),
+ 'budget' =>
array('label' => lang('Time and budget'), 'link' => '#budget', 'function' =>
"set_tab('budget')"),
+ 'coordination' => array('label' =>
lang('coordination'), 'link' => '#coordination', 'function' =>
"set_tab('coordination')"),
+ 'documents' =>
array('label' => lang('documents'), 'link' => '#documents', 'function' =>
"set_tab('documents')"),
+ 'history' =>
array('label' => lang('history'), 'link' => '#history', 'function' =>
"set_tab('history')")
+ );
+
+ $tabs = array_merge($tabs, $tabs_);
+ foreach($suppress as $tab => $remove)
+ {
+ if($remove)
+ {
+ unset($tabs[$tab]);
+ }
+ }
+
+ return phpgwapi_jquery::tabview_generate($tabs,
$active_tab,'project_tabview');
+ }
- protected function _generate_tabs($tabs_ = array(), $suppress =
array(), $selected = 'general')
+ protected function _generate_tabs2($tabs_ = array(), $suppress
= array(), $selected = 'general')
{
$tabs = array
(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12662] modifying project class,
Alejandro <=