fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13584] uiallocation add php


From: Saul
Subject: [Fmsystem-commits] [13584] uiallocation add php
Date: Tue, 07 Jul 2015 23:03:25 +0000

Revision: 13584
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13584
Author:   psaul
Date:     2015-07-07 23:03:24 +0000 (Tue, 07 Jul 2015)
Log Message:
-----------
uiallocation add php

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-07-07 23:02:56 UTC (rev 13583)
+++ branches/dev-syncromind/booking/inc/class.uiallocation.inc.php      
2015-07-07 23:03:24 UTC (rev 13584)
@@ -388,13 +388,22 @@
                        $allocation['cancel_link'] = 
self::link(array('menuaction' => 'booking.uiallocation.index'));
                        array_set_default($allocation, 'cost', '0');
 
+            $GLOBALS['phpgw']->jqcal->add_listener('start_date', 'datetime');
+                       $GLOBALS['phpgw']->jqcal->add_listener('end_date', 
'datetime');
+            
+            $tabs = array();
+            $tabs['generic'] = array('label' => lang('Allocation New'), 'link' 
=> '#allocation_new');
+            $active_tab = 'generic';
+            
+            $allocation['tabs'] = phpgwapi_jquery::tabview_generate($tabs, 
$active_tab);
+            
                        if ($step < 2) 
                        {
                                if($_SERVER['REQUEST_METHOD'] == 'POST' && 
$errors) {                           
                                        $allocation['from_'] = 
strftime("%H:%M", strtotime($_POST['weekday']." ".$_POST['from_']));
                                        $allocation['to_'] = strftime("%H:%M", 
strtotime($_POST['weekday']." ".$_POST['to_']));
                                }
-                               self::render_template('allocation_new', 
array('allocation' => $allocation,
+                               self::render_template_xsl('allocation_new', 
array('allocation' => $allocation,
                                        'step' => $step, 
                                        'interval' => $_POST['field_interval'],
                                        'repeat_until' => 
$_POST['repeat_until'],
@@ -404,7 +413,7 @@
                        } 
                        else if ($step == 2) 
                        {
-                               self::render_template('allocation_new_preview', 
array('allocation' => $allocation,
+                               
self::render_template_xsl('allocation_new_preview', array('allocation' => 
$allocation,
                                        'step' => $step,
                                        'recurring' => $_POST['recurring'],
                                        'outseason' => $_POST['outseason'],




reply via email to

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