phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.uilocation.inc.php, 1.4.2.5


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.uilocation.inc.php, 1.4.2.5
Date: Mon, 27 Dec 2004 14:58:53 +0100

Update of /property/inc
Modified Files:
        Branch: proposed-0_9_18-branch
          class.uilocation.inc.php

date: 2004/12/27 13:58:53;  author: sigurdne;  state: Exp;  lines: +54 -3

Log Message:
no message
=====================================================================
Index: property/inc/class.uilocation.inc.php
diff -u property/inc/class.uilocation.inc.php:1.4.2.4 
property/inc/class.uilocation.inc.php:1.4.2.5
--- property/inc/class.uilocation.inc.php:1.4.2.4       Thu Nov 18 22:12:08 2004
+++ property/inc/class.uilocation.inc.php       Mon Dec 27 13:58:53 2004
@@ -667,7 +667,8 @@
                                'LB' => 'listbox'
                        );
 
-//     _debug_array($values);
+                       $vendor = CreateObject($this->currentapp.'.soactor');
+                       $vendor->role = 'vendor';
 
                        $r=0;
                        $m=0;
@@ -703,6 +704,31 @@
                                        $functions[$m]['action'] = 
'Window1=window.open('."'" . $lookup_link ."'" 
.',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
                                        $m++;
                                }
+
+                               if($attributes_values[$r]['datatype']=='VENDOR')
+                               {
+                                       if($attributes_values[$r]['value'])
+                                       {
+                                               $vendor_data    = 
$vendor->read_single(array('actor_id'=>$attributes_values[$r]['value']));
+
+                                               for 
($n=0;$n<count($vendor_data['attributes']);$n++)
+                                               {
+                                                       
if($vendor_data['attributes'][$n]['name'] == 'org_name')
+                                                       {
+                                                               
$attributes_values[$r]['vendor_name']= $vendor_data['attributes'][$n]['value'];
+                                                               $n 
=count($vendor_data['attributes']);
+                                                       }
+                                               }
+                                       }
+
+                                       $lookup_link            = 
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uilookup.vendor&column='
 . $attributes_values[$r]['name']);
+
+                                       $lookup_functions[$m]['name'] = 
'lookup_'. $attributes_values[$r]['name'] .'()';
+                                       $lookup_functions[$m]['action'] = 
'Window1=window.open('."'" . $lookup_link ."'" 
.',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
+                                       $m++;
+                               }
+
+
                                if($attributes_values[$r]['datatype']=='R' || 
$attributes_values[$r]['datatype']=='CH' || 
$attributes_values[$r]['datatype']=='LB')
                                {
                                        $attributes_values[$r]['choice']        
= 
$this->soadmin_location->read_attrib_choice($type_id,$attributes_values[$r]['id']);
@@ -1021,7 +1047,8 @@
                                'LB' => 'listbox'
                        );
 
-//     _debug_array($values);
+                       $vendor = CreateObject($this->currentapp.'.soactor');
+                       $vendor->role = 'vendor';
 
                        $r=0;
                        $m=0;
@@ -1058,6 +1085,30 @@
                                        $functions[$m]['action'] = 
'Window1=window.open('."'" . $lookup_link ."'" 
.',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
                                        $m++;
                                }
+
+                               if($attributes_values[$r]['datatype']=='VENDOR')
+                               {
+                                       if($attributes_values[$r]['value'])
+                                       {
+                                               $vendor_data    = 
$vendor->read_single(array('actor_id'=>$attributes_values[$r]['value']));
+
+                                               for 
($n=0;$n<count($vendor_data['attributes']);$n++)
+                                               {
+                                                       
if($vendor_data['attributes'][$n]['name'] == 'org_name')
+                                                       {
+                                                               
$attributes_values[$r]['vendor_name']= $vendor_data['attributes'][$n]['value'];
+                                                               $n 
=count($vendor_data['attributes']);
+                                                       }
+                                               }
+                                       }
+
+                                       $lookup_link            = 
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uilookup.vendor&column='
 . $attributes_values[$r]['name']);
+
+                                       $lookup_functions[$m]['name'] = 
'lookup_'. $attributes_values[$r]['name'] .'()';
+                                       $lookup_functions[$m]['action'] = 
'Window1=window.open('."'" . $lookup_link ."'" 
.',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
+                                       $m++;
+                               }
+
                                if($attributes_values[$r]['datatype']=='R' || 
$attributes_values[$r]['datatype']=='CH' || 
$attributes_values[$r]['datatype']=='LB')
                                {
                                        $attributes_values[$r]['choice']        
= 
$this->soadmin_location->read_attrib_choice($type_id,$attributes_values[$r]['id']);




reply via email to

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