fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13828] fixing datatable and forms


From: Saul
Subject: [Fmsystem-commits] [13828] fixing datatable and forms
Date: Tue, 01 Sep 2015 23:52:47 +0000

Revision: 13828
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13828
Author:   psaul
Date:     2015-09-01 23:52:46 +0000 (Tue, 01 Sep 2015)
Log Message:
-----------
fixing datatable and forms

Modified Paths:
--------------
    branches/dev-syncromind/booking/inc/class.uiallocation.inc.php

Modified: branches/dev-syncromind/booking/inc/class.uiallocation.inc.php
===================================================================
--- branches/dev-syncromind/booking/inc/class.uiallocation.inc.php      
2015-09-01 23:20:56 UTC (rev 13827)
+++ branches/dev-syncromind/booking/inc/class.uiallocation.inc.php      
2015-09-01 23:52:46 UTC (rev 13828)
@@ -46,7 +46,7 @@
                        self::add_javascript('booking', 'booking', 
'datatable.js');
                        phpgwapi_yui::load_widget('datatable');
                        phpgwapi_yui::load_widget('paginator');
-            $build_id = phpgw::get_var('buildings', 'int', 'REQUEST', null);
+                        $build_id = phpgw::get_var('buildings', 'int', 
'REQUEST', null);
                        $data = array(
                                'form' => array(
                                        'toolbar' => array(
@@ -66,8 +66,8 @@
                                                        ),
                                                        array('type' => 
'filter', 
                                                                'name' => 
'organizations',
-                                'text' => lang('Organization').':',
-                                'list' => $this->bo->so->get_organizations(),
+                                                                'text' => 
lang('Organization').':',
+                                                                'list' => 
$this->bo->so->get_organizations(),
                                                        ),
 #                                                      array('type' => 
'filter', 
 #                                                              'name' => 
'buildings',
@@ -82,9 +82,6 @@
 #                                'list' => 
$this->bo->so->get_seasons($build_id),
 #                                                              
'requestGenerator' => 'requestWithBuildingFilter',
 #                                                      ),
-                                                       array('type' => 'text', 
-                                                               'name' => 
'query'
-                                                       ),
                                                        array(
                                                                'type' => 
'submit',
                                                                'name' => 
'search',
@@ -108,7 +105,8 @@
                                                ),
                                                array(
                                                        'key' => 'shortname',
-                                                       'label' => 
lang('Organization shortname')
+                                                       'label' => 
lang('Organization shortname'),
+                                                        'sortable' => false
                                                ),
                                                array(
                                                        'key' => 
'building_name',
@@ -143,7 +141,7 @@
                                ));
                        }
                        $data['filters'] = $this->export_filters;
-            self::render_template_xsl('datatable_jquery',$data);
+                        self::render_template_xsl('datatable_jquery',$data);
 //                     self::render_template('datatable', $data);
                }
 
@@ -151,9 +149,9 @@
                {
                        if(isset($_SESSION['showall']))
                        {
-                       unset($filters['building_name']);
-                unset($filters['organization_id']);
-                unset($filters['season_id']);
+                            unset($filters['building_name']);
+                            unset($filters['organization_id']);
+                            unset($filters['season_id']);
                        } else {
                 $testdata =  phpgw::get_var('filter_building_id', 'int', 
'REQUEST', null);
                 if ($testdata != 0) {
@@ -182,10 +180,10 @@
                        $params = array(
                                'start' => phpgw::get_var('start', 'int', 
'REQUEST', 0),
                                'results' => phpgw::get_var('length', 'int', 
'REQUEST', 0),
-                'query' => $search['value'],
-                'order' => $columns[$order[0]['column']]['data'],
+                                'query' => $search['value'],
+                                'order' => 
$columns[$order[0]['column']]['data'],
                                'sort'  => 
$columns[$order[0]['column']]['data'],
-                'dir'  => $order[0]['dir'],
+                                'dir'  => $order[0]['dir'],
                                'filters' => $filters,
                        );
             




reply via email to

[Prev in Thread] Current Thread [Next in Thread]