phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/class.uitemplate.php, 1.1.1.6


From: nomail
Subject: [Phpgroupware-cvs] property/class.uitemplate.php, 1.1.1.6
Date: Sun, 23 May 2004 03:06:25 -0000

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

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

Log Message:
temp fix for get_var
=====================================================================
Index: property/class.uitemplate.php
diff -u property/class.uitemplate.php:1.1.1.5 
property/class.uitemplate.php:1.1.1.6
--- property/class.uitemplate.php:1.1.1.5       Mon Apr 26 12:21:23 2004
+++ property/class.uitemplate.php       Wed Apr 28 21:15:15 2004
@@ -80,8 +80,8 @@
                                                                                
'nextmatchs',
                                                                                
'search_field'));
 
-                       $workorder_id = 
get_var('workorder_id',array('POST','GET'));
-                       $lookup         = get_var('lookup',array('POST','GET'));
+                       $workorder_id = 
$this->bocommon->get_var2('workorder_id',array('POST','GET'));
+                       $lookup         = 
$this->bocommon->get_var2('lookup',array('POST','GET'));
 
                        $links = $this->menu->links('template');
 
@@ -242,10 +242,10 @@
                                                                                
'nextmatchs',
                                                                                
'search_field'));
 
-                       $delete = get_var('delete',array('POST','GET'));
-                       $hour_id = get_var('hour_id',array('POST','GET'));
+                       $delete = 
$this->bocommon->get_var2('delete',array('POST','GET'));
+                       $hour_id = 
$this->bocommon->get_var2('hour_id',array('POST','GET'));
 
-                       $template_id = 
get_var('template_id',array('POST','GET'));
+                       $template_id = 
$this->bocommon->get_var2('template_id',array('POST','GET'));
 
                        if($delete && $hour_id)
                        {
@@ -452,8 +452,8 @@
 
                function edit_template()
                {
-                       $template_id                    = 
get_var('template_id',array('POST','GET'));
-                       $values                                 = 
get_var('values',array('POST','GET'));
+                       $template_id                    = 
$this->bocommon->get_var2('template_id',array('POST','GET'));
+                       $values                                 = 
$this->bocommon->get_var2('values',array('POST','GET'));
 
 
                        $this->bocommon->xsl_add_file(array('template'));
@@ -536,12 +536,12 @@
 
                function edit_hour()
                {
-                       $template_id                    = 
get_var('template_id',array('POST','GET'));
-                       $activity_id                    = 
get_var('activity_id',array('POST','GET'));
-                       $hour_id                                = 
get_var('hour_id',array('POST','GET'));
-                       $values                                 = 
get_var('values',array('POST','GET'));
-                       $values['ns3420_id']    = 
get_var('ns3420_id',array('POST','GET'));
-                       $values['ns3420_descr'] = 
get_var('ns3420_descr',array('POST','GET'));
+                       $template_id                    = 
$this->bocommon->get_var2('template_id',array('POST','GET'));
+                       $activity_id                    = 
$this->bocommon->get_var2('activity_id',array('POST','GET'));
+                       $hour_id                                = 
$this->bocommon->get_var2('hour_id',array('POST','GET'));
+                       $values                                 = 
$this->bocommon->get_var2('values',array('POST','GET'));
+                       $values['ns3420_id']    = 
$this->bocommon->get_var2('ns3420_id',array('POST','GET'));
+                       $values['ns3420_descr'] = 
$this->bocommon->get_var2('ns3420_descr',array('POST','GET'));
 
                        $bopricebook                    = 
CreateObject($this->currentapp.'_bopricebook');
 
@@ -690,15 +690,15 @@
 
                function delete()
                {
-                       $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.'.uitemplate.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));




reply via email to

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