[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.bos_agreement.php, 1.1.2.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.bos_agreement.php, 1.1.2.2 |
Date: |
Wed, 23 Jun 2004 22:09:31 +0200 |
Update of /property
Modified Files:
Branch: proposal-branch
class.bos_agreement.php
date: 2004/06/23 20:09:31; author: sigurdne; state: Exp; lines: +27 -2
Log Message:
no message
=====================================================================
Index: property/class.bos_agreement.php
diff -u property/class.bos_agreement.php:1.1.2.1
property/class.bos_agreement.php:1.1.2.2
--- property/class.bos_agreement.php:1.1.2.1 Sun Jun 20 09:04:46 2004
+++ property/class.bos_agreement.php Wed Jun 23 20:09:31 2004
@@ -58,6 +58,7 @@
$order =
$this->bocommon->get_var2('order',array('POST','GET'));
$filter =
$this->bocommon->get_var2('filter',array('POST','GET'));
$cat_id =
$this->bocommon->get_var2('cat_id',array('POST','GET'));
+ $vendor_id =
$this->bocommon->get_var2('vendor_id',array('POST','GET'));
$allrows =
$this->bocommon->get_var2('allrows',array('POST','GET'));
$role =
$this->bocommon->get_var2('role',array('POST','GET'));
$member_id =
$this->bocommon->get_var2('member_id',array('POST','GET'));
@@ -107,6 +108,10 @@
{
$this->member_id = $member_id;
}
+ if(isset($vendor_id))
+ {
+ $this->vendor_id = $vendor_id;
+ }
}
function save_sessiondata($data)
@@ -129,6 +134,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'];
}
@@ -180,10 +186,29 @@
return $category_list;
}
+ function select_vendor_list($format='',$selected='')
+ {
+ switch($format)
+ {
+ case 'select':
+
$this->bocommon->xsl_add_file(array('select_vendor'));
+ break;
+ case 'filter':
+
$this->bocommon->xsl_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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.bos_agreement.php, 1.1.2.2,
nomail <=