[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13414] class.uiaccount_code_set
From: |
Saul |
Subject: |
[Fmsystem-commits] [13414] class.uiaccount_code_set |
Date: |
Wed, 10 Jun 2015 22:54:23 +0000 |
Revision: 13414
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13414
Author: psaul
Date: 2015-06-10 22:54:22 +0000 (Wed, 10 Jun 2015)
Log Message:
-----------
class.uiaccount_code_set
Modified Paths:
--------------
branches/dev-syncromind/booking/inc/class.uiaccount_code_set.inc.php
Modified: branches/dev-syncromind/booking/inc/class.uiaccount_code_set.inc.php
===================================================================
--- branches/dev-syncromind/booking/inc/class.uiaccount_code_set.inc.php
2015-06-10 22:53:57 UTC (rev 13413)
+++ branches/dev-syncromind/booking/inc/class.uiaccount_code_set.inc.php
2015-06-10 22:54:22 UTC (rev 13414)
@@ -1,11 +1,17 @@
<?php
-phpgw::import_class('booking.uicommon');
+//phpgw::import_class('booking.uicommon');
- class booking_uiaccount_code_set extends booking_uicommon
+ phpgw::import_class('booking.uidocument_building');
+ phpgw::import_class('booking.uipermission_building');
+
+ phpgw::import_class('phpgwapi.uicommon_jquery');
+
+ class booking_uiaccount_code_set extends phpgwapi_uicommon_jquery
{
public $public_functions = array
(
'index' => true,
+ 'query' => true,
'show' => true,
'edit' => true,
'add' => true,
@@ -50,7 +56,7 @@
public function index()
{
if(phpgw::get_var('phpgw_return_as') == 'json') {
- return $this->index_json();
+ return $this->query();
}
$config = CreateObject('phpgwapi.config','booking');
$config->read();
@@ -82,7 +88,8 @@
),
);
$data['datatable']['source'][] =
$this->link_to('index', array('phpgw_return_as' => 'json'));
- $data['datatable']['field'][] = array('key' => 'name',
'label' => lang('Name'), 'formatter' => 'YAHOO.booking.formatLink');
+ $data['datatable']['field'][] = array(
+ 'key' => 'name', 'label' => lang('Name'), 'formatter' =>
'JqueryPortico.formatLink');
if (isset($config->config_data['dim_3']))
$data['datatable']['field'][] = array('key' => 'object_number', 'label' =>
$config->config_data['dim_3']);
if (isset($config->config_data['dim_1']))
$data['datatable']['field'][] = array('key' => 'responsible_code', 'label' =>
$config->config_data['dim_1']);
if (isset($config->config_data['article']))
$data['datatable']['field'][] = array('key' => 'article', 'label' =>
lang('Article'));
@@ -103,19 +110,31 @@
));
}
- self::render_template('datatable', $data);
+// self::render_template('datatable', $data);
+ self::render_template_xsl('datatable_jquery',$data);
}
- public function index_json()
+ public function query()
{
$account_code_sets = $this->bo->read();
array_walk($account_code_sets["results"], array($this,
"_add_links"), $this->module.".uiaccount_code_set.show");
//foreach($account_code_sets["results"] as
&$account_code_set) {}
- $results = $this->yui_results($account_code_sets);
+ $results = $this->jquery_results($account_code_sets);
return $results;
}
+
+// public function index_json()
+// {
+// $account_code_sets = $this->bo->read();
+// array_walk($account_code_sets["results"], array($this,
"_add_links"), $this->module.".uiaccount_code_set.show");
+// //foreach($account_code_sets["results"] as
&$account_code_set) {}
+//
+// $results = $this->yui_results($account_code_sets);
+//
+// return $results;
+// }
protected function add_default_display_data(&$account_code_set)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13414] class.uiaccount_code_set,
Saul <=