mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
imported changes from .16 (app-header & styleguide-conformace)
This commit is contained in:
parent
fbebdd7bcc
commit
ab4fe582bf
@ -67,17 +67,18 @@
|
||||
);
|
||||
}
|
||||
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Alarm Management');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$this->template = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
|
||||
$this->template->set_unknowns('keep');
|
||||
$this->template->set_file(
|
||||
Array(
|
||||
'alarm' => 'alarm.tpl'
|
||||
)
|
||||
'alarm' => 'alarm.tpl'
|
||||
)
|
||||
);
|
||||
$this->template->set_block('alarm','alarm_management','alarm_management');
|
||||
$this->template->set_block('alarm','alarm_headers','alarm_headers');
|
||||
@ -96,21 +97,26 @@
|
||||
function manager()
|
||||
{
|
||||
$this->prep_page();
|
||||
echo ExecMethod('calendar.uicalendar.view_event',$this->event);
|
||||
ExecMethod('calendar.uicalendar.view_event',$this->event);
|
||||
echo "<br>\n";
|
||||
$GLOBALS['phpgw']->template->set_var(array(
|
||||
'hr_text' => lang('Alarms').':',
|
||||
'button_left' => '',
|
||||
'button_center' => '',
|
||||
'button_right' => ''
|
||||
));
|
||||
$GLOBALS['phpgw']->template->fp('row','hr',True);
|
||||
$GLOBALS['phpgw']->template->fp('phpgw_body','view_event');
|
||||
|
||||
$this->template->set_var('hr_text','<center><b>'.lang('Alarms').'</b></center></br><hr>');
|
||||
$this->template->parse('row','hr',True);
|
||||
|
||||
$var = Array(
|
||||
'action_url' => $GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.uialarm.form_handler')),
|
||||
'time_lang' => lang('Time'),
|
||||
'text_lang' => lang('Text'),
|
||||
'enabled_pict' => $GLOBALS['phpgw']->common->image('calendar','enabled.gif'),
|
||||
'enabled_pict' => $GLOBALS['phpgw']->common->image('calendar','enabled.gif'),
|
||||
'disabled_pict' => $GLOBALS['phpgw']->common->image('calendar','disabled.gif')
|
||||
);
|
||||
|
||||
$this->output_template_array('row','alarm_headers',$var);
|
||||
$this->template->set_var('hr_text','<hr>');
|
||||
$this->template->parse('row','hr',True);
|
||||
|
||||
if($this->event['alarm'])
|
||||
{
|
||||
@ -127,10 +133,7 @@
|
||||
$this->output_template_array('row','list',$var);
|
||||
}
|
||||
}
|
||||
$this->template->set_var('hr_text','<hr>');
|
||||
$this->template->parse('row','hr',True);
|
||||
|
||||
echo $this->template->fp('out','alarm_management');
|
||||
$this->template->fp('phpgw_body','alarm_management');
|
||||
}
|
||||
|
||||
function add_alarm()
|
||||
|
@ -131,6 +131,30 @@
|
||||
print_debug('UI',$this->_debug_sqsof());
|
||||
}
|
||||
|
||||
/*!
|
||||
@function error_exit
|
||||
@abstract shows $msg centered on the screen and exit
|
||||
@syntax error_exit($msg)
|
||||
@param $msg lang()'ed msg-text or one of the predefined messages (see below)
|
||||
*/
|
||||
function error_exit($msg)
|
||||
{
|
||||
switch($msg)
|
||||
{
|
||||
case 'invalid_id':
|
||||
$msg = lang('Invalid entry id.');
|
||||
break;
|
||||
case 'no_read_perm':
|
||||
$msg = lang('You do not have permission to read this record!');
|
||||
break;
|
||||
case 'not_exist':
|
||||
$msg = lang('Sorry, this event does not exist');
|
||||
break;
|
||||
}
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body','<div style="text-align: center">'.$msg."</div>\n");
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Public functions */
|
||||
|
||||
function mini_calendar($params)
|
||||
@ -310,14 +334,21 @@
|
||||
/*!
|
||||
@function cal_header
|
||||
@abstract call common::phpgw_header and shows the application-header
|
||||
@syntax cal_header($func_header,$big_header)
|
||||
@param $func_header function name to display beside calendar-title
|
||||
@param $always_show_header or only for selected templates
|
||||
*/
|
||||
function cal_header()
|
||||
function cal_header($func_header = '',$always_show_header = False)
|
||||
{
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['noappheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['noappfooter']);
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
if (!empty($func_header) && ($always_show_header || $GLOBALS['phpgw_info']['user']['preferences']['common']['template'] == 'idots'))
|
||||
{
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'] .
|
||||
' - ' . $func_header;
|
||||
}
|
||||
|
||||
function add_col(&$tpl,$str)
|
||||
{
|
||||
@ -577,7 +608,7 @@
|
||||
$tpl->parse('phpgw_body','head_table',True);
|
||||
}
|
||||
|
||||
function printer_friendly($body)
|
||||
function printer_friendly($body,$func_header='')
|
||||
{
|
||||
if($this->bo->printer_friendly)
|
||||
{
|
||||
@ -597,7 +628,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->cal_header();
|
||||
$this->cal_header($func_header && $GLOBALS['phpgw_info']['user']['template'] == 'idots' ? $func_header : '');
|
||||
|
||||
$new_body = $this->bo->debug_string.$body;
|
||||
}
|
||||
@ -606,7 +637,7 @@
|
||||
|
||||
function month()
|
||||
{
|
||||
echo $this->printer_friendly($this->get_month());
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$this->printer_friendly($this->get_month(),lang('Monthview')));
|
||||
}
|
||||
|
||||
function get_month()
|
||||
@ -665,7 +696,7 @@
|
||||
'print' => $print
|
||||
);
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_unknowns('remove');
|
||||
$p->set_file(
|
||||
Array(
|
||||
@ -678,7 +709,7 @@
|
||||
|
||||
function week()
|
||||
{
|
||||
echo $this->printer_friendly($this->get_week());
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$this->printer_friendly($this->get_week(),lang('Weekview')));
|
||||
}
|
||||
|
||||
function get_week()
|
||||
@ -812,7 +843,7 @@
|
||||
$now['raw'] += $GLOBALS['phpgw']->datetime->tz_offset;
|
||||
$m = mktime(0,0,0,$this->bo->month,1,$this->bo->year);
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'day_t' => 'day.tpl'
|
||||
@ -845,7 +876,11 @@
|
||||
|
||||
function year()
|
||||
{
|
||||
echo $this->printer_friendly($this->get_year());
|
||||
if($this->bo->printer_friendly)
|
||||
{
|
||||
$GLOBALS['phpgw_info']['flags']['nofooter'] = True;
|
||||
}
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$this->printer_friendly($this->get_year(),lang('Yearview')));
|
||||
}
|
||||
|
||||
function get_year()
|
||||
@ -876,19 +911,27 @@
|
||||
'printer_friendly'=> $printer
|
||||
);
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'year_t' => 'year.tpl'
|
||||
)
|
||||
);
|
||||
$p->set_block('year_t','year','year');
|
||||
$p->set_block('year_t','month','month');
|
||||
$p->set_block('year_t','month_sep','month_sep');
|
||||
$p->set_block('year_t','month','month_handle');
|
||||
$p->set_block('year_t','month_sep','month_sep_handle');
|
||||
$p->set_var(array(
|
||||
'month_handle' => '',
|
||||
'month_sep_handle' => ''
|
||||
));
|
||||
$p->set_var($var);
|
||||
|
||||
for($i=1;$i<=12;$i++)
|
||||
{
|
||||
if(($i % 3) == 1)
|
||||
{
|
||||
$p->parse('row','month_sep',True);
|
||||
}
|
||||
$p->set_var('mini_month',$this->mini_calendar(
|
||||
Array(
|
||||
'day' => 1,
|
||||
@ -902,17 +945,13 @@
|
||||
);
|
||||
$p->parse('row','month',True);
|
||||
$p->set_var('mini_month','');
|
||||
if(($i % 3) == 0)
|
||||
{
|
||||
$p->parse('row','month_sep',True);
|
||||
}
|
||||
}
|
||||
return $p->fp('out','year_t');
|
||||
}
|
||||
|
||||
function view($vcal_id=0,$cal_date=0)
|
||||
{
|
||||
$this->cal_header();
|
||||
$this->cal_header(lang('View'),True);
|
||||
|
||||
$cal_id = get_var('cal_id',Array('GET','POST','DEFAULT'),$vcal_id);
|
||||
$date = get_var('date',Array('GET','DEFAULT'),$cal_date);
|
||||
@ -920,22 +959,19 @@
|
||||
// First, make sure they have permission to this entry
|
||||
if ($cal_id < 1)
|
||||
{
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body','<center>'.lang('Invalid entry id.').'</center>'."\n");
|
||||
exit;
|
||||
}
|
||||
|
||||
if(!$this->bo->check_perms(PHPGW_ACL_READ,$cal_id))
|
||||
{
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body','<center>'.lang('You do not have permission to read this record!').'</center>'."\n");
|
||||
exit;
|
||||
$this->error_exit('invalid_id');
|
||||
}
|
||||
|
||||
$event = $this->bo->read_entry($cal_id);
|
||||
|
||||
if(!isset($event['id']))
|
||||
{
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body','<center>'.lang("Sorry, this event does not exist").'.'.'</center>'."\n");
|
||||
exit;
|
||||
$this->error_exit('not_exist');
|
||||
}
|
||||
|
||||
if(!$this->bo->check_perms(PHPGW_ACL_READ,$event))
|
||||
{
|
||||
$this->error_exit('no_read_perm');
|
||||
}
|
||||
|
||||
$this->bo->repeating_events = Array();
|
||||
@ -958,15 +994,11 @@
|
||||
$event['end']['year'] = date('Y',$temp_end);
|
||||
}
|
||||
|
||||
$ret_value = $this->view_event($event,True);
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$ret_value);
|
||||
|
||||
if($ret_value == '<center>'.lang('You do not have permission to read this record!').'</center>')
|
||||
if(!$this->view_event($event,True))
|
||||
{
|
||||
exit;
|
||||
$this->error_exit('no_read_perm');
|
||||
}
|
||||
|
||||
//$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = &$GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
@ -974,6 +1006,7 @@
|
||||
)
|
||||
);
|
||||
|
||||
$button_left = $button_center = $button_right = '';
|
||||
if($this->bo->check_perms(PHPGW_ACL_EDIT,$event))
|
||||
{
|
||||
if($event['recur_type'] != MCAL_RECUR_NONE)
|
||||
@ -986,7 +1019,7 @@
|
||||
. '<input type="hidden" name="date" value="'.sprintf('%04d%02d%02d',$this->bo->year,$this->bo->month,$this->bo->day).'">'
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_left .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $this->page('edit','&cal_id='.$cal_id),
|
||||
@ -995,7 +1028,7 @@
|
||||
'action_extra_field' => '<input type="hidden" name="edit_type" value="series">'
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_left .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1006,7 +1039,7 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_left .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
}
|
||||
|
||||
$var = Array(
|
||||
@ -1016,7 +1049,7 @@
|
||||
'action_extra_field' => '<input type="hidden" name="cal_id" value="'.$cal_id.'">'
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_center .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
}
|
||||
|
||||
if ($this->bo->check_perms(PHPGW_ACL_DELETE,$event))
|
||||
@ -1031,7 +1064,7 @@
|
||||
. '<input type="hidden" name="date" value="'.sprintf('%04d%02d%02d',$this->bo->year,$this->bo->month,$this->bo->day).'">'
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_right .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $this->page('delete','&cal_id='.$cal_id),
|
||||
@ -1040,7 +1073,7 @@
|
||||
'action_extra_field' => '<input type="hidden" name="delete_type" value="series">'
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_right .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
|
||||
if($event['recur_exception'])
|
||||
{
|
||||
@ -1051,7 +1084,7 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_center .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1063,9 +1096,8 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_right .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
$var = Array(
|
||||
@ -1075,7 +1107,7 @@
|
||||
'action_extra_field' => '<input type="hidden" name="cal_id" value="'.$cal_id.'">'
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_center .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
|
||||
if ($this->bo->return_to)
|
||||
{
|
||||
@ -1086,20 +1118,20 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$p->parse('phpgw_body','form_button',True);
|
||||
$button_left .= '<td>'.$p->fp('button','form_button').'</td>';
|
||||
}
|
||||
|
||||
$p->set_var(array(
|
||||
'button_left' => $button_left,
|
||||
'button_center' => $button_center,
|
||||
'button_right' => $button_right
|
||||
));
|
||||
$p->fp('phpgw_body','view_event',True);
|
||||
|
||||
$GLOBALS['phpgw']->hooks->process('calendar_view');
|
||||
}
|
||||
|
||||
function edit($params='')
|
||||
{
|
||||
// No event loaded, so what to check?
|
||||
// if(!$this->bo->check_perms(PHPGW_ACL_EDIT))
|
||||
// {
|
||||
// $this->no_edit();
|
||||
// }
|
||||
|
||||
if($this->debug)
|
||||
{
|
||||
echo '<!-- params[readsess] = '.$params['readsess'].' -->'."\n";
|
||||
@ -1135,9 +1167,7 @@
|
||||
|
||||
if(!$this->bo->check_perms(PHPGW_ACL_EDIT,$event))
|
||||
{
|
||||
Header('Location: '.$this->page('view','&cal_id='.$cal_id));
|
||||
$GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
|
||||
exit;
|
||||
$GLOBALS['phpgw']->redirect($this->page('view','&cal_id='.$cal_id));
|
||||
}
|
||||
if(@isset($GLOBALS['HTTP_POST_VARS']['edit_type']) && $GLOBALS['HTTP_POST_VARS']['edit_type'] == 'single')
|
||||
{
|
||||
@ -1174,9 +1204,10 @@
|
||||
{
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Export');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'form_button' => 'form_button_script.tpl'
|
||||
@ -1240,50 +1271,40 @@
|
||||
$this->index();
|
||||
}
|
||||
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Reinstate');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
echo '<center>';
|
||||
|
||||
$cal_id = (isset($params['cal_id'])?intval($params['cal_id']):'');
|
||||
$cal_id = ($cal_id==''?intval($GLOBALS['HTTP_GET_VARS']['cal_id']):$cal_id);
|
||||
$cal_id = get_var('cal_id',array('GET'),$params['cal_id']);
|
||||
|
||||
if ($cal_id < 1)
|
||||
{
|
||||
echo lang('Invalid entry id.').'</center>'."\n";
|
||||
exit;
|
||||
$this->error_exit('invalid_id');
|
||||
}
|
||||
|
||||
if(!$this->bo->check_perms(PHPGW_ACL_READ))
|
||||
if(!$this->bo->check_perms(PHPGW_ACL_READ,$cal_id))
|
||||
{
|
||||
echo lang('You do not have permission to read this record!').'</center>'."\n";
|
||||
exit;
|
||||
$this->error_exit('no_read_perm');
|
||||
}
|
||||
|
||||
$event = $this->bo->read_entry($cal_id);
|
||||
|
||||
if(!isset($event['id']))
|
||||
{
|
||||
echo lang('Sorry, this event does not exist').'.'.'</center>'."\n";
|
||||
exit;
|
||||
$this->error_exit('not_exist');
|
||||
}
|
||||
elseif(!isset($event['recur_exception']))
|
||||
{
|
||||
echo lang('Sorry, this event does not have exceptions defined').'.'.'</center>'."\n";
|
||||
exit;
|
||||
$this->error_exit(lang('Sorry, this event does not have exceptions defined'));
|
||||
}
|
||||
|
||||
$ret_value = $this->view_event($event,True);
|
||||
echo $ret_value;
|
||||
|
||||
if($ret_value == '<center>'.lang('You do not have permission to read this record!').'</center>')
|
||||
if(!$this->view_event($event,True))
|
||||
{
|
||||
echo '</center>'."\n";
|
||||
exit;
|
||||
$this->error_exit('no_read_perm');
|
||||
}
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = &$GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'form_button' => 'form_button_script.tpl'
|
||||
@ -1296,15 +1317,19 @@
|
||||
{
|
||||
$str .= ' <option value="'.$i.'">'.$GLOBALS['phpgw']->common->show_date($event['recur_exception'][$i]).'</option>'."\n";
|
||||
}
|
||||
$this->output_template_array($p,'row','list',array(
|
||||
'field' => lang('Execptions'),
|
||||
'data' => '<select name="reinstate_index[]" multiple size="5">'."\n".$str.'</select>'
|
||||
));
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $this->page('reinstate','&cal_id='.$cal_id),
|
||||
'action_text_button' => lang('Reinstate'),
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => "\n".' <select name="reinstate_index[]" multiple size="5">'."\n".$str.' </select>'
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
echo $p->fp('out','form_button');
|
||||
$button_left = '<td>'.$p->fp('out','form_button').'</td>';
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $this->bo->return_to ? $GLOBALS['phpgw']->link('/index.php','menuaction='.$this->bo->return_to) : $this->page(''),
|
||||
@ -1313,7 +1338,10 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
echo $p->fp('out','form_button').'</center>';
|
||||
$button_left .= '<td>'.$p->fp('out','form_button').'</td>';
|
||||
|
||||
$p->set_var('button_left',$button_left);
|
||||
$p->pfp('phpgw_body','view_event');
|
||||
}
|
||||
|
||||
function reinstate($params='')
|
||||
@ -1493,7 +1521,7 @@
|
||||
$now = $GLOBALS['phpgw']->datetime->makegmttime(0, 0, 0, $this->bo->month, $this->bo->day, $this->bo->year);
|
||||
$now['raw'] += $GLOBALS['phpgw']->datetime->tz_offset;
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'day_t' => 'day.tpl'
|
||||
@ -1520,7 +1548,7 @@
|
||||
|
||||
$p->set_var($var);
|
||||
$p->parse('day_events','day_event');
|
||||
echo $this->printer_friendly($p->fp('out','day'));
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$this->printer_friendly($p->fp('out','day'),lang('Dayview')));
|
||||
}
|
||||
|
||||
function edit_status()
|
||||
@ -1529,6 +1557,7 @@
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['noappheader'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Change Status');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']);
|
||||
@ -1537,8 +1566,7 @@
|
||||
|
||||
if(!$event['participants'][$this->bo->owner])
|
||||
{
|
||||
echo '<center>The user '.$GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner).' is not participating in this event!</center>';
|
||||
return;
|
||||
$this->error_exit(lang('The user %1 is not participating in this event!',$GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner)));
|
||||
}
|
||||
|
||||
if(!$this->bo->check_perms(PHPGW_ACL_EDIT))
|
||||
@ -1555,10 +1583,11 @@
|
||||
'endtime' => 0,
|
||||
'participants' => $event['participants']
|
||||
)
|
||||
);
|
||||
).'<br>';
|
||||
|
||||
$event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']);
|
||||
echo $this->view_event($event);
|
||||
$this->view_event($event);
|
||||
$GLOBALS['phpgw']->template->fp('phpgw_body','view_event',True);
|
||||
|
||||
echo $this->get_response($event['id']);
|
||||
}
|
||||
@ -1651,10 +1680,7 @@
|
||||
//
|
||||
if (!$no_header)
|
||||
{
|
||||
//unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
//unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
//$GLOBALS['phpgw']->common->phpgw_header();
|
||||
$this->cal_header();
|
||||
$this->cal_header(lang('Group Planner'));
|
||||
}
|
||||
|
||||
// intervals_per_day can be configured in preferences now :-)
|
||||
@ -2177,12 +2203,9 @@
|
||||
|
||||
$sb = CreateObject('phpgwapi.sbox');
|
||||
|
||||
//unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
//unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
//$GLOBALS['phpgw']->common->phpgw_header();
|
||||
$this->cal_header();
|
||||
$this->cal_header(lang('Matrixview'));
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = &$GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'mq' => 'matrix_query.tpl',
|
||||
@ -2192,12 +2215,10 @@
|
||||
$p->set_block('mq','matrix_query','matrix_query');
|
||||
$p->set_block('mq','list','list');
|
||||
|
||||
$vars = Array(
|
||||
'matrix_action' => lang('Daily Matrix View'),
|
||||
$p->set_var(array(
|
||||
'title' => lang('Daily Matrix View'),
|
||||
'action_url' => $this->page('viewmatrix')
|
||||
);
|
||||
|
||||
$p->set_var($vars);
|
||||
));
|
||||
|
||||
// Date
|
||||
$var[] = Array(
|
||||
@ -2279,10 +2300,10 @@
|
||||
}
|
||||
|
||||
$vars = Array(
|
||||
'submit_button' => lang('Submit'),
|
||||
'action_url_button' => '',
|
||||
'submit_button' => lang('View'),
|
||||
'action_url_button' => $this->bo->return_to ? $GLOBALS['phpgw']->link('/index.php','menuaction='.$this->bo->return_to) : $this->page(''),
|
||||
'action_text_button' => lang('Cancel'),
|
||||
'action_confirm_button' => 'onClick="history.back(-1)"',
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
|
||||
@ -2330,16 +2351,14 @@
|
||||
|
||||
reset($participants);
|
||||
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
$this->cal_header(lang('Matrixview'));
|
||||
|
||||
$matrixtype = get_var('matrixtype',Array('POST'));
|
||||
switch($matrixtype)
|
||||
{
|
||||
case 'free/busy':
|
||||
$freetime = $GLOBALS['phpgw']->datetime->gmtdate(mktime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year));
|
||||
echo $this->timematrix(
|
||||
$html = '<br>'.$this->timematrix(
|
||||
Array(
|
||||
'date' => $freetime,
|
||||
'starttime' => $this->bo->splittime('000000',False),
|
||||
@ -2349,7 +2368,7 @@
|
||||
);
|
||||
break;
|
||||
case 'weekly':
|
||||
echo $this->display_weekly(
|
||||
$html = '<br>'.$this->display_weekly(
|
||||
Array(
|
||||
'date' => sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day),
|
||||
'showyear' => true,
|
||||
@ -2358,20 +2377,21 @@
|
||||
);
|
||||
break;
|
||||
}
|
||||
echo "\n".'<center>'."\n";
|
||||
echo ' <form action="'.$this->page('viewmatrix').'" method="post" name="matrixform" target="viewmatrix">'."\n";
|
||||
echo ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
|
||||
echo ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
|
||||
echo ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
|
||||
echo ' <input type="hidden" name="matrixtype" value="'.$matrixtype.'">'."\n";
|
||||
reset($parts);
|
||||
while(list($key,$value) = each($parts))
|
||||
$html .= "\n".'<br><center>'."\n";
|
||||
$html .= ' <form action="'.$this->page('viewmatrix').'" method="post" name="matrixform" target="viewmatrix">'."\n";
|
||||
$html .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
|
||||
$html .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
|
||||
$html .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
|
||||
|
||||
foreach($parts as $key => $value)
|
||||
{
|
||||
echo ' <input type="hidden" name="participants[]" value="'.$key.'">'."\n";
|
||||
$html .= ' <input type="hidden" name="participants[]" value="'.$key.'">'."\n";
|
||||
}
|
||||
echo ' <input type="submit" value="'.lang('refresh').'">'."\n";
|
||||
echo ' </form>'."\n";
|
||||
echo '</center>'."\n";
|
||||
$html .= ' <input type="submit" value="'.lang('refresh').'">'."\n";
|
||||
$html .= ' </form>'."\n";
|
||||
$html .= '</center>'."\n";
|
||||
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$html);
|
||||
}
|
||||
|
||||
function search()
|
||||
@ -2391,6 +2411,7 @@
|
||||
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Search Results');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$error = '';
|
||||
@ -2405,11 +2426,11 @@
|
||||
|
||||
$event_ids = $this->bo->search_keywords($keywords);
|
||||
$ids = Array();
|
||||
while(list($key,$id) = each($event_ids))
|
||||
foreach($event_ids as $key => $id)
|
||||
{
|
||||
$event = $this->bo->read_entry($id);
|
||||
|
||||
if(!$event['public'] && !$this->bo->check_perms(PHPGW_ACL_READ,$event))
|
||||
if(!$this->bo->check_perms(PHPGW_ACL_READ,$event))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -2417,7 +2438,11 @@
|
||||
$datetime = $this->bo->maketime($event['start']) - $GLOBALS['phpgw']->datetime->tz_offset;
|
||||
|
||||
$ids[strval($event['id'])]++;
|
||||
$info[strval($event['id'])] = $GLOBALS['phpgw']->common->show_date($datetime).$this->link_to_entry($event,$event['start']['month'],$event['start']['mday'],$event['start']['year']);
|
||||
$info[strval($event['id'])] = array(
|
||||
'tr_color' => $GLOBALS['phpgw']->nextmatchs->alternate_row_color(),
|
||||
'date' => $GLOBALS['phpgw']->common->show_date($datetime),
|
||||
'link' => $this->link_to_entry($event,$event['start']['month'],$event['start']['mday'],$event['start']['year'])
|
||||
);
|
||||
|
||||
}
|
||||
$matches = count($event_ids);
|
||||
@ -2437,11 +2462,10 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<b>'.lang('Error').':</b>'.lang('no matches found.');
|
||||
return;
|
||||
$this->error_exit(lang('no matches found.'));
|
||||
}
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'search_form' => 'search.tpl'
|
||||
@ -2453,7 +2477,6 @@
|
||||
$p->set_block('search_form','search_list_footer','search_list_footer');
|
||||
|
||||
$var = Array(
|
||||
'color' => $this->theme['bg_text'],
|
||||
'search_text' => lang('Search Results'),
|
||||
'quantity' => $quantity
|
||||
);
|
||||
@ -2465,9 +2488,9 @@
|
||||
}
|
||||
// now sort by number of hits
|
||||
arsort($ids);
|
||||
for(reset($ids);$key=key($ids);next($ids))
|
||||
foreach($ids as $key => $nul)
|
||||
{
|
||||
$p->set_var('result_desc',$info[$key]);
|
||||
$p->set_var($info[$key]);
|
||||
$p->parse('rows','search_list',True);
|
||||
}
|
||||
|
||||
@ -2501,6 +2524,10 @@
|
||||
{
|
||||
$var['hidden_vars'] = '';
|
||||
}
|
||||
if (!isset($var['tr_color']))
|
||||
{
|
||||
$var['tr_color'] = $GLOBALS['phpgw']->nextmatchs->alternate_row_color();
|
||||
}
|
||||
$p->set_var($var);
|
||||
$p->parse($row,$list,True);
|
||||
}
|
||||
@ -2542,7 +2569,7 @@
|
||||
$cols++;
|
||||
}
|
||||
|
||||
$tpl = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$tpl = $GLOBALS['phpgw']->template;
|
||||
$tpl->set_unknowns('remove');
|
||||
|
||||
include($this->template_dir.'/header.inc.php');
|
||||
@ -2731,6 +2758,7 @@
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['noappheader'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Permission denied');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
}
|
||||
echo '<center>You do not have permission to edit this appointment!</center>';
|
||||
@ -2933,9 +2961,10 @@
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['noappheader'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Scheduling Conflict');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'overlap' => 'overlap.tpl',
|
||||
@ -3359,7 +3388,7 @@
|
||||
{
|
||||
if((!$event['participants'][$this->bo->owner] && !$this->bo->check_perms(PHPGW_ACL_READ,$event)))
|
||||
{
|
||||
return '<center>'.lang('You do not have permission to read this record!').'</center>';
|
||||
return False;
|
||||
}
|
||||
|
||||
$pri = Array(
|
||||
@ -3368,9 +3397,8 @@
|
||||
3 => lang('High')
|
||||
);
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = &$GLOBALS['phpgw']->template;
|
||||
|
||||
$p->set_unknowns('keep');
|
||||
$p->set_file(
|
||||
Array(
|
||||
'view' => 'view.tpl'
|
||||
@ -3380,12 +3408,11 @@
|
||||
$p->set_block('view','list','list');
|
||||
$p->set_block('view','hr','hr');
|
||||
|
||||
$var = Array(
|
||||
'bg_text' => $this->theme['bg_text'],
|
||||
'name' => $event['title']
|
||||
$var[] = Array(
|
||||
'tr_color' => 'th',
|
||||
'field' => lang('Title'),
|
||||
'data' => $event['title']
|
||||
);
|
||||
$p->set_var($var);
|
||||
unset($var);
|
||||
|
||||
// Some browser add a \n when its entered in the database. Not a big deal
|
||||
// this will be printed even though its not needed.
|
||||
@ -3455,8 +3482,8 @@
|
||||
);
|
||||
|
||||
$var[] = Array(
|
||||
'field' => lang('Private'),
|
||||
'data' => $event['public']==True?'False':'True'
|
||||
'field' => lang('Access'),
|
||||
'data' => $event['public']==True?lang('Public'):lang('Privat')
|
||||
);
|
||||
|
||||
if(@isset($event['groups'][0]))
|
||||
@ -3581,13 +3608,10 @@
|
||||
|
||||
if($alarms && @isset($event['alarm']))
|
||||
{
|
||||
$p->set_var('hr_text','<hr>');
|
||||
$p->parse('row','hr',True);
|
||||
$p->set_var('hr_text','<center><b>'.lang('Alarms').'</b></center><br>');
|
||||
$p->set_var('hr_text',lang('Alarms'));
|
||||
$p->parse('row','hr',True);
|
||||
|
||||
@reset($event['alarm']);
|
||||
while(list($key,$alarm) = each($event['alarm']))
|
||||
foreach($event['alarm'] as $key => $alarm)
|
||||
{
|
||||
$icon = '<img src="'.$GLOBALS['phpgw']->common->image('calendar',($alarm['enabled']?'enabled':'disabled')).'" width="13" height="13">';
|
||||
$var = Array(
|
||||
@ -3597,11 +3621,7 @@
|
||||
$this->output_template_array($p,'row','list',$var);
|
||||
}
|
||||
}
|
||||
|
||||
$p->set_var('hr_text','<hr>');
|
||||
$p->parse('row','hr',True);
|
||||
|
||||
return $p->fp('out','view_event');
|
||||
return True;
|
||||
}
|
||||
|
||||
function nm_on_off()
|
||||
@ -3633,7 +3653,7 @@
|
||||
)
|
||||
);
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = $GLOBALS['phpgw']->template;
|
||||
$p->set_unknowns('keep');
|
||||
|
||||
$templates = Array(
|
||||
@ -3648,7 +3668,7 @@
|
||||
$p->set_block('day_cal','day_time','day_time');
|
||||
|
||||
if (! $this->bo->prefs['calendar']['workdaystarts'] &&
|
||||
! $this->bo->prefs['calendar']['workdayends'])
|
||||
! $this->bo->prefs['calendar']['workdayends'])
|
||||
{
|
||||
|
||||
$GLOBALS['phpgw']->preferences->add('calendar','workdaystarts',8);
|
||||
@ -3869,6 +3889,7 @@
|
||||
'close_link' => ''
|
||||
);
|
||||
}
|
||||
$var['tr_color'] = ''; // dummy to stop output_template_array to set it
|
||||
$this->output_template_array($p,'item','day_time',$var);
|
||||
$p->parse('row','day_row',True);
|
||||
$p->set_var('event','');
|
||||
@ -4024,7 +4045,7 @@
|
||||
|
||||
function get_response($cal_id)
|
||||
{
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = &$GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'form_button' => 'form_button_script.tpl'
|
||||
@ -4086,9 +4107,10 @@
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['noappheader'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $event['id'] ? lang('Calendar - Edit') : lang('Calendar - Add');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = &$GLOBALS['phpgw']->template;
|
||||
$p->set_file(
|
||||
Array(
|
||||
'edit' => 'edit.tpl',
|
||||
@ -4098,11 +4120,10 @@
|
||||
$p->set_block('edit','edit_entry','edit_entry');
|
||||
$p->set_block('edit','list','list');
|
||||
$p->set_block('edit','hr','hr');
|
||||
|
||||
|
||||
$vars = Array(
|
||||
'font' => $this->theme['font'],
|
||||
'bg_color' => $this->theme['bg_text'],
|
||||
'calendar_action' => ($event['id']?lang('Calendar - Edit'):lang('Calendar - Add')),
|
||||
'action_url' => $GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.bocalendar.update')),
|
||||
'common_hidden' => '<input type="hidden" name="cal[id]" value="'.$event['id'].'">'."\n"
|
||||
. '<input type="hidden" name="cal[owner]" value="'.$event['owner'].'">'."\n"
|
||||
@ -4117,8 +4138,9 @@
|
||||
|
||||
// Brief Description
|
||||
$var[] = Array(
|
||||
'tr_color' => 'th',
|
||||
'field' => lang('Title'),
|
||||
'data' => '<input name="cal[title]" size="25" maxlength="80" value="'.$event['title'].'">'
|
||||
'data' => '<input name="cal[title]" size="45" maxlength="80" value="'.$event['title'].'">'
|
||||
);
|
||||
|
||||
// Full Description
|
||||
@ -4153,7 +4175,7 @@
|
||||
// Location
|
||||
$var[] = Array(
|
||||
'field' => lang('Location'),
|
||||
'data' => '<input name="cal[location]" size="25" maxlength="80" value="'.$event['location'].'">'
|
||||
'data' => '<input name="cal[location]" size="45" maxlength="255" value="'.$event['location'].'">'
|
||||
);
|
||||
|
||||
// Date
|
||||
@ -4257,9 +4279,8 @@
|
||||
unset($var);
|
||||
|
||||
// Repeat Type
|
||||
$p->set_var('hr_text','<hr>');
|
||||
$p->parse('row','hr',True);
|
||||
$p->set_var('hr_text','<center><b>'.lang('Repeating Event Information').'</b></center><br>');
|
||||
$p->set_var('tr_color','th');
|
||||
$p->set_var('hr_text','<center><b>'.lang('Repeating Event Information').'</b></center>');
|
||||
$p->parse('row','hr',True);
|
||||
$rpt_type = Array(
|
||||
MCAL_RECUR_NONE,
|
||||
@ -4329,8 +4350,9 @@
|
||||
$this->output_template_array($p,'row','list',$var[$i]);
|
||||
}
|
||||
|
||||
$p->set_var('submit_button',lang('Submit'));
|
||||
$p->set_var('submit_button',lang('Save'));
|
||||
|
||||
$delete_button = $cancel_button = '';
|
||||
if ($event['id'] > 0)
|
||||
{
|
||||
$var = Array(
|
||||
@ -4340,8 +4362,10 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$extra_buttons = $p->fp('out','form_button');
|
||||
$delete_button = $p->fp('out','form_button');
|
||||
}
|
||||
$p->set_var('delete_button',$delete_button);
|
||||
|
||||
if ($this->bo->return_to)
|
||||
{
|
||||
$var = Array(
|
||||
@ -4351,10 +4375,9 @@
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$extra_buttons .= ($event['id']>0?'<br>':'') . $p->fp('out','form_button');
|
||||
$cancel_button = $p->fp('out','form_button');
|
||||
}
|
||||
$p->set_var('extra_buttons',$extra_buttons);
|
||||
|
||||
$p->set_var('cancel_button',$cancel_button);
|
||||
$p->pparse('out','edit_entry');
|
||||
}
|
||||
|
||||
|
@ -41,8 +41,9 @@
|
||||
$this->bo->check_admin();
|
||||
$this->base_url = $this->bo->base_url;
|
||||
$this->template_dir = $GLOBALS['phpgw']->common->get_tpl_dir('calendar');
|
||||
|
||||
$this->sb = CreateObject('phpgwapi.sbox');
|
||||
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Holiday Management');
|
||||
}
|
||||
|
||||
function admin()
|
||||
@ -52,7 +53,7 @@
|
||||
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$p = &$GLOBALS['phpgw']->template;
|
||||
$p->set_file(Array('locales'=>'locales.tpl'));
|
||||
$p->set_block('locales','list','list');
|
||||
$p->set_block('locales','row','row');
|
||||
@ -148,7 +149,7 @@
|
||||
$holidays = $this->bo->get_holiday_list();
|
||||
|
||||
$var = Array(
|
||||
'th_bg' => $phpgw_info['theme']['th_bg'],
|
||||
'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'],
|
||||
'left_next_matchs' => $GLOBALS['phpgw']->nextmatchs->left('/index.php',$this->bo->start,$this->bo->total,'&menuaction=calendar.uiholiday.edit_locale&locale='.$this->bo->locales[0].'&year='.$this->bo->year),
|
||||
'right_next_matchs' => $GLOBALS['phpgw']->nextmatchs->right('/index.php',$this->bo->start,$this->bo->total,'&menuaction=calendar.uiholiday.edit_locale&locale='.$this->bo->locales[0].'&year='.$this->bo->year),
|
||||
'center' => '<td align="right">'.lang('Holidays').' ('.$this->bo->locales[0].')</td><td align="left">'.$year_form.'</td>',
|
||||
@ -234,9 +235,10 @@
|
||||
unset($GLOBALS['phpgw_info']['flags']['noheader']);
|
||||
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
|
||||
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.($this->bo->id ? lang('Edit') : lang('Add')).' '.lang('Holiday');
|
||||
$GLOBALS['phpgw']->common->phpgw_header();
|
||||
|
||||
$t = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||
$t = &$GLOBALS['phpgw']->template;
|
||||
$t->set_file(Array('holiday'=>'holiday.tpl','form_button'=>'form_button_script.tpl'));
|
||||
$t->set_block('holiday','form','form');
|
||||
$t->set_block('holiday','list','list');
|
||||
@ -266,7 +268,8 @@
|
||||
$this->display_item($t,lang('title'),'<input name="holiday[name]" size="60" maxlength="50" value="'.$holiday['name'].'">');
|
||||
|
||||
// Date
|
||||
$this->display_item($t,lang('Date'),$GLOBALS['phpgw']->common->dateformatorder($this->sb->getYears('holiday[year]',$holiday['occurence']>1900?$holiday['occurence']:0),$this->sb->getMonthText('holiday[month_num]',$holiday['month']),$this->sb->getDays('holiday[mday]',$holiday['day'])));
|
||||
$this->display_item($t,lang('Date'),$GLOBALS['phpgw']->common->dateformatorder($this->sb->getYears('holiday[year]',$holiday['occurence']>1900?$holiday['occurence']:0),$this->sb->getMonthText('holiday[month_num]',$holiday['month']),$this->sb->getDays('holiday[mday]',$holiday['day'])).
|
||||
' '.lang('Set a Year only for one-time / non-regular holidays.'));
|
||||
|
||||
// Occurence
|
||||
$occur = Array(
|
||||
@ -300,8 +303,10 @@
|
||||
$out .= '<option value="'.$i.'"'.($holiday['dow']==$i?' selected':'').'>'.$dow[$i].'</option>'."\n";
|
||||
}
|
||||
$dow_html = '<select name="holiday[dow]">'."\n".$out.'</select>'."\n";
|
||||
$this->display_item($t,lang('Occurence'),$occurence_html.' '.$dow_html);
|
||||
$this->display_item($t,lang('Observance Rule'),'<input type="checkbox" name="holiday[observance_rule]" value="True"'.($holiday['observance_rule']?' checked':'').'>');
|
||||
$this->display_item($t,lang('Occurence'),$occurence_html.' '.$dow_html.
|
||||
' '.lang('You can either set a Year or a Occurence, not both !!!'));
|
||||
$this->display_item($t,lang('Observance Rule'),'<input type="checkbox" name="holiday[observance_rule]" value="True"'.($holiday['observance_rule']?' checked':'').'>'.
|
||||
' '.lang('If checked holidays falling on a weekend, are taken on the monday after.'));
|
||||
|
||||
$t->set_var('lang_add',lang('Save'));
|
||||
$t->set_var('lang_reset',lang('Reset'));
|
||||
@ -310,7 +315,7 @@
|
||||
{
|
||||
$link_params = Array(
|
||||
'menuaction' => 'calendar.uiholiday.edit_locale',
|
||||
'year' => $this->bo->year,
|
||||
'year' => $this->bo->year,
|
||||
'locale' => $this->bo->locales[0]
|
||||
);
|
||||
}
|
||||
@ -321,14 +326,34 @@
|
||||
);
|
||||
}
|
||||
|
||||
$var = Array(
|
||||
$t->set_var(Array(
|
||||
'action_url_button' => $GLOBALS['phpgw']->link($this->base_url,$link_params),
|
||||
'action_text_button' => lang('Cancel'),
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$t->set_var($var);
|
||||
));
|
||||
$t->parse('cancel_button','form_button');
|
||||
|
||||
if ($this->bo->id)
|
||||
{
|
||||
$link_params = Array(
|
||||
'menuaction' => 'calendar.uiholiday.delete_holiday',
|
||||
'year' => $this->bo->year,
|
||||
'locale' => $this->bo->locales[0],
|
||||
'id' => $this->bo->id
|
||||
);
|
||||
$t->set_var(Array(
|
||||
'action_url_button' => $GLOBALS['phpgw']->link($this->base_url,$link_params),
|
||||
'action_text_button' => lang('Delete'),
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
));
|
||||
$t->parse('delete_button','form_button');
|
||||
}
|
||||
else
|
||||
{
|
||||
$t->set_var('delete_button',' ');
|
||||
}
|
||||
$t->pparse('out','form');
|
||||
}
|
||||
|
||||
@ -471,6 +496,7 @@
|
||||
function display_item(&$p,$field,$data)
|
||||
{
|
||||
$var = Array(
|
||||
'tr_color' => $GLOBALS['phpgw']->nextmatchs->alternate_row_color(),
|
||||
'field' => $field,
|
||||
'data' => $data
|
||||
);
|
||||
|
@ -30,9 +30,9 @@
|
||||
{
|
||||
$this->bo = CreateObject('calendar.boicalendar');
|
||||
$this->template = $GLOBALS['phpgw']->template;
|
||||
$GLOBALS['phpgw_info']['flags']['app_header'] = lang('Calendar - [iv]Cal Importer');
|
||||
}
|
||||
|
||||
|
||||
function print_test($val,$title,$x_pre='')
|
||||
{
|
||||
// echo 'VAL = '._debug_array($val,False)."<br>\n";
|
||||
@ -191,7 +191,7 @@
|
||||
);
|
||||
|
||||
$var = Array(
|
||||
'vcal_header' => '<p> <b>' . lang('Calendar - [iv]Cal Importer') . '</b><hr><p>',
|
||||
'vcal_header' => '<p>',
|
||||
'ical_lang' => lang('(i/v)Cal'),
|
||||
'action_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.boicalendar.import'),
|
||||
'lang_access' => lang('Access'),
|
||||
|
@ -1,4 +1,7 @@
|
||||
%1 %2 in %3 calendar de %1 %2 im %3
|
||||
%1 matches found calendar de %1 Treffer gefunden
|
||||
%1 records imported calendar de %1 Datensätze importiert
|
||||
%1 records read (not yet imported, you may go back and uncheck test import) calendar de %1 Datensätze gelesen (noch nicht importiert, sie können zurück gehen und Test Import ausschalten)
|
||||
(for weekly) calendar de (für wöchentlich)
|
||||
(i/v)cal calendar de [iv]Cal
|
||||
1 match found calendar de 1 Treffer gefunden
|
||||
@ -27,12 +30,18 @@ calendar event calendar de Kalender Aktualisierung
|
||||
calendar holiday management admin de Feiertage verwalten
|
||||
calendar preferences calendar de Kalender Einstellungen
|
||||
calendar settings admin de Kalender Einstellungen
|
||||
calendar-fieldname calendar de Kalender Feldname
|
||||
change all events for $params['old_owner'] to $params['new_owner']. calendar de Ändere alle Termine für $params['old_owner'] auf $params['new_owner'].
|
||||
change status calendar de Zusage ändern
|
||||
choose the category calendar de Kategorie auswählen
|
||||
countries calendar de Länder
|
||||
country calendar de Land
|
||||
csv-fieldname calendar de CSV-Feldname
|
||||
csv-filename calendar de CSV-Dateiname
|
||||
daily calendar de Täglich
|
||||
daily matrix view calendar de Matrix-Ansicht des Tages
|
||||
days repeated calendar de wiederholte Tage
|
||||
dayview calendar de Tagesansicht
|
||||
default calendar filter calendar de Standard-Filter des Kalenders
|
||||
default calendar view calendar de Standard-Ansicht des Kalenders
|
||||
delete a single entry by passing the id. calendar de Lösche einen einzelnen Eintrag über seine Id.
|
||||
@ -53,8 +62,10 @@ end date/time calendar de Enddatum/-zeit
|
||||
ends calendar de endet
|
||||
enter output filename: ( .vcs appended ) calendar de Namen der Ausgabedatei (.vcs angehangen)
|
||||
event details follow calendar de Details zum Termin folgen
|
||||
execptions calendar de Ausnahmen
|
||||
export calendar de Exportieren
|
||||
export a list of entries in ical format. calendar de Eine Liste von Einträgen im iCal Format exportieren.
|
||||
fieldseparator calendar de Feldtrenner
|
||||
fr calendar de Fr
|
||||
free/busy calendar de frei/belegt
|
||||
frequency calendar de Häufigkeit
|
||||
@ -73,8 +84,10 @@ high priority calendar de Hohe Priorit
|
||||
holiday calendar de Feiertag
|
||||
holidays calendar de Feiertage
|
||||
i participate calendar de Ich nehme teil
|
||||
if checked holidays falling on a weekend, are taken on the monday after. calendar de Wenn ausgewählt werden Feiertage die auf ein Wochenende fallen, am drauffolgenden Montag nachgeholt.
|
||||
ignore conflict calendar de Konflikt ignorieren
|
||||
import calendar de Importieren
|
||||
import csv-file into calendar calendar de CSV-Datei in den Kalender importieren
|
||||
interval calendar de Interval
|
||||
invalid entry id. calendar de ungültige Id des Eintrags.
|
||||
last calendar de letzte
|
||||
@ -82,6 +95,7 @@ load [iv]cal calendar de [iv]Cal Laden
|
||||
location calendar de Ort
|
||||
location to autoload from admin de Von wo sollen sie geladen werden
|
||||
low calendar de niedrig
|
||||
matrixview calendar de Matrixansicht
|
||||
minutes calendar de Minuten
|
||||
mo calendar de Mo
|
||||
modified calendar de Geändert
|
||||
@ -90,12 +104,14 @@ month calendar de Monat
|
||||
monthly calendar de Monatlich
|
||||
monthly (by date) calendar de Monatlich (nach Datum)
|
||||
monthly (by day) calendar de Monatlich (nach Wochentag)
|
||||
monthview calendar de Monatsansicht
|
||||
new entry calendar de Neuer Eintrag
|
||||
no matches found. calendar de Keine Treffer gefunden.
|
||||
no response calendar de Keine Antwort
|
||||
normal calendar de normal
|
||||
number of intervals per day in planner view calendar de Anzahl Intervale pro Tag im Planer
|
||||
number of months calendar de Anzahl Monate
|
||||
number of records to read (<=200) calendar de Anzeil Datensätze zu lesen (<= 200)
|
||||
observance rule calendar de Observance Rule
|
||||
occurence calendar de Wiederholung
|
||||
on %1 %2 %3 your meeting request for %4 calendar de Am %1 hat %2 Ihre Einladung für den %4 %3
|
||||
@ -103,7 +119,8 @@ overlap holiday calendar de
|
||||
participant calendar de Teilnehmer
|
||||
participants calendar de Teilnehmer
|
||||
participates calendar de nimmt teil
|
||||
people holiday calendar de
|
||||
people holiday calendar de Feiertag
|
||||
permission denied calendar de Zugriff verweigert
|
||||
planner calendar de Planer
|
||||
planner by category calendar de Planer nach Kategorien
|
||||
planner by user calendar de Planer nach Benutzern
|
||||
@ -111,6 +128,7 @@ please confirm,accept,reject or examine changes in the corresponding entry in yo
|
||||
preselected group for entering the planner calendar de vorausgewählte Gruppe beim Planeraufruf
|
||||
print calendars in black & white calendar de Kalender in Schwarz und Weiß drucken
|
||||
printer friendly calendar de Drucker-freundlich
|
||||
privat calendar de Privat
|
||||
private and global public calendar de Privat und Global Öffentlich
|
||||
private and group public calendar de Privat und Gruppen Öffentlich
|
||||
private only calendar de nur private
|
||||
@ -137,6 +155,8 @@ scheduling conflict calendar de Termin
|
||||
search results calendar de Suchergebnisse
|
||||
send updates via email common de Updates via EMail senden
|
||||
send/receive updates via email calendar de Senden/Empfangen von Aktualisierungen via EMail
|
||||
send_extra calendar de
|
||||
set a year only for one-time / non-regular holidays. calendar de Nur für einmalige / unregelmäßige Feiertage das Jahr angeben.
|
||||
show day view on main screen calendar de Tagesansicht auf Startseite anzeigen
|
||||
show default view on main screen calendar de Standardansicht auf der Startseite anzeigen
|
||||
show high priority events on main screen calendar de Termine mit hoher Priorität auf der Startseite anzeigen
|
||||
@ -147,13 +167,16 @@ sorry, this event does not have exceptions defined calendar de Dieser Termin hat
|
||||
sort by calendar de Sortieren nach
|
||||
start date/time calendar de Startdatum/-zeit
|
||||
start- and enddates calendar de Start- und Enddatum/-zeit
|
||||
startrecord calendar de Startdatensatz
|
||||
su calendar de So
|
||||
submit to repository calendar de Übertragen zu phpGroupWare.org
|
||||
sun calendar de So
|
||||
tentative calendar de Vorläufige Zusage
|
||||
test import (show importable records <u>only</u> in browser) calendar de Test Import (zeigt importierte Datensätze <u>nur</u> im Webbrowser an)
|
||||
text calendar de Text
|
||||
th calendar de Do
|
||||
the following conflicts with the suggested time:<ul>%1</ul> calendar de Im gewählten Zeitraum gibt es einen Konflikt:<ul>%1</ul>
|
||||
the user %1 is not participating in this event! calendar de Der Benutzer %1 nimmt nicht an diesem Event teil!
|
||||
there was an error trying to connect to your news server.<br>please contact your admin to check the news servername, username or password. calendar de Fehler beim Kontaktieren Ihres News-Servers.<br>Bitte benachrichtigen Sie ihren Administrator um Servername, Username und Passwort für News zu überprüfen.
|
||||
this month calendar de Dieser Monat
|
||||
this week calendar de Diese Woche
|
||||
@ -161,6 +184,7 @@ this year calendar de Dieses Jahr
|
||||
thu calendar de Do
|
||||
title calendar de TITEL
|
||||
today calendar de Heute
|
||||
translation calendar de Übersetzung
|
||||
tu calendar de Di
|
||||
tue calendar de Di
|
||||
update a single entry by passing the fields. calendar de Einen einzelnen Termin über seine Felder updaten.
|
||||
@ -172,12 +196,15 @@ wed calendar de Mi
|
||||
week calendar de Woche
|
||||
weekday starts on calendar de Arbeitswoche beginnt am
|
||||
weekly calendar de Wöchentlich
|
||||
weekview calendar de Wochenansicht
|
||||
when creating new events default set to private calendar de neue Termine sind privat
|
||||
work day ends on calendar de Arbeitstag endet um
|
||||
work day starts on calendar de Arbeitstag beginnt um
|
||||
%1 matches found calendar de %1 Treffer gefunden
|
||||
workdayends calendar de Arbeitstag endet um
|
||||
year calendar de Jahr
|
||||
yearly calendar de Jährlich
|
||||
yearview calendar de
|
||||
you can either set a year or a occurence, not both !!! calendar de Sie können nur entweder das Jahr oder die Wiederholung angeben, nicht beides !!!
|
||||
you can only set a year or a occurence !!! calendar de Sie können nur ein Jahr oder eine Wiederholung angeben !!!
|
||||
you do not have permission to read this record! calendar de Sie haben keine Berechtigung diesen Eintrag zu lesen!
|
||||
you have 1 high priority event on your calendar today. common de Sie haben heute einen Eintrag mit hoher Priorität auf Ihrer Liste!
|
||||
|
@ -1,5 +1,7 @@
|
||||
%1 %2 in %3 calendar en %1 %2 in %3
|
||||
%1 matches found calendar en %1 matches found
|
||||
%1 records imported calendar en %1 records imported
|
||||
%1 records read (not yet imported, you may go back and uncheck test import) calendar en %1 records read (not yet imported, you may go back and uncheck Test Import)
|
||||
(for weekly) calendar en (for Weekly)
|
||||
(i/v)cal calendar en (i/v)Cal
|
||||
1 match found calendar en 1 match found
|
||||
@ -11,6 +13,7 @@ add alarm calendar en Add Alarm
|
||||
added calendar en Added
|
||||
alarm calendar en alarm
|
||||
alarm management calendar en Alarm Management
|
||||
alarm-management calendar en Alarm-Management
|
||||
alarms calendar en Alarms
|
||||
all day calendar en All Day
|
||||
are you sure you want to delete this country ? calendar en Are you sure you want to delete this Country ?
|
||||
@ -27,11 +30,18 @@ calendar event calendar en Calendar Event
|
||||
calendar holiday management admin en Calendar Holiday Management
|
||||
calendar preferences calendar en Calendar Preferences
|
||||
calendar settings admin en Calendar Settings
|
||||
calendar-fieldname calendar en Calendar-Fieldname
|
||||
change all events for $params['old_owner'] to $params['new_owner']. calendar en Change all events for $params['old_owner'] to $params['new_owner'].
|
||||
change status calendar en Change Status
|
||||
configuration calendar en Configuration
|
||||
countries calendar en Countries
|
||||
country calendar en Country
|
||||
csv-fieldname calendar en CSV-Fieldname
|
||||
csv-filename calendar en CSV-Filename
|
||||
daily calendar en Daily
|
||||
daily matrix view calendar en Daily Matrix View
|
||||
days repeated calendar en days repeated
|
||||
dayview calendar en Dayview
|
||||
default calendar filter calendar en Default calendar filter
|
||||
default calendar view calendar en Default calendar view
|
||||
delete a single entry by passing the id. calendar en Delete a single entry by passing the id.
|
||||
@ -53,8 +63,10 @@ end date/time calendar en End Date/Time
|
||||
ends calendar en ends
|
||||
enter output filename: ( .vcs appended ) calendar en Enter Output Filename: ( .vcs appended )
|
||||
event details follow calendar en Event Details Follow
|
||||
execptions calendar en Execptions
|
||||
export calendar en Export
|
||||
export a list of entries in ical format. calendar en Export a list of entries in iCal format.
|
||||
fieldseparator calendar en Fieldseparator
|
||||
fr calendar en F
|
||||
free/busy calendar en Free/Busy
|
||||
frequency calendar en Frequency
|
||||
@ -70,16 +82,21 @@ has been canceled calendar en has been canceled
|
||||
has been rescheduled to calendar en has been rescheduled to
|
||||
high priority calendar en high priority
|
||||
holiday calendar en Holiday
|
||||
holiday management calendar en Holiday Management
|
||||
holiday-management calendar en Holiday-Management
|
||||
holidays calendar en Holidays
|
||||
i participate calendar en I Participate
|
||||
if checked holidays falling on a weekend, are taken on the monday after. calendar en If checked holidays falling on a weekend, are taken on the monday after.
|
||||
ignore conflict calendar en Ignore Conflict
|
||||
import calendar en Import
|
||||
import csv-file into calendar calendar en Import CSV-File into Calendar
|
||||
interval calendar en Interval
|
||||
invalid entry id. calendar en Invalid entry id.
|
||||
last calendar en last
|
||||
load [iv]cal calendar en Load [iv]Cal
|
||||
location calendar en Location
|
||||
location to autoload from admin en Location to autoload from
|
||||
matrixview calendar en Matrixview
|
||||
minutes calendar en minutes
|
||||
mo calendar en M
|
||||
modified calendar en Modified
|
||||
@ -88,11 +105,13 @@ month calendar en Month
|
||||
monthly calendar en Monthly
|
||||
monthly (by date) calendar en Monthly (by date)
|
||||
monthly (by day) calendar en Monthly (by day)
|
||||
monthview calendar en Monthview
|
||||
new entry calendar en New Entry
|
||||
no matches found. calendar en No matches found.
|
||||
no response calendar en No Response
|
||||
number of intervals per day in planner view calendar en Number of Intervals per Day in Planner View
|
||||
number of months calendar en Number of months
|
||||
number of records to read (<=200) calendar en Number of records to read (<=200)
|
||||
observance rule calendar en Observance Rule
|
||||
occurence calendar en Occurence
|
||||
on %1 %2 %3 your meeting request for %4 calendar en On %1 %2 %3 your meeting request for %4
|
||||
@ -100,13 +119,17 @@ overlap holiday calendar en overlap holiday
|
||||
participant calendar en Participant
|
||||
participants calendar en Participants
|
||||
participates calendar en Participates
|
||||
people holiday calendar en people holiday
|
||||
permission denied calendar en Permission denied
|
||||
planner calendar en Planner
|
||||
planner by category calendar en Planner by category
|
||||
planner by user calendar en Planner by user
|
||||
planner_user calendar en planner_user
|
||||
please confirm,accept,reject or examine changes in the corresponding entry in your calendar calendar en Please confirm, accept, reject or examine changes in the corresponding entry in your calendar
|
||||
preselected group for entering the planner calendar en Preselected group for entering the planner
|
||||
print calendars in black & white calendar en Print calendars in black & white
|
||||
printer friendly calendar en Printer Friendly
|
||||
privat calendar en Privat
|
||||
private and global public calendar en Private and Global Public
|
||||
private and group public calendar en Private and Group Public
|
||||
private only calendar en Private Only
|
||||
@ -132,6 +155,8 @@ scheduling conflict calendar en Scheduling Conflict
|
||||
search results calendar en Search Results
|
||||
send updates via email common en Send updates via EMail
|
||||
send/receive updates via email calendar en Send/Receive updates via EMail
|
||||
send_extra calendar en send_extra
|
||||
set a year only for one-time / non-regular holidays. calendar en Set a Year only for one-time / non-regular holidays.
|
||||
show day view on main screen calendar en show day view on main screen
|
||||
show default view on main screen calendar en Show default view on main screen
|
||||
show high priority events on main screen calendar en Show high priority events on main screen
|
||||
@ -142,13 +167,16 @@ sorry, this event does not have exceptions defined calendar en Sorry, this event
|
||||
sort by calendar en Sort by
|
||||
start date/time calendar en Start Date/Time
|
||||
start- and enddates calendar en Start- and Enddates
|
||||
startrecord calendar en Startrecord
|
||||
su calendar en Su
|
||||
submit to repository calendar en Submit to Repository
|
||||
sun calendar en Sun
|
||||
tentative calendar en Tentative
|
||||
test import (show importable records <u>only</u> in browser) calendar en Test Import (show importable records <u>only</u> in browser)
|
||||
text calendar en Text
|
||||
th calendar en T
|
||||
the following conflicts with the suggested time:<ul>%1</ul> calendar en The following conflicts with the suggested time:<ul>%1</ul>
|
||||
the user %1 is not participating in this event! calendar en The user %1 is not participating in this event!
|
||||
there was an error trying to connect to your news server.<br>please contact your admin to check the news servername, username or password. calendar en There was an error trying to connect to your news server.<br>Please contact your admin to check the news servername, username or password.
|
||||
this month calendar en This month
|
||||
this week calendar en This week
|
||||
@ -156,6 +184,7 @@ this year calendar en This year
|
||||
thu calendar en Thu
|
||||
title calendar en TITLE
|
||||
today calendar en Today
|
||||
translation calendar en Translation
|
||||
tu calendar en T
|
||||
tue calendar en Tue
|
||||
update a single entry by passing the fields. calendar en Update a single entry by passing the fields.
|
||||
@ -167,10 +196,14 @@ wed calendar en Wed
|
||||
week calendar en Week
|
||||
weekday starts on calendar en Weekday starts on
|
||||
weekly calendar en Weekly
|
||||
weekview calendar en Weekview
|
||||
when creating new events default set to private calendar en When creating new events default set to private
|
||||
work day ends on calendar en Work day ends on
|
||||
work day starts on calendar en Work day starts on
|
||||
workdayends calendar en workdayends
|
||||
yearly calendar en Yearly
|
||||
yearview calendar en Yearview
|
||||
you can either set a year or a occurence, not both !!! calendar en You can either set a Year or a Occurence, not both !!!
|
||||
you can only set a year or a occurence !!! calendar en You can only set a year or a occurence !!!
|
||||
you do not have permission to read this record! calendar en You do not have permission to read this record!
|
||||
you have %1 high priority events on your calendar today. common en You have %1 high priority events on your calendar today.
|
||||
|
@ -2,25 +2,23 @@
|
||||
<!-- BEGIN alarm_management -->
|
||||
<form action="{action_url}" method="post" name="alarmform">
|
||||
<center>
|
||||
<font color="{bg_text}">
|
||||
<table border="0" width="75%">
|
||||
<table border="0" width="90%">
|
||||
{row}
|
||||
</table>
|
||||
</font>
|
||||
</center>
|
||||
</form>
|
||||
<!-- END alarm_management -->
|
||||
<!-- BEGIN alarm_headers -->
|
||||
<tr>
|
||||
<tr class="th">
|
||||
<th valign="top" align="left" width="4%"> </b></th>
|
||||
<th valign="top" align="left" width="30%"><b>{time_lang}</b></th>
|
||||
<th valign="top" align="left" width="54%">{text_lang}</th>
|
||||
<th valign="top" align="left" width="6%"><img src="{enabled_pict}" width="13" height="13" alt="enabled"></th>
|
||||
<th valign="top" align="left" width="6%"><img src="{disabled_pict}" width="13" height="13" alt="disabled"></th>
|
||||
<th valign="top" align="left" width="30%"> <b>{time_lang}</b></th>
|
||||
<th valign="top" align="left" width="54%"> {text_lang}</th>
|
||||
<th valign="top" align="center" width="6%"><img src="{enabled_pict}" width="13" height="13" alt="enabled"></th>
|
||||
<th valign="top" align="center" width="6%"><img src="{disabled_pict}" width="13" height="13" alt="disabled"></th>
|
||||
</tr>
|
||||
<!-- END alarm_headers -->
|
||||
<!-- BEGIN list -->
|
||||
<tr>
|
||||
<tr class="{tr_color}">
|
||||
<td valign="top" align="left" width="4%">{edit_box}</td>
|
||||
<td valign="top" align="left" width="30%"><b>{field}:</b></td>
|
||||
<td valign="top" align="left" width="54%">{data}</td>
|
||||
@ -29,9 +27,7 @@
|
||||
</tr>
|
||||
<!-- END list -->
|
||||
<!-- BEGIN hr -->
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
{hr_text}
|
||||
</td>
|
||||
<tr class="th">
|
||||
<td colspan="5" align="center"><b>{hr_text}</b></td>
|
||||
</tr>
|
||||
<!-- END hr -->
|
||||
|
@ -1,36 +1,38 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN edit_entry -->
|
||||
<body bgcolor="#C0C0C0">
|
||||
<center>
|
||||
<font color="#000000" face="{font}">
|
||||
<h2>{calendar_action}</h2>
|
||||
|
||||
<form action="{action_url}" method="post" name="addform">
|
||||
{common_hidden}
|
||||
<table border="0" width="75%">
|
||||
<table border="0" width="90%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<center><font size="+1"><b>{errormsg}</b></font></center>
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
{row}
|
||||
<tr>
|
||||
<td>
|
||||
<table><tr valign="top">
|
||||
<td><input type="submit" value="{submit_button}"> </form></td>
|
||||
<td>{cancel_button}</td>
|
||||
</tr></table>
|
||||
</td>
|
||||
<td align="right">{delete_button}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" value="{submit_button}">
|
||||
</form>
|
||||
<br/>
|
||||
{extra_buttons}
|
||||
</font>
|
||||
</center>
|
||||
<!-- END edit_entry -->
|
||||
<!-- BEGIN list -->
|
||||
<tr>
|
||||
<td valign="top" width="35%"><b>{field}:</b></td>
|
||||
<tr class="{tr_color}">
|
||||
<td valign="top" width="35%"> <b>{field}:</b></td>
|
||||
<td valign="top" width="65%">{data}</td>
|
||||
</tr>
|
||||
<!-- END list -->
|
||||
<!-- BEGIN hr -->
|
||||
<tr>
|
||||
<tr class="{tr_color}">
|
||||
<td colspan="2">
|
||||
{hr_text}
|
||||
</td>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN head -->
|
||||
{row}
|
||||
{row}<br>
|
||||
<!-- END head -->
|
||||
<!-- BEGIN head_table -->
|
||||
<table border="0" width="100%" cols="{cols}" cellpadding="0" cellspacing="0">
|
||||
|
@ -1,35 +1,33 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN form -->
|
||||
<center>
|
||||
<table border="0" width="80%" cellspacing="2" cellpadding="2">
|
||||
<tr><td colspan="1" align="center" bgcolor="#c9c9c9"><b>{title_holiday}<b/></td></tr>
|
||||
</table>
|
||||
{message}
|
||||
{message}<br>
|
||||
<table border="0" width="80%" cellspacing="2" cellpadding="2">
|
||||
<form name="form" action="{actionurl}" method="POST">
|
||||
{hidden_vars}
|
||||
{rows}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="2">
|
||||
<tr valign="bottom">
|
||||
<td height="50" align="center">
|
||||
<input type="submit" name="submit" value="{lang_add}">
|
||||
<table width="100%" border="0" cellspacing="5">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<input type="submit" name="submit" value="{lang_add}"></form>
|
||||
</td>
|
||||
<td height="50" align="center">
|
||||
<input type="reset" name="reset" value="{lang_reset}">
|
||||
<td>
|
||||
{cancel_button}
|
||||
</td>
|
||||
<td align="right" width="80%">
|
||||
{delete_button}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{cancel_button}
|
||||
</center>
|
||||
<!-- END form -->
|
||||
<!-- BEGIN list -->
|
||||
<tr>
|
||||
<tr class="{tr_color}">
|
||||
<td valign="top" width="35%"><b>{field}:</b></td>
|
||||
<td valign="top" width="65%">{data}</td>
|
||||
</tr>
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
</table>
|
||||
|
||||
<table border="0" width="60%" align="center">
|
||||
<table border="0" width="70%" cellspacing="5" align="center">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<form method="POST" action="{new_action}">
|
||||
@ -29,9 +29,9 @@
|
||||
</form>
|
||||
</td>
|
||||
{back_button}
|
||||
<td align="right">{lang_search}
|
||||
<td width="80%" align="right">
|
||||
<form method="POST" action="{search_action}">
|
||||
<input name="query">
|
||||
{lang_search} <input name="query">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@ -39,7 +39,7 @@
|
||||
<!-- END list -->
|
||||
<!-- BEGIN row -->
|
||||
<tr class="{tr_color}">
|
||||
<td>{group_name}</td>
|
||||
<td> {group_name}</td>
|
||||
{rule}
|
||||
<td width="5%">{edit_link}</td>
|
||||
<td width="5%">{delete_link}</td>
|
||||
|
@ -1,20 +1,26 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN matrix_query -->
|
||||
<center>
|
||||
<h2><font color="#000000">{matrix_action}</font></h2>
|
||||
|
||||
<form target="viewmatrix" action="{action_url}" method="post" name="matrixform">
|
||||
<table border="0" width="75%">
|
||||
{rows}
|
||||
<table border="0" width="90%">
|
||||
<tr class="th">
|
||||
<td colspan="2" align="center"><b>{title}</b></td>
|
||||
</tr>
|
||||
{rows}
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="5"><tr valign="top">
|
||||
<td><input type="submit" value="{submit_button}"></form></td>
|
||||
<td>{cancel_button}</td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" value="{submit_button}">
|
||||
</form>
|
||||
{cancel_button}
|
||||
</center>
|
||||
<!-- END matrix_query -->
|
||||
<!-- BEGIN list -->
|
||||
<tr>
|
||||
<td valign="top" width="35%"><b>{field}:</b></td>
|
||||
<tr class="{tr_color}">
|
||||
<td valign="top" width="35%"><b> {field}:</b></td>
|
||||
<td valign="top" width="65%">{data}</td>
|
||||
</tr>
|
||||
<!-- END list -->
|
||||
|
@ -1,14 +1,15 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN overlap -->
|
||||
<center>
|
||||
<h2>
|
||||
<font color="{color}">{overlap_title}</font>
|
||||
</h2>
|
||||
<center><br>
|
||||
<table>
|
||||
<tr><td>{overlap_text}</td></tr>
|
||||
<tr><td><ul>{overlap_list}</ul></td></tr>
|
||||
<tr><td>
|
||||
<table cellspacing="5"><tr>
|
||||
<td>{resubmit_button}</td>
|
||||
<td>{reedit_button}</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
</table>
|
||||
{resubmit_button}
|
||||
{reedit_button}
|
||||
</center>
|
||||
<!-- END overlap -->
|
||||
|
@ -1,16 +1,19 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN search -->
|
||||
<h2><font color="{color}">{search_text}</font></h2>
|
||||
<b>{quantity}</b><p>
|
||||
<table width="90%">
|
||||
<tr><td colspan="2" align="center" class="th"><b>{quantity}</b></td></tr>
|
||||
{rows}
|
||||
<p>
|
||||
</table>
|
||||
<!-- END search -->
|
||||
<!-- BEGIN search_list_header -->
|
||||
<ul>
|
||||
|
||||
<!-- END search_list_header -->
|
||||
<!-- BEGIN search_list -->
|
||||
<li>{result_desc}</li>
|
||||
<tr class="{tr_color}">
|
||||
<td width="20%"> {date}</td>
|
||||
<td>{link}</td>
|
||||
</tr>
|
||||
<!-- END search_list -->
|
||||
<!-- BEGIN search_list_footer -->
|
||||
</ul>
|
||||
|
||||
<!-- END search_list_footer -->
|
||||
|
@ -1,26 +1,26 @@
|
||||
<!-- $Id$ -->
|
||||
<!-- BEGIN view_event -->
|
||||
<center>
|
||||
<h2>
|
||||
<font color="{bg_text}">
|
||||
{name}
|
||||
</font>
|
||||
</h2>
|
||||
<table border="0" width="75%">
|
||||
<table border="0" width="90%">
|
||||
{row}
|
||||
<tr>
|
||||
<td><table cellspacing="5"><tr>{button_left}</tr></table></td>
|
||||
<td align="center"><table cellspacing="5"><tr>{button_center}</tr></table></td>
|
||||
<td align="right"><table cellspacing="5"><tr>{button_right}</tr></table></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<!-- END view_event -->
|
||||
<!-- BEGIN list -->
|
||||
<tr>
|
||||
<td valign="top" width="30%"><b>{field}:</b></td>
|
||||
<td valign="top" width="70%">{data}</td>
|
||||
<tr class="{tr_color}">
|
||||
<td valign="top" width="30%"> <b>{field}:</b></td>
|
||||
<td colspan="2" valign="top" width="70%">{data}</td>
|
||||
</tr>
|
||||
<!-- END list -->
|
||||
<!-- BEGIN hr -->
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{hr_text}
|
||||
<td colspan="3" class="th" align="center">
|
||||
<b>{hr_text}</b>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END hr -->
|
||||
|
@ -3,25 +3,21 @@
|
||||
<center>
|
||||
<table border="0" cellspacing="3" cellpadding="4" cols=4>
|
||||
<tr>
|
||||
<td align="left">
|
||||
<td align="center">
|
||||
{left_link}
|
||||
</td>
|
||||
<td align="center">
|
||||
<font face="{font}" size="+1">{year_text}</font>
|
||||
</td>
|
||||
<td align="right">
|
||||
<td align="center">
|
||||
{right_link}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
{row}
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<p>
|
||||
<p>
|
||||
{printer_friendly}
|
||||
<hr>
|
||||
<!-- END year -->
|
||||
<!-- BEGIN month -->
|
||||
<td valign="top">
|
||||
|
Loading…
Reference in New Issue
Block a user