phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.bos_agreement.inc.php, 1.3


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.bos_agreement.inc.php, 1.3
Date: Wed, 23 Jun 2004 22:04:59 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.bos_agreement.inc.php

date: 2004/06/23 20:04:59;  author: sigurdne;  state: Exp;  lines: +27 -2

Log Message:
no message
=====================================================================
Index: property/inc/class.bos_agreement.inc.php
diff -u property/inc/class.bos_agreement.inc.php:1.2 
property/inc/class.bos_agreement.inc.php:1.3
--- property/inc/class.bos_agreement.inc.php:1.2        Mon Jun 14 19:58:29 2004
+++ property/inc/class.bos_agreement.inc.php    Wed Jun 23 20:04:59 2004
@@ -57,6 +57,7 @@
                        $order  = get_var('order',array('POST','GET'));
                        $filter = get_var('filter',array('POST','GET'));
                        $cat_id = get_var('cat_id',array('POST','GET'));
+                       $vendor_id      = 
get_var('vendor_id',array('POST','GET'));
                        $allrows        = 
get_var('allrows',array('POST','GET'));
                        $role   = get_var('role',array('POST','GET'));
                        $member_id      = 
get_var('member_id',array('POST','GET'));
@@ -106,6 +107,10 @@
                        {
                                $this->member_id = $member_id;
                        }
+                       if(isset($vendor_id))
+                       {
+                               $this->vendor_id = $vendor_id;
+                       }
                }
 
                function save_sessiondata($data)
@@ -128,6 +133,7 @@
                        $this->sort             = $data['sort'];
                        $this->order    = $data['order'];
                        $this->cat_id   = $data['cat_id'];
+                       $this->vendor_id= $data['vendor_id'];
                        $this->member_id= $data['member_id'];
                        $this->allrows  = $data['allrows'];
                }
@@ -179,10 +185,29 @@
                        return $category_list;
                }
 
+               function select_vendor_list($format='',$selected='')
+               {
+                       switch($format)
+                       {
+                               case 'select':
+                                       
$GLOBALS['phpgw']->xslttpl->add_file(array('select_vendor'));
+                                       break;
+                               case 'filter':
+                                       
$GLOBALS['phpgw']->xslttpl->add_file(array('filter_vendor'));
+                                       break;
+                       }
+
+                       $input_list= $this->so->select_vendor_list();
+                       $vendor_list= 
$this->bocommon->select_list($selected,$input_list);
+
+                       return $vendor_list;
+               }
+
                function read()
                {
                        $s_agreement = $this->so->read(array('start' => 
$this->start,'query' => $this->query,'sort' => $this->sort,'order' => 
$this->order,
-                                                                               
        'filter' => $this->filter,'cat_id' => 
$this->cat_id,'allrows'=>$this->allrows,'member_id'=>$this->member_id));
+                                                                               
        'filter' => $this->filter,'cat_id' => 
$this->cat_id,'allrows'=>$this->allrows,'member_id'=>$this->member_id,
+                                                                               
        'vendor_id'=>$this->vendor_id));
                        $this->total_records = $this->so->total_records;
 
                        $this->uicols   = $this->so->uicols;




reply via email to

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