[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/class.uis_agreement.inc.php, 1.6
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/inc/class.uis_agreement.inc.php, 1.6 |
Date: |
Tue, 29 Jun 2004 14:48:29 +0200 |
Update of /property/inc
Modified Files:
Branch:
class.uis_agreement.inc.php
date: 2004/06/29 12:48:29; author: sigurdne; state: Exp; lines: +44 -1
Log Message:
no message
=====================================================================
Index: property/inc/class.uis_agreement.inc.php
diff -u property/inc/class.uis_agreement.inc.php:1.5
property/inc/class.uis_agreement.inc.php:1.6
--- property/inc/class.uis_agreement.inc.php:1.5 Wed Jun 23 20:04:59 2004
+++ property/inc/class.uis_agreement.inc.php Tue Jun 29 12:48:29 2004
@@ -484,6 +484,7 @@
$item_id = get_var('item_id',array('GET'));
$config =
CreateObject('phpgwapi.config',$this->currentapp);
+ $boalarm =
CreateObject($this->currentapp.'.boalarm');
if($delete_item && $id && $item_id)
{
@@ -607,6 +608,35 @@
}
}
+ elseif($values['delete_alarm'] &&
count($values['alarm'])):
+ {
+
+ if(!$receipt['error'])
+ {
+ $receipt =
$boalarm->delete_alarm('s_agreement',$values['alarm']);
+ }
+
+ }
+ elseif(($values['enable_alarm'] ||
$values['disable_alarm']) && count($values['alarm'])):
+ {
+
+ if(!$receipt['error'])
+ {
+ $receipt =
$boalarm->enable_alarm('s_agreement',$values['alarm'],$values['enable_alarm']);
+ }
+
+ }
+ elseif($values['add_alarm']):
+ {
+ $time =
intval($values['time']['days'])*24*3600 +
+
intval($values['time']['hours'])*3600 +
+
intval($values['time']['mins'])*60;
+
+ if ($time > 0)
+ {
+ $receipt =
$boalarm->add_alarm('s_agreement',$this->bo->read_event(array('s_agreement_id'=>$id)),$time,$values['user_id']);
+ }
+ }
elseif (!$values['save'] && !$values['apply']
&& !$values['update']):
{
$GLOBALS['phpgw']->redirect_link('/index.php','menuaction='.$this->currentapp.'.uis_agreement.index&role='
. $this->role);
@@ -671,6 +701,18 @@
'b_account_name' =>
$s_agreement['b_account_name']));
+ $alarm_data=$this->bocommon->initiate_ui_alarm(array(
+
'acl_location'=>$this->acl2_location,
+ 'alarm_type'=> 's_agreement',
+ 'type' => 'form',
+ 'text' => 'Email
notification',
+ 'times' => $times,
+ 'id' => $id,
+ 'method' => $method,
+ 'data' => $data,
+ 'account_id'=> $account_id
+ ));
+
$dateformat =
strtolower($GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
$sep = '/';
$dlarr[strpos($dateformat,'y')] = 'yyyy';
@@ -739,6 +781,7 @@
$data = array
(
+ 'alarm_data' =>
$alarm_data,
'lang_excel' =>
'excel',
'link_excel' =>
$GLOBALS['phpgw']->link('/index.php',$link_excel),
'lang_excel_help' =>
lang('Download table to MS Excel'),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc/class.uis_agreement.inc.php, 1.6,
nomail <=