[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10075] Added right-click functions on datatable
From: |
Erik Holm-Larsen |
Subject: |
[Fmsystem-commits] [10075] Added right-click functions on datatable |
Date: |
Tue, 02 Oct 2012 05:11:15 +0000 |
Revision: 10075
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10075
Author: erikhl
Date: 2012-10-02 05:11:12 +0000 (Tue, 02 Oct 2012)
Log Message:
-----------
Added right-click functions on datatable
Modified Paths:
--------------
trunk/logistic/inc/class.uiactivity.inc.php
Modified: trunk/logistic/inc/class.uiactivity.inc.php
===================================================================
--- trunk/logistic/inc/class.uiactivity.inc.php 2012-10-01 19:07:48 UTC (rev
10074)
+++ trunk/logistic/inc/class.uiactivity.inc.php 2012-10-02 05:11:12 UTC (rev
10075)
@@ -146,6 +146,11 @@
'name' =>
'parent_id',
'source' => 'id'
),
+ array
+ (
+ 'name' =>
'activity_id',
+ 'source' => 'id'
+ ),
)
);
@@ -160,8 +165,52 @@
'parameters' =>
json_encode($parameters)
);
+ $data['datatable']['actions'][] = array
+ (
+ 'my_name' =>
'new_requirement',
+ 'text' =>
lang('t_new_requirement'),
+ 'action' =>
$GLOBALS['phpgw']->link('/index.php',array
+ (
+ 'menuaction' =>
'logistic.uirequirement.edit'
+ )),
+ 'parameters' =>
json_encode($parameters)
+ );
+ $data['datatable']['actions'][] = array
+ (
+ 'my_name' =>
'view_requirements',
+ 'text' =>
lang('t_view_requirements'),
+ 'action' =>
$GLOBALS['phpgw']->link('/index.php',array
+ (
+ 'menuaction' =>
'logistic.uirequirement.index'
+ )),
+ 'parameters' =>
json_encode($parameters)
+ );
+ $data['datatable']['actions'][] = array
+ (
+ 'my_name' =>
'new_booking',
+ 'text' =>
lang('t_new_booking'),
+ 'action' =>
$GLOBALS['phpgw']->link('/index.php',array
+ (
+ 'menuaction' =>
'logistic.uibooking.edit'
+ )),
+ 'parameters' =>
json_encode($parameters)
+ );
+
+ $data['datatable']['actions'][] = array
+ (
+ 'my_name' =>
'view_bookings',
+ 'text' =>
lang('t_view_bookings'),
+ 'action' =>
$GLOBALS['phpgw']->link('/index.php',array
+ (
+ 'menuaction' =>
'logistic.uibooking.index'
+ )),
+ 'parameters' =>
json_encode($parameters)
+ );
+
+
+
self::render_template_xsl(array('datatable_common'),
$data);
}
@@ -270,7 +319,10 @@
$activity = new logistic_activity();
}
- $activity->set_project_id(phpgw::get_var('project_id'));
+ if(phpgw::get_var('project_id') &&
phpgw::get_var('project_id') > 0)
+ {
+
$activity->set_project_id(phpgw::get_var('project_id'));
+ }
if (isset($_POST['save_activity']))
{
@@ -310,10 +362,10 @@
}
else
{
-
+
$accounts =
$GLOBALS['phpgw']->acl->get_user_list_right(PHPGW_ACL_READ, 'run', 'logistic');
-
-
+
+
$data = array
(
'user_array' => $accounts,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10075] Added right-click functions on datatable,
Erik Holm-Larsen <=