fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15471] add schedule method


From: saul . huanay
Subject: [Fmsystem-commits] [15471] add schedule method
Date: Mon, 15 Aug 2016 23:58:40 +0000 (UTC)

Revision: 15471
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15471
Author:   psaul
Date:     2016-08-15 23:58:40 +0000 (Mon, 15 Aug 2016)
Log Message:
-----------
add schedule method

Modified Paths:
--------------
    branches/dev-syncromind-2/rental/inc/class.uicontract.inc.php

Modified: branches/dev-syncromind-2/rental/inc/class.uicontract.inc.php
===================================================================
--- branches/dev-syncromind-2/rental/inc/class.uicontract.inc.php       
2016-08-15 23:53:52 UTC (rev 15470)
+++ branches/dev-syncromind-2/rental/inc/class.uicontract.inc.php       
2016-08-15 23:58:40 UTC (rev 15471)
@@ -33,6 +33,7 @@
                        'index' => true,
                        'query' => true,
                        'view' => true,
+            'schedule' => true,
                        'add_party' => true,
                        'remove_party' => true,
                        'add_composite' => true,
@@ -2206,7 +2207,24 @@
                                        'location_id' => $location_id));
                        }
                }
+        
+        /**
+                * Create a new empty contract
+                */
+        public function schedule () {
+            $contract_id = (int)phpgw::get_var('id');
+            $date = phpgw::get_var($date);
 
+            $contracts['picker_img'] = 
$GLOBALS['phpgw']->common->image('phpgwapi', 'cal');
+
+//            self::add_javascript('booking','booking','common.js');
+            self::add_javascript('booking','booking','schedule.js');
+            phpgwapi_jquery::load_widget("datepicker");
+            
+            self::render_template_xsl(array('test_schedule'), array('schedule' 
=> $contracts));
+            
+        }
+
                /**
                 * Create a new contract tied to the composite provided in the 
composite_id parameter
                 */




reply via email to

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