phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.boagreement.inc.php, 1.2.2.6


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

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

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

Log Message:
no message
=====================================================================
Index: property/inc/class.boagreement.inc.php
diff -u property/inc/class.boagreement.inc.php:1.2.2.5 
property/inc/class.boagreement.inc.php:1.2.2.6
--- property/inc/class.boagreement.inc.php:1.2.2.5      Thu Nov 18 22:12:08 2004
+++ property/inc/class.boagreement.inc.php      Mon Dec 27 13:58:53 2004
@@ -319,6 +319,10 @@
                                $this->so->role = 'detail';
                        }
                        $contacts                       = 
CreateObject('phpgwapi.contacts');
+
+                       $vendor = CreateObject($this->currentapp.'.soactor');
+                       $vendor->role = 'vendor';
+
                        $dateformat = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
 
                        $input_type_array = array(
@@ -359,6 +363,30 @@
                                        $lookup_functions[$m]['action'] = 
'Window1=window.open('."'" . $lookup_link ."'" 
.',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
                                        $m++;
                                }
+                               
if($list['attributes'][$i]['datatype']=='VENDOR')
+                               {
+                                       if($list['attributes'][$i]['value'])
+                                       {
+                                               $vendor_data    = 
$vendor->read_single(array('actor_id'=>$list['attributes'][$i]['value']));
+
+                                               for 
($n=0;$n<count($vendor_data['attributes']);$n++)
+                                               {
+                                                       
if($vendor_data['attributes'][$n]['name'] == 'org_name')
+                                                       {
+                                                               
$list['attributes'][$i]['vendor_name']= $vendor_data['attributes'][$n]['value'];
+                                                               $n 
=count($vendor_data['attributes']);
+                                                       }
+                                               }
+                                       }
+
+                                       $insert_record_list[]   = 
$list['attributes'][$i]['name'];
+                                       $lookup_link            = 
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uilookup.vendor&column='
 . $list['attributes'][$i]['name']);
+
+                                       $lookup_functions[$m]['name'] = 
'lookup_'. $list['attributes'][$i]['name'] .'()';
+                                       $lookup_functions[$m]['action'] = 
'Window1=window.open('."'" . $lookup_link ."'" 
.',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
+                                       $m++;
+                               }
+
                                if($list['attributes'][$i]['datatype']=='R' || 
$list['attributes'][$i]['datatype']=='CH' || 
$list['attributes'][$i]['datatype']=='LB')
                                {
                                        $list['attributes'][$i]['choice']       
= $this->so->read_attrib_choice($list['attributes'][$i]['attrib_id']);




reply via email to

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