phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/class.uiworkorder.php, 1.1.1.7


From: nomail
Subject: [Phpgroupware-cvs] property/class.uiworkorder.php, 1.1.1.7
Date: Sun, 23 May 2004 11:13:46 -0000

Update of /property
Modified Files:
        Branch: 
          class.uiworkorder.php

date: 2004/04/28 21:15:16;  author: sigurdne;  state: Exp;  lines: +17 -17

Log Message:
temp fix for get_var
=====================================================================
Index: property/class.uiworkorder.php
diff -u property/class.uiworkorder.php:1.1.1.6 
property/class.uiworkorder.php:1.1.1.7
--- property/class.uiworkorder.php:1.1.1.6      Mon Apr 26 17:02:33 2004
+++ property/class.uiworkorder.php      Wed Apr 28 21:15:16 2004
@@ -87,8 +87,8 @@
                        require('PEAR.php');
                        $xls            = 
CreateObject($this->currentapp.'_excel');
 
-                       $start_date = 
urldecode(get_var('start_date',array('POST','GET')));
-                       $end_date       = 
urldecode(get_var('end_date',array('POST','GET')));
+                       $start_date = 
urldecode($this->bocommon->get_var2('start_date',array('POST','GET')));
+                       $end_date       = 
urldecode($this->bocommon->get_var2('end_date',array('POST','GET')));
                        $list           = 
$this->bo->read($start_date,$end_date,$allrows=True);
 
                        $uicols = $this->bo->uicols;
@@ -149,8 +149,8 @@
 
                        $links = $this->menu->links('workorder');
 
-                       $start_date             = 
urldecode(get_var('start_date',array('POST','GET')));
-                       $end_date                       = 
urldecode(get_var('end_date',array('POST','GET')));
+                       $start_date             = 
urldecode($this->bocommon->get_var2('start_date',array('POST','GET')));
+                       $end_date                       = 
urldecode($this->bocommon->get_var2('end_date',array('POST','GET')));
                        $workorder_list = 
$this->bo->read($start_date,$end_date);
 
                        $uicols = $this->bo->uicols;
@@ -470,20 +470,20 @@
                        $boproject                      = 
CreateObject($this->currentapp.'_boproject');
                        $bolocation                     = 
CreateObject($this->currentapp.'_bolocation');
                        $config                         = 
CreateObject('phpgwapi_config');
-                       $id                             = 
get_var('id',array('POST','GET'));
-                       $project_id             = 
get_var('project_id',array('POST','GET'));
-                       $values                         = 
get_var('values',array('POST'));
+                       $id                             = 
$this->bocommon->get_var2('id',array('POST','GET'));
+                       $project_id             = 
$this->bocommon->get_var2('project_id',array('POST','GET'));
+                       $values                         = 
$this->bocommon->get_var2('values',array('POST'));
 
                        $this->bocommon->xsl_add_file(array('workorder'));
 
-                       $values['vendor_id']            = 
get_var('vendor_id',array('POST'));
-                       $values['vendor_name']          = 
get_var('vendor_name',array('POST'));
-                       $values['b_account_id']         = 
get_var('b_account_id',array('POST'));
-                       $values['b_account_name']       = 
get_var('b_account_name',array('POST'));
+                       $values['vendor_id']            = 
$this->bocommon->get_var2('vendor_id',array('POST'));
+                       $values['vendor_name']          = 
$this->bocommon->get_var2('vendor_name',array('POST'));
+                       $values['b_account_id']         = 
$this->bocommon->get_var2('b_account_id',array('POST'));
+                       $values['b_account_name']       = 
$this->bocommon->get_var2('b_account_name',array('POST'));
 
 
-                       $values['start_date']           = 
get_var('start_date',array('POST'));
-                       $values['end_date']                     = 
get_var('end_date',array('POST'));
+                       $values['start_date']           = 
$this->bocommon->get_var2('start_date',array('POST'));
+                       $values['end_date']                     = 
$this->bocommon->get_var2('end_date',array('POST'));
 
                        $config->read_repository();
 
@@ -901,15 +901,15 @@
                        {
                                
$this->bocommon->redirect_link('/index.php','sid=cookie&op='.$this->currentapp.'.uilocation.stop&perm=8&acl_location='
 . $this->acl2_location);
                        }
-                       $id = get_var('id',array('POST','GET'));
-                       $confirm        = get_var('confirm',array('POST'));
+                       $id = 
$this->bocommon->get_var2('id',array('POST','GET'));
+                       $confirm        = 
$this->bocommon->get_var2('confirm',array('POST'));
 
                        $link_data = array
                        (
                                'sid=cookie&op' => 
$this->currentapp.'.uiworkorder.index'
                        );
 
-                       if (get_var('confirm',array('POST')))
+                       if ($this->bocommon->get_var2('confirm',array('POST')))
                        {
                                $this->bo->delete($id);
                                Header('Location: ' . 
$this->bocommon->link('/index.php',$link_data));
@@ -948,7 +948,7 @@
                        $receipt = 
$this->fm_session->appsession('receipt',$this->currentapp);
                        
$this->fm_session->appsession('receipt',$this->currentapp,'');
 
-                       $id     = get_var('id',array('POST','GET'));
+                       $id     = 
$this->bocommon->get_var2('id',array('POST','GET'));
 
                        
$this->bocommon->xsl_add_file(array('workorder','hour_data_view'));
 




reply via email to

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