[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/class.sowo_hour.inc.php, 1.1.1.3
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/inc/class.sowo_hour.inc.php, 1.1.1.3 |
Date: |
Mon, 31 May 2004 20:36:36 +0200 |
Update of /property/inc
Modified Files:
Branch:
class.sowo_hour.inc.php
date: 2004/05/31 18:36:36; author: sigurdne; state: Exp; lines: +12 -3
Log Message:
no message
=====================================================================
Index: property/inc/class.sowo_hour.inc.php
diff -u property/inc/class.sowo_hour.inc.php:1.1.1.2
property/inc/class.sowo_hour.inc.php:1.1.1.3
--- property/inc/class.sowo_hour.inc.php:1.1.1.2 Sun May 30 19:10:31 2004
+++ property/inc/class.sowo_hour.inc.php Mon May 31 18:36:36 2004
@@ -642,14 +642,23 @@
$this->db->query("UPDATE fm_vendor set email
='$to_email' where id= '$vendor_id'",__LINE__,__FILE__);
}
- function get_extra_email($vendor_id)
+ function get_email($vendor_id)
{
$vendor_id=(int)$vendor_id;
- $this->db->query("select contact_value from
fm_vendor_extra where contact_id='$vendor_id' and contact_value like
'address@hidden'",__LINE__,__FILE__);
+
+ $this->db->query("select column_name from
fm_vendor_attribute WHERE datatype='email'",__LINE__,__FILE__);
while ($this->db->next_record())
{
- $email_list[] = array('email' =>
$this->db->f('contact_value'));
+ $this->db2->query("select " .
$this->db->f('column_name') . " from fm_vendor where
id=$vendor_id",__LINE__,__FILE__);
+ while ($this->db2->next_record())
+ {
+
if($this->db2->f($this->db->f('column_name')))
+ {
+ $email_list[] = array('email'
=> $this->db2->f($this->db->f('column_name')));
+ }
+ }
}
+
return $email_list;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc/class.sowo_hour.inc.php, 1.1.1.3,
nomail <=