mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
If no alarms are set, it should be ok now.
This commit is contained in:
parent
11ae5e79ec
commit
c5314f991b
@ -112,17 +112,20 @@
|
|||||||
$this->template->set_var('hr_text','<hr>');
|
$this->template->set_var('hr_text','<hr>');
|
||||||
$this->template->parse('row','hr',True);
|
$this->template->parse('row','hr',True);
|
||||||
|
|
||||||
@reset($this->event['alarm']);
|
if($this->event['alarm'])
|
||||||
while(list($key,$alarm) = each($this->event['alarm']))
|
|
||||||
{
|
{
|
||||||
$var = Array(
|
@reset($this->event['alarm']);
|
||||||
'edit_box' => '<input type="checkbox" name="alarm[id]" value="'.$alarm['id'].'">',
|
while(list($key,$alarm) = each($this->event['alarm']))
|
||||||
'field' => $icon.$GLOBALS['phpgw']->common->show_date($alarm['time']),
|
{
|
||||||
'data' => $alarm['text'],
|
$var = Array(
|
||||||
'alarm_enabled' => ($alarm['enabled']?'<img src="'.$GLOBALS['phpgw']->common->image('calendar','enabled.gif').'" width="13" height="13" alt="enabled">':' '),
|
'edit_box' => '<input type="checkbox" name="alarm[id]" value="'.$alarm['id'].'">',
|
||||||
'alarm_disabled' => (!$alarm['enabled']?'<img src="'.$GLOBALS['phpgw']->common->image('calendar','disabled.gif').'" width="13" height="13" alt="disabled">':' ')
|
'field' => $icon.$GLOBALS['phpgw']->common->show_date($alarm['time']),
|
||||||
);
|
'data' => $alarm['text'],
|
||||||
$this->output_template_array('row','list',$var);
|
'alarm_enabled' => ($alarm['enabled']?'<img src="'.$GLOBALS['phpgw']->common->image('calendar','enabled.gif').'" width="13" height="13" alt="enabled">':' '),
|
||||||
|
'alarm_disabled' => (!$alarm['enabled']?'<img src="'.$GLOBALS['phpgw']->common->image('calendar','disabled.gif').'" width="13" height="13" alt="disabled">':' ')
|
||||||
|
);
|
||||||
|
$this->output_template_array('row','list',$var);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$this->template->set_var('hr_text','<hr>');
|
$this->template->set_var('hr_text','<hr>');
|
||||||
$this->template->parse('row','hr',True);
|
$this->template->parse('row','hr',True);
|
||||||
|
Loading…
Reference in New Issue
Block a user