fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13189] uibuilding conversion


From: Alejandro
Subject: [Fmsystem-commits] [13189] uibuilding conversion
Date: Wed, 13 May 2015 06:02:41 +0000

Revision: 13189
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13189
Author:   nudrick
Date:     2015-05-13 06:02:39 +0000 (Wed, 13 May 2015)
Log Message:
-----------
uibuilding conversion

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

Modified: branches/dev-syncromind/booking/inc/class.uibuilding.inc.php
===================================================================
--- branches/dev-syncromind/booking/inc/class.uibuilding.inc.php        
2015-05-12 22:06:59 UTC (rev 13188)
+++ branches/dev-syncromind/booking/inc/class.uibuilding.inc.php        
2015-05-13 06:02:39 UTC (rev 13189)
@@ -1,13 +1,16 @@
 <?php
-       phpgw::import_class('booking.uicommon');
-       phpgw::import_class('booking.uidocument_building');
-       phpgw::import_class('booking.uipermission_building');
+       //phpgw::import_class('booking.uicommon');
+       //phpgw::import_class('booking.uidocument_building');
+       //phpgw::import_class('booking.uipermission_building');
+       
+       phpgw::import_class('phpgwapi.uicommon_jquery');
 
-       class booking_uibuilding extends booking_uicommon
+       class booking_uibuilding extends phpgwapi_uicommon_jquery
        {       
                public $public_functions = array
                (
                        'index'                 =>      true,
+                       'query'                 =>      true,
                        'active'                =>      true,
                        'add'                   =>      true,
                        'show'                  =>      true,
@@ -22,7 +25,7 @@
                {
                        parent::__construct();
                        
-                       self::process_booking_unauthorized_exceptions();
+                       //self::process_booking_unauthorized_exceptions();
                        
                        $this->bo = CreateObject('booking.bobuilding');
             $this->bo_booking = CreateObject('booking.bobooking');
@@ -64,7 +67,7 @@
                public function index()
                {       
                        if(phpgw::get_var('phpgw_return_as') == 'json') {
-                               return $this->index_json();
+                               return $this->query();
                        }
                        self::add_javascript('booking', 'booking', 
'datatable.js');
                        phpgwapi_yui::load_widget('datatable');
@@ -134,10 +137,11 @@
                                ));
                        }
 
-                       self::render_template('datatable', $data);
+                       //self::render_template('datatable', $data);
+                       self::render_template_xsl('datatable_jquery',$data);
                }
 
-               public function index_json()
+               public function query()
                {
                        
                        $buildings = $this->bo->read();
@@ -146,7 +150,7 @@
                                $building['link'] = 
$this->link(array('menuaction' => 'booking.uibuilding.show', 'id' => 
$building['id']));
 #                              $building['active'] = $building['active'] ? 
lang('Active') : lang('Inactive');
                        }
-                       return $this->yui_results($buildings);
+                       return $this->jquery_results($buildings);
                }
 
                public function add()




reply via email to

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