fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13627] class.uireports.php


From: Saul
Subject: [Fmsystem-commits] [13627] class.uireports.php
Date: Fri, 10 Jul 2015 22:54:12 +0000

Revision: 13627
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13627
Author:   psaul
Date:     2015-07-10 22:54:11 +0000 (Fri, 10 Jul 2015)
Log Message:
-----------
class.uireports.php

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

Modified: branches/dev-syncromind/booking/inc/class.uireports.inc.php
===================================================================
--- branches/dev-syncromind/booking/inc/class.uireports.inc.php 2015-07-10 
22:53:48 UTC (rev 13626)
+++ branches/dev-syncromind/booking/inc/class.uireports.inc.php 2015-07-10 
22:54:11 UTC (rev 13627)
@@ -7,6 +7,7 @@
 {
        public $public_functions = array(
                        'index'                 =>      true,
+            'query'                 =>      true,
                        'participants'          =>      true,
                        'freetime'              =>      true,
                );
@@ -18,14 +19,16 @@
                $this->building_bo = CreateObject('booking.bobuilding');
                self::set_active_menu('booking::reportcenter');
        }
+    public function query() {
+        
+    }
 
-       public function index()
+    public function index()
        {
                $reports[] = array('name' => lang('Participants Per Age Group 
Per Month'), 'url' => self::link(array('menuaction' => 
'booking.uireports.participants')));
                $reports[] = array('name' => lang('Free time'), 'url' => 
self::link(array('menuaction' => 'booking.uireports.freetime')));
 
-               self::render_template('report_index',
-               array('reports' => $reports));
+               self::render_template_xsl('report_index',array('reports' => 
$reports));
        }
 
        public function participants()
@@ -79,8 +82,18 @@
                }
 
                $this->flash_form_errors($errors);
-               self::render_template('report_participants',
-               array('from' => $from, 'to' => $to, 'buildings' => 
$buildings['results']));
+        
+        $GLOBALS['phpgw']->jqcal->add_listener('start_date', 'datetime');
+        $GLOBALS['phpgw']->jqcal->add_listener('end_date', 'datetime');
+        
+        $tabs = array();
+        $tabs['generic'] = array('label' => lang('Report Participants'), 
'link' => '#report_part');
+        $active_tab = 'generic';
+        
+        $data = array();
+        $data['tabs'] = phpgwapi_jquery::tabview_generate($tabs, $active_tab);
+
+               self::render_template_xsl('report_participants',array('data' => 
$data,'from' => $from, 'to' => $to, 'buildings' => $buildings['results']));
        }
 
        public function freetime()
@@ -131,9 +144,19 @@
                }
 
                $this->flash_form_errors($errors);
+        
+        $GLOBALS['phpgw']->jqcal->add_listener('start_date', 'datetime');
+        $GLOBALS['phpgw']->jqcal->add_listener('end_date', 'datetime');
+        
+        $tabs = array();
+        $tabs['generic'] = array('label' => lang('Report FreeTime'), 'link' => 
'#report_freetime');
+        $active_tab = 'generic';
+        
+        $data = array();
+        $data['tabs'] = phpgwapi_jquery::tabview_generate($tabs, $active_tab);
 
-               self::render_template('report_freetime',
-                               array('show' => $show, 'from' => $from, 'to' => 
$to, 'buildings' => $buildings['results'], 'allocations' => 
$allocations['results']));
+               self::render_template_xsl('report_freetime',
+                               array('data'=>$data, 'show' => $show, 'from' => 
$from, 'to' => $to, 'buildings' => $buildings['results'], 'allocations' => 
$allocations['results']));
        }
 
        private function get_free_allocations($buildings, $from, $to, $weekdays)




reply via email to

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