[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc class.botenant_claim.inc.php, 1.5 class.
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] property/inc class.botenant_claim.inc.php, 1.5 class.solocation.inc.php, 1.18 |
Date: |
Thu, 22 Sep 2005 15:47:00 +0200 |
Update of property/inc
Modified Files:
Branch: MAIN
class.botenant_claim.inc.php lines: +30 -1
class.solocation.inc.php lines: +2 -2
Log Message:
no message
====================================================
Index: property/inc/class.botenant_claim.inc.php
diff -u property/inc/class.botenant_claim.inc.php:1.4
property/inc/class.botenant_claim.inc.php:1.5
--- property/inc/class.botenant_claim.inc.php:1.4 Thu May 12 21:26:28 2005
+++ property/inc/class.botenant_claim.inc.php Thu Sep 22 13:47:43 2005
@@ -30,6 +30,7 @@
function botenant_claim($session=False)
{
$this->currentapp =
$GLOBALS['phpgw_info']['flags']['currentapp'];
+ $this->bocommon =
CreateObject($this->currentapp.'.bocommon');
$this->so =
CreateObject($this->currentapp.'.sotenant_claim');
if ($session)
@@ -258,12 +259,40 @@
{
$claim_id = $claim['claim_id'];
$receipt=$this->so->edit($claim);
+ $action = lang('altered');
}
}
else
{
$receipt = $this->so->add($claim);
+ $action = lang('added');
}
+
+
+ $this->config =
CreateObject('phpgwapi.config',$this->currentapp);
+ $this->config->read_repository();
+ $claim_notify_mails =
$this->config->config_data['tenant_claim_notify_mails'];
+ if ($claim_notify_mails)
+ {
+ // notify via email
+
$current_user_id=$GLOBALS['phpgw_info']['user']['account_id'];
+ $current_prefs_user =
$this->bocommon->create_preferences($this->currentapp,$current_user_id);
+ $from=$current_prefs_user['email'];
+ $subject = lang("Tenant claim
%1",$receipt['claim_id']) .' ' . $action;
+ $body = lang('Reminder');
+
+ if(!is_object($GLOBALS['phpgw']->send))
+ {
+ $GLOBALS['phpgw']->send =
CreateObject('phpgwapi.send');
+ }
+ $subject =
$GLOBALS['phpgw']->send->encode_subject($subject);
+ $notify_mails =
explode(',',$claim_notify_mails);
+ foreach($notify_mails as $to)
+ {
+
$GLOBALS['phpgw']->send->msg('email',$to,$subject,$body,'','','',$from,$from);
+ }
+ }
+
return $receipt;
}
====================================================
Index: property/inc/class.solocation.inc.php
diff -u property/inc/class.solocation.inc.php:1.17
property/inc/class.solocation.inc.php:1.18
--- property/inc/class.solocation.inc.php:1.17 Fri Aug 19 11:56:50 2005
+++ property/inc/class.solocation.inc.php Thu Sep 22 13:47:43 2005
@@ -837,7 +837,7 @@
$this->db->next_record();
for ($i=0;$i<$cols_return_count;$i++)
{
- $location[$cols_return[$i]] =
$this->db->f($cols_return[$i]);
+ $location[$cols_return[$i]] =
stripslashes($this->db->f($cols_return[$i]));
}
//_debug_array($cols_return);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc class.botenant_claim.inc.php, 1.5 class.solocation.inc.php, 1.18,
sigurdne <=