imported changes from .16 (app-header & styleguide-conformace)

This commit is contained in:
Ralf Becker 2003-04-21 11:00:53 +00:00
parent fbebdd7bcc
commit ab4fe582bf
16 changed files with 392 additions and 278 deletions

View File

@ -67,17 +67,18 @@
); );
} }
unset($GLOBALS['phpgw_info']['flags']['noheader']); unset($GLOBALS['phpgw_info']['flags']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw']->common->phpgw_header(); $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 = CreateObject('phpgwapi.Template',$this->template_dir);
$this->template->set_unknowns('keep'); $this->template->set_unknowns('keep');
$this->template->set_file( $this->template->set_file(
Array( Array(
'alarm' => 'alarm.tpl' 'alarm' => 'alarm.tpl'
) )
); );
$this->template->set_block('alarm','alarm_management','alarm_management'); $this->template->set_block('alarm','alarm_management','alarm_management');
$this->template->set_block('alarm','alarm_headers','alarm_headers'); $this->template->set_block('alarm','alarm_headers','alarm_headers');
@ -96,21 +97,26 @@
function manager() function manager()
{ {
$this->prep_page(); $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( $var = Array(
'action_url' => $GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.uialarm.form_handler')), 'action_url' => $GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.uialarm.form_handler')),
'time_lang' => lang('Time'), 'time_lang' => lang('Time'),
'text_lang' => lang('Text'), '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') 'disabled_pict' => $GLOBALS['phpgw']->common->image('calendar','disabled.gif')
); );
$this->output_template_array('row','alarm_headers',$var); $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']) if($this->event['alarm'])
{ {
@ -127,10 +133,7 @@
$this->output_template_array('row','list',$var); $this->output_template_array('row','list',$var);
} }
} }
$this->template->set_var('hr_text','<hr>'); $this->template->fp('phpgw_body','alarm_management');
$this->template->parse('row','hr',True);
echo $this->template->fp('out','alarm_management');
} }
function add_alarm() function add_alarm()

View File

@ -131,6 +131,30 @@
print_debug('UI',$this->_debug_sqsof()); 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 */ /* Public functions */
function mini_calendar($params) function mini_calendar($params)
@ -310,14 +334,21 @@
/*! /*!
@function cal_header @function cal_header
@abstract call common::phpgw_header and shows the application-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']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
unset($GLOBALS['phpgw_info']['flags']['noappheader']); unset($GLOBALS['phpgw_info']['flags']['noappheader']);
unset($GLOBALS['phpgw_info']['flags']['noappfooter']); 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) function add_col(&$tpl,$str)
{ {
@ -577,7 +608,7 @@
$tpl->parse('phpgw_body','head_table',True); $tpl->parse('phpgw_body','head_table',True);
} }
function printer_friendly($body) function printer_friendly($body,$func_header='')
{ {
if($this->bo->printer_friendly) if($this->bo->printer_friendly)
{ {
@ -597,7 +628,7 @@
} }
else else
{ {
$this->cal_header(); $this->cal_header($func_header && $GLOBALS['phpgw_info']['user']['template'] == 'idots' ? $func_header : '');
$new_body = $this->bo->debug_string.$body; $new_body = $this->bo->debug_string.$body;
} }
@ -606,7 +637,7 @@
function month() 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() function get_month()
@ -665,7 +696,7 @@
'print' => $print 'print' => $print
); );
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = $GLOBALS['phpgw']->template;
$p->set_unknowns('remove'); $p->set_unknowns('remove');
$p->set_file( $p->set_file(
Array( Array(
@ -678,7 +709,7 @@
function week() 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() function get_week()
@ -812,7 +843,7 @@
$now['raw'] += $GLOBALS['phpgw']->datetime->tz_offset; $now['raw'] += $GLOBALS['phpgw']->datetime->tz_offset;
$m = mktime(0,0,0,$this->bo->month,1,$this->bo->year); $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( $p->set_file(
Array( Array(
'day_t' => 'day.tpl' 'day_t' => 'day.tpl'
@ -845,7 +876,11 @@
function year() 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() function get_year()
@ -876,19 +911,27 @@
'printer_friendly'=> $printer 'printer_friendly'=> $printer
); );
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = $GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'year_t' => 'year.tpl' 'year_t' => 'year.tpl'
) )
); );
$p->set_block('year_t','year','year'); $p->set_block('year_t','year','year');
$p->set_block('year_t','month','month'); $p->set_block('year_t','month','month_handle');
$p->set_block('year_t','month_sep','month_sep'); $p->set_block('year_t','month_sep','month_sep_handle');
$p->set_var(array(
'month_handle' => '',
'month_sep_handle' => ''
));
$p->set_var($var); $p->set_var($var);
for($i=1;$i<=12;$i++) for($i=1;$i<=12;$i++)
{ {
if(($i % 3) == 1)
{
$p->parse('row','month_sep',True);
}
$p->set_var('mini_month',$this->mini_calendar( $p->set_var('mini_month',$this->mini_calendar(
Array( Array(
'day' => 1, 'day' => 1,
@ -902,17 +945,13 @@
); );
$p->parse('row','month',True); $p->parse('row','month',True);
$p->set_var('mini_month',''); $p->set_var('mini_month','');
if(($i % 3) == 0)
{
$p->parse('row','month_sep',True);
}
} }
return $p->fp('out','year_t'); return $p->fp('out','year_t');
} }
function view($vcal_id=0,$cal_date=0) 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); $cal_id = get_var('cal_id',Array('GET','POST','DEFAULT'),$vcal_id);
$date = get_var('date',Array('GET','DEFAULT'),$cal_date); $date = get_var('date',Array('GET','DEFAULT'),$cal_date);
@ -920,22 +959,19 @@
// First, make sure they have permission to this entry // First, make sure they have permission to this entry
if ($cal_id < 1) if ($cal_id < 1)
{ {
$GLOBALS['phpgw']->template->set_var('phpgw_body','<center>'.lang('Invalid entry id.').'</center>'."\n"); $this->error_exit('invalid_id');
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;
} }
$event = $this->bo->read_entry($cal_id); $event = $this->bo->read_entry($cal_id);
if(!isset($event['id'])) if(!isset($event['id']))
{ {
$GLOBALS['phpgw']->template->set_var('phpgw_body','<center>'.lang("Sorry, this event does not exist").'.'.'</center>'."\n"); $this->error_exit('not_exist');
exit; }
if(!$this->bo->check_perms(PHPGW_ACL_READ,$event))
{
$this->error_exit('no_read_perm');
} }
$this->bo->repeating_events = Array(); $this->bo->repeating_events = Array();
@ -958,15 +994,11 @@
$event['end']['year'] = date('Y',$temp_end); $event['end']['year'] = date('Y',$temp_end);
} }
$ret_value = $this->view_event($event,True); if(!$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>')
{ {
exit; $this->error_exit('no_read_perm');
} }
//$p = CreateObject('phpgwapi.Template',$this->template_dir);
$p = &$GLOBALS['phpgw']->template; $p = &$GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
@ -974,6 +1006,7 @@
) )
); );
$button_left = $button_center = $button_right = '';
if($this->bo->check_perms(PHPGW_ACL_EDIT,$event)) if($this->bo->check_perms(PHPGW_ACL_EDIT,$event))
{ {
if($event['recur_type'] != MCAL_RECUR_NONE) 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).'">' . '<input type="hidden" name="date" value="'.sprintf('%04d%02d%02d',$this->bo->year,$this->bo->month,$this->bo->day).'">'
); );
$p->set_var($var); $p->set_var($var);
$p->parse('phpgw_body','form_button',True); $button_left .= '<td>'.$p->fp('button','form_button').'</td>';
$var = Array( $var = Array(
'action_url_button' => $this->page('edit','&cal_id='.$cal_id), '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">' 'action_extra_field' => '<input type="hidden" name="edit_type" value="series">'
); );
$p->set_var($var); $p->set_var($var);
$p->parse('phpgw_body','form_button',True); $button_left .= '<td>'.$p->fp('button','form_button').'</td>';
} }
else else
{ {
@ -1006,7 +1039,7 @@
'action_extra_field' => '' 'action_extra_field' => ''
); );
$p->set_var($var); $p->set_var($var);
$p->parse('phpgw_body','form_button',True); $button_left .= '<td>'.$p->fp('button','form_button').'</td>';
} }
$var = Array( $var = Array(
@ -1016,7 +1049,7 @@
'action_extra_field' => '<input type="hidden" name="cal_id" value="'.$cal_id.'">' 'action_extra_field' => '<input type="hidden" name="cal_id" value="'.$cal_id.'">'
); );
$p->set_var($var); $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)) 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).'">' . '<input type="hidden" name="date" value="'.sprintf('%04d%02d%02d',$this->bo->year,$this->bo->month,$this->bo->day).'">'
); );
$p->set_var($var); $p->set_var($var);
$p->parse('phpgw_body','form_button',True); $button_right .= '<td>'.$p->fp('button','form_button').'</td>';
$var = Array( $var = Array(
'action_url_button' => $this->page('delete','&cal_id='.$cal_id), '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">' 'action_extra_field' => '<input type="hidden" name="delete_type" value="series">'
); );
$p->set_var($var); $p->set_var($var);
$p->parse('phpgw_body','form_button',True); $button_right .= '<td>'.$p->fp('button','form_button').'</td>';
if($event['recur_exception']) if($event['recur_exception'])
{ {
@ -1051,7 +1084,7 @@
'action_extra_field' => '' 'action_extra_field' => ''
); );
$p->set_var($var); $p->set_var($var);
$p->parse('phpgw_body','form_button',True); $button_center .= '<td>'.$p->fp('button','form_button').'</td>';
} }
} }
else else
@ -1063,9 +1096,8 @@
'action_extra_field' => '' 'action_extra_field' => ''
); );
$p->set_var($var); $p->set_var($var);
$p->parse('phpgw_body','form_button',True); $button_right .= '<td>'.$p->fp('button','form_button').'</td>';
} }
// }
} }
$var = Array( $var = Array(
@ -1075,7 +1107,7 @@
'action_extra_field' => '<input type="hidden" name="cal_id" value="'.$cal_id.'">' 'action_extra_field' => '<input type="hidden" name="cal_id" value="'.$cal_id.'">'
); );
$p->set_var($var); $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) if ($this->bo->return_to)
{ {
@ -1086,20 +1118,20 @@
'action_extra_field' => '' 'action_extra_field' => ''
); );
$p->set_var($var); $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'); $GLOBALS['phpgw']->hooks->process('calendar_view');
} }
function edit($params='') function edit($params='')
{ {
// No event loaded, so what to check?
// if(!$this->bo->check_perms(PHPGW_ACL_EDIT))
// {
// $this->no_edit();
// }
if($this->debug) if($this->debug)
{ {
echo '<!-- params[readsess] = '.$params['readsess'].' -->'."\n"; echo '<!-- params[readsess] = '.$params['readsess'].' -->'."\n";
@ -1135,9 +1167,7 @@
if(!$this->bo->check_perms(PHPGW_ACL_EDIT,$event)) if(!$this->bo->check_perms(PHPGW_ACL_EDIT,$event))
{ {
Header('Location: '.$this->page('view','&cal_id='.$cal_id)); $GLOBALS['phpgw']->redirect($this->page('view','&cal_id='.$cal_id));
$GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
exit;
} }
if(@isset($GLOBALS['HTTP_POST_VARS']['edit_type']) && $GLOBALS['HTTP_POST_VARS']['edit_type'] == 'single') 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']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 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(); $GLOBALS['phpgw']->common->phpgw_header();
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = $GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'form_button' => 'form_button_script.tpl' 'form_button' => 'form_button_script.tpl'
@ -1240,50 +1271,40 @@
$this->index(); $this->index();
} }
unset($GLOBALS['phpgw_info']['flags']['noheader']); unset($GLOBALS['phpgw_info']['flags']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 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(); $GLOBALS['phpgw']->common->phpgw_header();
echo '<center>';
$cal_id = (isset($params['cal_id'])?intval($params['cal_id']):''); $cal_id = get_var('cal_id',array('GET'),$params['cal_id']);
$cal_id = ($cal_id==''?intval($GLOBALS['HTTP_GET_VARS']['cal_id']):$cal_id);
if ($cal_id < 1) if ($cal_id < 1)
{ {
echo lang('Invalid entry id.').'</center>'."\n"; $this->error_exit('invalid_id');
exit;
} }
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"; $this->error_exit('no_read_perm');
exit;
} }
$event = $this->bo->read_entry($cal_id); $event = $this->bo->read_entry($cal_id);
if(!isset($event['id'])) if(!isset($event['id']))
{ {
echo lang('Sorry, this event does not exist').'.'.'</center>'."\n"; $this->error_exit('not_exist');
exit;
} }
elseif(!isset($event['recur_exception'])) elseif(!isset($event['recur_exception']))
{ {
echo lang('Sorry, this event does not have exceptions defined').'.'.'</center>'."\n"; $this->error_exit(lang('Sorry, this event does not have exceptions defined'));
exit;
} }
$ret_value = $this->view_event($event,True); if(!$this->view_event($event,True))
echo $ret_value;
if($ret_value == '<center>'.lang('You do not have permission to read this record!').'</center>')
{ {
echo '</center>'."\n"; $this->error_exit('no_read_perm');
exit;
} }
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = &$GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'form_button' => 'form_button_script.tpl' '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"; $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( $var = Array(
'action_url_button' => $this->page('reinstate','&cal_id='.$cal_id), 'action_url_button' => $this->page('reinstate','&cal_id='.$cal_id),
'action_text_button' => lang('Reinstate'), 'action_text_button' => lang('Reinstate'),
'action_confirm_button' => '', 'action_confirm_button' => '',
'action_extra_field' => "\n".' <select name="reinstate_index[]" multiple size="5">'."\n".$str.' </select>' 'action_extra_field' => ''
); );
$p->set_var($var); $p->set_var($var);
echo $p->fp('out','form_button'); $button_left = '<td>'.$p->fp('out','form_button').'</td>';
$var = Array( $var = Array(
'action_url_button' => $this->bo->return_to ? $GLOBALS['phpgw']->link('/index.php','menuaction='.$this->bo->return_to) : $this->page(''), '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' => '' 'action_extra_field' => ''
); );
$p->set_var($var); $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='') 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 = $GLOBALS['phpgw']->datetime->makegmttime(0, 0, 0, $this->bo->month, $this->bo->day, $this->bo->year);
$now['raw'] += $GLOBALS['phpgw']->datetime->tz_offset; $now['raw'] += $GLOBALS['phpgw']->datetime->tz_offset;
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = $GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'day_t' => 'day.tpl' 'day_t' => 'day.tpl'
@ -1520,7 +1548,7 @@
$p->set_var($var); $p->set_var($var);
$p->parse('day_events','day_event'); $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() function edit_status()
@ -1529,6 +1557,7 @@
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappheader'] = True; $GLOBALS['phpgw_info']['flags']['noappheader'] = True;
$GLOBALS['phpgw_info']['flags']['noappfooter'] = 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(); $GLOBALS['phpgw']->common->phpgw_header();
$event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']); $event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']);
@ -1537,8 +1566,7 @@
if(!$event['participants'][$this->bo->owner]) 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>'; $this->error_exit(lang('The user %1 is not participating in this event!',$GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner)));
return;
} }
if(!$this->bo->check_perms(PHPGW_ACL_EDIT)) if(!$this->bo->check_perms(PHPGW_ACL_EDIT))
@ -1555,10 +1583,11 @@
'endtime' => 0, 'endtime' => 0,
'participants' => $event['participants'] 'participants' => $event['participants']
) )
); ).'<br>';
$event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']); $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']); echo $this->get_response($event['id']);
} }
@ -1651,10 +1680,7 @@
// //
if (!$no_header) if (!$no_header)
{ {
//unset($GLOBALS['phpgw_info']['flags']['noheader']); $this->cal_header(lang('Group Planner'));
//unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
//$GLOBALS['phpgw']->common->phpgw_header();
$this->cal_header();
} }
// intervals_per_day can be configured in preferences now :-) // intervals_per_day can be configured in preferences now :-)
@ -2177,12 +2203,9 @@
$sb = CreateObject('phpgwapi.sbox'); $sb = CreateObject('phpgwapi.sbox');
//unset($GLOBALS['phpgw_info']['flags']['noheader']); $this->cal_header(lang('Matrixview'));
//unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
//$GLOBALS['phpgw']->common->phpgw_header();
$this->cal_header();
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = &$GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'mq' => 'matrix_query.tpl', 'mq' => 'matrix_query.tpl',
@ -2192,12 +2215,10 @@
$p->set_block('mq','matrix_query','matrix_query'); $p->set_block('mq','matrix_query','matrix_query');
$p->set_block('mq','list','list'); $p->set_block('mq','list','list');
$vars = Array( $p->set_var(array(
'matrix_action' => lang('Daily Matrix View'), 'title' => lang('Daily Matrix View'),
'action_url' => $this->page('viewmatrix') 'action_url' => $this->page('viewmatrix')
); ));
$p->set_var($vars);
// Date // Date
$var[] = Array( $var[] = Array(
@ -2279,10 +2300,10 @@
} }
$vars = Array( $vars = Array(
'submit_button' => lang('Submit'), 'submit_button' => lang('View'),
'action_url_button' => '', '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_text_button' => lang('Cancel'),
'action_confirm_button' => 'onClick="history.back(-1)"', 'action_confirm_button' => '',
'action_extra_field' => '' 'action_extra_field' => ''
); );
@ -2330,16 +2351,14 @@
reset($participants); reset($participants);
unset($GLOBALS['phpgw_info']['flags']['noheader']); $this->cal_header(lang('Matrixview'));
unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw']->common->phpgw_header();
$matrixtype = get_var('matrixtype',Array('POST')); $matrixtype = get_var('matrixtype',Array('POST'));
switch($matrixtype) switch($matrixtype)
{ {
case 'free/busy': case 'free/busy':
$freetime = $GLOBALS['phpgw']->datetime->gmtdate(mktime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year)); $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( Array(
'date' => $freetime, 'date' => $freetime,
'starttime' => $this->bo->splittime('000000',False), 'starttime' => $this->bo->splittime('000000',False),
@ -2349,7 +2368,7 @@
); );
break; break;
case 'weekly': case 'weekly':
echo $this->display_weekly( $html = '<br>'.$this->display_weekly(
Array( Array(
'date' => sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day), 'date' => sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day),
'showyear' => true, 'showyear' => true,
@ -2358,20 +2377,21 @@
); );
break; break;
} }
echo "\n".'<center>'."\n"; $html .= "\n".'<br><center>'."\n";
echo ' <form action="'.$this->page('viewmatrix').'" method="post" name="matrixform" target="viewmatrix">'."\n"; $html .= ' <form action="'.$this->page('viewmatrix').'" method="post" name="matrixform" target="viewmatrix">'."\n";
echo ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $html .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
echo ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $html .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
echo ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $html .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
echo ' <input type="hidden" name="matrixtype" value="'.$matrixtype.'">'."\n";
reset($parts); foreach($parts as $key => $value)
while(list($key,$value) = each($parts))
{ {
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"; $html .= ' <input type="submit" value="'.lang('refresh').'">'."\n";
echo ' </form>'."\n"; $html .= ' </form>'."\n";
echo '</center>'."\n"; $html .= '</center>'."\n";
$GLOBALS['phpgw']->template->set_var('phpgw_body',$html);
} }
function search() function search()
@ -2391,6 +2411,7 @@
unset($GLOBALS['phpgw_info']['flags']['noheader']); unset($GLOBALS['phpgw_info']['flags']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 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(); $GLOBALS['phpgw']->common->phpgw_header();
$error = ''; $error = '';
@ -2405,11 +2426,11 @@
$event_ids = $this->bo->search_keywords($keywords); $event_ids = $this->bo->search_keywords($keywords);
$ids = Array(); $ids = Array();
while(list($key,$id) = each($event_ids)) foreach($event_ids as $key => $id)
{ {
$event = $this->bo->read_entry($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; continue;
} }
@ -2417,7 +2438,11 @@
$datetime = $this->bo->maketime($event['start']) - $GLOBALS['phpgw']->datetime->tz_offset; $datetime = $this->bo->maketime($event['start']) - $GLOBALS['phpgw']->datetime->tz_offset;
$ids[strval($event['id'])]++; $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); $matches = count($event_ids);
@ -2437,11 +2462,10 @@
} }
else else
{ {
echo '<b>'.lang('Error').':</b>'.lang('no matches found.'); $this->error_exit(lang('no matches found.'));
return;
} }
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = $GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'search_form' => 'search.tpl' 'search_form' => 'search.tpl'
@ -2453,7 +2477,6 @@
$p->set_block('search_form','search_list_footer','search_list_footer'); $p->set_block('search_form','search_list_footer','search_list_footer');
$var = Array( $var = Array(
'color' => $this->theme['bg_text'],
'search_text' => lang('Search Results'), 'search_text' => lang('Search Results'),
'quantity' => $quantity 'quantity' => $quantity
); );
@ -2465,9 +2488,9 @@
} }
// now sort by number of hits // now sort by number of hits
arsort($ids); 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); $p->parse('rows','search_list',True);
} }
@ -2501,6 +2524,10 @@
{ {
$var['hidden_vars'] = ''; $var['hidden_vars'] = '';
} }
if (!isset($var['tr_color']))
{
$var['tr_color'] = $GLOBALS['phpgw']->nextmatchs->alternate_row_color();
}
$p->set_var($var); $p->set_var($var);
$p->parse($row,$list,True); $p->parse($row,$list,True);
} }
@ -2542,7 +2569,7 @@
$cols++; $cols++;
} }
$tpl = CreateObject('phpgwapi.Template',$this->template_dir); $tpl = $GLOBALS['phpgw']->template;
$tpl->set_unknowns('remove'); $tpl->set_unknowns('remove');
include($this->template_dir.'/header.inc.php'); include($this->template_dir.'/header.inc.php');
@ -2731,6 +2758,7 @@
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappheader'] = True; $GLOBALS['phpgw_info']['flags']['noappheader'] = True;
$GLOBALS['phpgw_info']['flags']['noappfooter'] = 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(); $GLOBALS['phpgw']->common->phpgw_header();
} }
echo '<center>You do not have permission to edit this appointment!</center>'; echo '<center>You do not have permission to edit this appointment!</center>';
@ -2933,9 +2961,10 @@
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappheader'] = True; $GLOBALS['phpgw_info']['flags']['noappheader'] = True;
$GLOBALS['phpgw_info']['flags']['noappfooter'] = 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(); $GLOBALS['phpgw']->common->phpgw_header();
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = $GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'overlap' => 'overlap.tpl', 'overlap' => 'overlap.tpl',
@ -3359,7 +3388,7 @@
{ {
if((!$event['participants'][$this->bo->owner] && !$this->bo->check_perms(PHPGW_ACL_READ,$event))) 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( $pri = Array(
@ -3368,9 +3397,8 @@
3 => lang('High') 3 => lang('High')
); );
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = &$GLOBALS['phpgw']->template;
$p->set_unknowns('keep');
$p->set_file( $p->set_file(
Array( Array(
'view' => 'view.tpl' 'view' => 'view.tpl'
@ -3380,12 +3408,11 @@
$p->set_block('view','list','list'); $p->set_block('view','list','list');
$p->set_block('view','hr','hr'); $p->set_block('view','hr','hr');
$var = Array( $var[] = Array(
'bg_text' => $this->theme['bg_text'], 'tr_color' => 'th',
'name' => $event['title'] '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 // Some browser add a \n when its entered in the database. Not a big deal
// this will be printed even though its not needed. // this will be printed even though its not needed.
@ -3455,8 +3482,8 @@
); );
$var[] = Array( $var[] = Array(
'field' => lang('Private'), 'field' => lang('Access'),
'data' => $event['public']==True?'False':'True' 'data' => $event['public']==True?lang('Public'):lang('Privat')
); );
if(@isset($event['groups'][0])) if(@isset($event['groups'][0]))
@ -3581,13 +3608,10 @@
if($alarms && @isset($event['alarm'])) if($alarms && @isset($event['alarm']))
{ {
$p->set_var('hr_text','<hr>'); $p->set_var('hr_text',lang('Alarms'));
$p->parse('row','hr',True);
$p->set_var('hr_text','<center><b>'.lang('Alarms').'</b></center><br>');
$p->parse('row','hr',True); $p->parse('row','hr',True);
@reset($event['alarm']); foreach($event['alarm'] as $key => $alarm)
while(list($key,$alarm) = each($event['alarm']))
{ {
$icon = '<img src="'.$GLOBALS['phpgw']->common->image('calendar',($alarm['enabled']?'enabled':'disabled')).'" width="13" height="13">'; $icon = '<img src="'.$GLOBALS['phpgw']->common->image('calendar',($alarm['enabled']?'enabled':'disabled')).'" width="13" height="13">';
$var = Array( $var = Array(
@ -3597,11 +3621,7 @@
$this->output_template_array($p,'row','list',$var); $this->output_template_array($p,'row','list',$var);
} }
} }
return True;
$p->set_var('hr_text','<hr>');
$p->parse('row','hr',True);
return $p->fp('out','view_event');
} }
function nm_on_off() function nm_on_off()
@ -3633,7 +3653,7 @@
) )
); );
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = $GLOBALS['phpgw']->template;
$p->set_unknowns('keep'); $p->set_unknowns('keep');
$templates = Array( $templates = Array(
@ -3648,7 +3668,7 @@
$p->set_block('day_cal','day_time','day_time'); $p->set_block('day_cal','day_time','day_time');
if (! $this->bo->prefs['calendar']['workdaystarts'] && if (! $this->bo->prefs['calendar']['workdaystarts'] &&
! $this->bo->prefs['calendar']['workdayends']) ! $this->bo->prefs['calendar']['workdayends'])
{ {
$GLOBALS['phpgw']->preferences->add('calendar','workdaystarts',8); $GLOBALS['phpgw']->preferences->add('calendar','workdaystarts',8);
@ -3869,6 +3889,7 @@
'close_link' => '' 'close_link' => ''
); );
} }
$var['tr_color'] = ''; // dummy to stop output_template_array to set it
$this->output_template_array($p,'item','day_time',$var); $this->output_template_array($p,'item','day_time',$var);
$p->parse('row','day_row',True); $p->parse('row','day_row',True);
$p->set_var('event',''); $p->set_var('event','');
@ -4024,7 +4045,7 @@
function get_response($cal_id) function get_response($cal_id)
{ {
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = &$GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'form_button' => 'form_button_script.tpl' 'form_button' => 'form_button_script.tpl'
@ -4086,9 +4107,10 @@
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappheader'] = True; $GLOBALS['phpgw_info']['flags']['noappheader'] = True;
$GLOBALS['phpgw_info']['flags']['noappfooter'] = 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(); $GLOBALS['phpgw']->common->phpgw_header();
$p = CreateObject('phpgwapi.Template',$this->template_dir); $p = &$GLOBALS['phpgw']->template;
$p->set_file( $p->set_file(
Array( Array(
'edit' => 'edit.tpl', 'edit' => 'edit.tpl',
@ -4098,11 +4120,10 @@
$p->set_block('edit','edit_entry','edit_entry'); $p->set_block('edit','edit_entry','edit_entry');
$p->set_block('edit','list','list'); $p->set_block('edit','list','list');
$p->set_block('edit','hr','hr'); $p->set_block('edit','hr','hr');
$vars = Array( $vars = Array(
'font' => $this->theme['font'], 'font' => $this->theme['font'],
'bg_color' => $this->theme['bg_text'], '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')), 'action_url' => $GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.bocalendar.update')),
'common_hidden' => '<input type="hidden" name="cal[id]" value="'.$event['id'].'">'."\n" 'common_hidden' => '<input type="hidden" name="cal[id]" value="'.$event['id'].'">'."\n"
. '<input type="hidden" name="cal[owner]" value="'.$event['owner'].'">'."\n" . '<input type="hidden" name="cal[owner]" value="'.$event['owner'].'">'."\n"
@ -4117,8 +4138,9 @@
// Brief Description // Brief Description
$var[] = Array( $var[] = Array(
'tr_color' => 'th',
'field' => lang('Title'), '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 // Full Description
@ -4153,7 +4175,7 @@
// Location // Location
$var[] = Array( $var[] = Array(
'field' => lang('Location'), '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 // Date
@ -4257,9 +4279,8 @@
unset($var); unset($var);
// Repeat Type // Repeat Type
$p->set_var('hr_text','<hr>'); $p->set_var('tr_color','th');
$p->parse('row','hr',True); $p->set_var('hr_text','<center><b>'.lang('Repeating Event Information').'</b></center>');
$p->set_var('hr_text','<center><b>'.lang('Repeating Event Information').'</b></center><br>');
$p->parse('row','hr',True); $p->parse('row','hr',True);
$rpt_type = Array( $rpt_type = Array(
MCAL_RECUR_NONE, MCAL_RECUR_NONE,
@ -4329,8 +4350,9 @@
$this->output_template_array($p,'row','list',$var[$i]); $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) if ($event['id'] > 0)
{ {
$var = Array( $var = Array(
@ -4340,8 +4362,10 @@
'action_extra_field' => '' 'action_extra_field' => ''
); );
$p->set_var($var); $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) if ($this->bo->return_to)
{ {
$var = Array( $var = Array(
@ -4351,10 +4375,9 @@
'action_extra_field' => '' 'action_extra_field' => ''
); );
$p->set_var($var); $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'); $p->pparse('out','edit_entry');
} }

View File

@ -41,8 +41,9 @@
$this->bo->check_admin(); $this->bo->check_admin();
$this->base_url = $this->bo->base_url; $this->base_url = $this->bo->base_url;
$this->template_dir = $GLOBALS['phpgw']->common->get_tpl_dir('calendar'); $this->template_dir = $GLOBALS['phpgw']->common->get_tpl_dir('calendar');
$this->sb = CreateObject('phpgwapi.sbox'); $this->sb = CreateObject('phpgwapi.sbox');
$GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['calendar']['title'].' - '.lang('Holiday Management');
} }
function admin() function admin()
@ -52,7 +53,7 @@
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True; $GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
$GLOBALS['phpgw']->common->phpgw_header(); $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_file(Array('locales'=>'locales.tpl'));
$p->set_block('locales','list','list'); $p->set_block('locales','list','list');
$p->set_block('locales','row','row'); $p->set_block('locales','row','row');
@ -148,7 +149,7 @@
$holidays = $this->bo->get_holiday_list(); $holidays = $this->bo->get_holiday_list();
$var = Array( $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), '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), '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>', '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']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True; $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(); $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_file(Array('holiday'=>'holiday.tpl','form_button'=>'form_button_script.tpl'));
$t->set_block('holiday','form','form'); $t->set_block('holiday','form','form');
$t->set_block('holiday','list','list'); $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'].'">'); $this->display_item($t,lang('title'),'<input name="holiday[name]" size="60" maxlength="50" value="'.$holiday['name'].'">');
// Date // 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'])).
'&nbsp;'.lang('Set a Year only for one-time / non-regular holidays.'));
// Occurence // Occurence
$occur = Array( $occur = Array(
@ -300,8 +303,10 @@
$out .= '<option value="'.$i.'"'.($holiday['dow']==$i?' selected':'').'>'.$dow[$i].'</option>'."\n"; $out .= '<option value="'.$i.'"'.($holiday['dow']==$i?' selected':'').'>'.$dow[$i].'</option>'."\n";
} }
$dow_html = '<select name="holiday[dow]">'."\n".$out.'</select>'."\n"; $dow_html = '<select name="holiday[dow]">'."\n".$out.'</select>'."\n";
$this->display_item($t,lang('Occurence'),$occurence_html.'&nbsp;'.$dow_html); $this->display_item($t,lang('Occurence'),$occurence_html.'&nbsp;'.$dow_html.
$this->display_item($t,lang('Observance Rule'),'<input type="checkbox" name="holiday[observance_rule]" value="True"'.($holiday['observance_rule']?' checked':'').'>'); '&nbsp;'.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':'').'>'.
'&nbsp;'.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_add',lang('Save'));
$t->set_var('lang_reset',lang('Reset')); $t->set_var('lang_reset',lang('Reset'));
@ -310,7 +315,7 @@
{ {
$link_params = Array( $link_params = Array(
'menuaction' => 'calendar.uiholiday.edit_locale', 'menuaction' => 'calendar.uiholiday.edit_locale',
'year' => $this->bo->year, 'year' => $this->bo->year,
'locale' => $this->bo->locales[0] '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_url_button' => $GLOBALS['phpgw']->link($this->base_url,$link_params),
'action_text_button' => lang('Cancel'), 'action_text_button' => lang('Cancel'),
'action_confirm_button' => '', 'action_confirm_button' => '',
'action_extra_field' => '' 'action_extra_field' => ''
); ));
$t->set_var($var);
$t->parse('cancel_button','form_button'); $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','&nbsp;');
}
$t->pparse('out','form'); $t->pparse('out','form');
} }
@ -471,6 +496,7 @@
function display_item(&$p,$field,$data) function display_item(&$p,$field,$data)
{ {
$var = Array( $var = Array(
'tr_color' => $GLOBALS['phpgw']->nextmatchs->alternate_row_color(),
'field' => $field, 'field' => $field,
'data' => $data 'data' => $data
); );

View File

@ -30,9 +30,9 @@
{ {
$this->bo = CreateObject('calendar.boicalendar'); $this->bo = CreateObject('calendar.boicalendar');
$this->template = $GLOBALS['phpgw']->template; $this->template = $GLOBALS['phpgw']->template;
$GLOBALS['phpgw_info']['flags']['app_header'] = lang('Calendar - [iv]Cal Importer');
} }
function print_test($val,$title,$x_pre='') function print_test($val,$title,$x_pre='')
{ {
// echo 'VAL = '._debug_array($val,False)."<br>\n"; // echo 'VAL = '._debug_array($val,False)."<br>\n";
@ -191,7 +191,7 @@
); );
$var = Array( $var = Array(
'vcal_header' => '<p>&nbsp;<b>' . lang('Calendar - [iv]Cal Importer') . '</b><hr><p>', 'vcal_header' => '<p>',
'ical_lang' => lang('(i/v)Cal'), 'ical_lang' => lang('(i/v)Cal'),
'action_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.boicalendar.import'), 'action_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.boicalendar.import'),
'lang_access' => lang('Access'), 'lang_access' => lang('Access'),

View File

@ -1,4 +1,7 @@
%1 %2 in %3 calendar de %1 %2 im %3 %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) (for weekly) calendar de (für wöchentlich)
(i/v)cal calendar de [iv]Cal (i/v)cal calendar de [iv]Cal
1 match found calendar de 1 Treffer gefunden 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 holiday management admin de Feiertage verwalten
calendar preferences calendar de Kalender Einstellungen calendar preferences calendar de Kalender Einstellungen
calendar settings admin 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 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 choose the category calendar de Kategorie auswählen
countries calendar de Länder 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 calendar de Täglich
daily matrix view calendar de Matrix-Ansicht des Tages daily matrix view calendar de Matrix-Ansicht des Tages
days repeated calendar de wiederholte Tage days repeated calendar de wiederholte Tage
dayview calendar de Tagesansicht
default calendar filter calendar de Standard-Filter des Kalenders default calendar filter calendar de Standard-Filter des Kalenders
default calendar view calendar de Standard-Ansicht 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. 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 ends calendar de endet
enter output filename: ( .vcs appended ) calendar de Namen der Ausgabedatei (.vcs angehangen) enter output filename: ( .vcs appended ) calendar de Namen der Ausgabedatei (.vcs angehangen)
event details follow calendar de Details zum Termin folgen event details follow calendar de Details zum Termin folgen
execptions calendar de Ausnahmen
export calendar de Exportieren export calendar de Exportieren
export a list of entries in ical format. calendar de Eine Liste von Einträgen im iCal Format 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 fr calendar de Fr
free/busy calendar de frei/belegt free/busy calendar de frei/belegt
frequency calendar de Häufigkeit frequency calendar de Häufigkeit
@ -73,8 +84,10 @@ high priority calendar de Hohe Priorit
holiday calendar de Feiertag holiday calendar de Feiertag
holidays calendar de Feiertage holidays calendar de Feiertage
i participate calendar de Ich nehme teil 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 ignore conflict calendar de Konflikt ignorieren
import calendar de Importieren import calendar de Importieren
import csv-file into calendar calendar de CSV-Datei in den Kalender importieren
interval calendar de Interval interval calendar de Interval
invalid entry id. calendar de ungültige Id des Eintrags. invalid entry id. calendar de ungültige Id des Eintrags.
last calendar de letzte last calendar de letzte
@ -82,6 +95,7 @@ load [iv]cal calendar de [iv]Cal Laden
location calendar de Ort location calendar de Ort
location to autoload from admin de Von wo sollen sie geladen werden location to autoload from admin de Von wo sollen sie geladen werden
low calendar de niedrig low calendar de niedrig
matrixview calendar de Matrixansicht
minutes calendar de Minuten minutes calendar de Minuten
mo calendar de Mo mo calendar de Mo
modified calendar de Geändert modified calendar de Geändert
@ -90,12 +104,14 @@ month calendar de Monat
monthly calendar de Monatlich monthly calendar de Monatlich
monthly (by date) calendar de Monatlich (nach Datum) monthly (by date) calendar de Monatlich (nach Datum)
monthly (by day) calendar de Monatlich (nach Wochentag) monthly (by day) calendar de Monatlich (nach Wochentag)
monthview calendar de Monatsansicht
new entry calendar de Neuer Eintrag new entry calendar de Neuer Eintrag
no matches found. calendar de Keine Treffer gefunden. no matches found. calendar de Keine Treffer gefunden.
no response calendar de Keine Antwort no response calendar de Keine Antwort
normal calendar de normal normal calendar de normal
number of intervals per day in planner view calendar de Anzahl Intervale pro Tag im Planer 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 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 observance rule calendar de Observance Rule
occurence calendar de Wiederholung 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 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 participant calendar de Teilnehmer
participants calendar de Teilnehmer participants calendar de Teilnehmer
participates calendar de nimmt teil 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 calendar de Planer
planner by category calendar de Planer nach Kategorien planner by category calendar de Planer nach Kategorien
planner by user calendar de Planer nach Benutzern 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 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 print calendars in black & white calendar de Kalender in Schwarz und Weiß drucken
printer friendly calendar de Drucker-freundlich printer friendly calendar de Drucker-freundlich
privat calendar de Privat
private and global public calendar de Privat und Global Öffentlich private and global public calendar de Privat und Global Öffentlich
private and group public calendar de Privat und Gruppen Öffentlich private and group public calendar de Privat und Gruppen Öffentlich
private only calendar de nur private private only calendar de nur private
@ -137,6 +155,8 @@ scheduling conflict calendar de Termin
search results calendar de Suchergebnisse search results calendar de Suchergebnisse
send updates via email common de Updates via EMail senden send updates via email common de Updates via EMail senden
send/receive updates via email calendar de Senden/Empfangen von Aktualisierungen via EMail 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 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 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 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 sort by calendar de Sortieren nach
start date/time calendar de Startdatum/-zeit start date/time calendar de Startdatum/-zeit
start- and enddates calendar de Start- und Enddatum/-zeit start- and enddates calendar de Start- und Enddatum/-zeit
startrecord calendar de Startdatensatz
su calendar de So su calendar de So
submit to repository calendar de Übertragen zu phpGroupWare.org submit to repository calendar de Übertragen zu phpGroupWare.org
sun calendar de So sun calendar de So
tentative calendar de Vorläufige Zusage 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 text calendar de Text
th calendar de Do 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 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. 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 month calendar de Dieser Monat
this week calendar de Diese Woche this week calendar de Diese Woche
@ -161,6 +184,7 @@ this year calendar de Dieses Jahr
thu calendar de Do thu calendar de Do
title calendar de TITEL title calendar de TITEL
today calendar de Heute today calendar de Heute
translation calendar de Übersetzung
tu calendar de Di tu calendar de Di
tue calendar de Di tue calendar de Di
update a single entry by passing the fields. calendar de Einen einzelnen Termin über seine Felder updaten. 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 week calendar de Woche
weekday starts on calendar de Arbeitswoche beginnt am weekday starts on calendar de Arbeitswoche beginnt am
weekly calendar de Wöchentlich weekly calendar de Wöchentlich
weekview calendar de Wochenansicht
when creating new events default set to private calendar de neue Termine sind privat 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 ends on calendar de Arbeitstag endet um
work day starts on calendar de Arbeitstag beginnt 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 year calendar de Jahr
yearly calendar de Jährlich 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 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 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! you have 1 high priority event on your calendar today. common de Sie haben heute einen Eintrag mit hoher Priorität auf Ihrer Liste!

View File

@ -1,5 +1,7 @@
%1 %2 in %3 calendar en %1 %2 in %3 %1 %2 in %3 calendar en %1 %2 in %3
%1 matches found calendar en %1 matches found %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) (for weekly) calendar en (for Weekly)
(i/v)cal calendar en (i/v)Cal (i/v)cal calendar en (i/v)Cal
1 match found calendar en 1 match found 1 match found calendar en 1 match found
@ -11,6 +13,7 @@ add alarm calendar en Add Alarm
added calendar en Added added calendar en Added
alarm calendar en alarm alarm calendar en alarm
alarm management calendar en Alarm Management alarm management calendar en Alarm Management
alarm-management calendar en Alarm-Management
alarms calendar en Alarms alarms calendar en Alarms
all day calendar en All Day 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 ? 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 holiday management admin en Calendar Holiday Management
calendar preferences calendar en Calendar Preferences calendar preferences calendar en Calendar Preferences
calendar settings admin en Calendar Settings 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 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 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 calendar en Daily
daily matrix view calendar en Daily Matrix View daily matrix view calendar en Daily Matrix View
days repeated calendar en days repeated days repeated calendar en days repeated
dayview calendar en Dayview
default calendar filter calendar en Default calendar filter default calendar filter calendar en Default calendar filter
default calendar view calendar en Default calendar view 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. 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 ends calendar en ends
enter output filename: ( .vcs appended ) calendar en Enter Output Filename: ( .vcs appended ) enter output filename: ( .vcs appended ) calendar en Enter Output Filename: ( .vcs appended )
event details follow calendar en Event Details Follow event details follow calendar en Event Details Follow
execptions calendar en Execptions
export calendar en Export export calendar en Export
export a list of entries in ical format. calendar en Export a list of entries in iCal format. 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 fr calendar en F
free/busy calendar en Free/Busy free/busy calendar en Free/Busy
frequency calendar en Frequency 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 has been rescheduled to calendar en has been rescheduled to
high priority calendar en high priority high priority calendar en high priority
holiday calendar en Holiday holiday calendar en Holiday
holiday management calendar en Holiday Management
holiday-management calendar en Holiday-Management
holidays calendar en Holidays holidays calendar en Holidays
i participate calendar en I Participate 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 ignore conflict calendar en Ignore Conflict
import calendar en Import import calendar en Import
import csv-file into calendar calendar en Import CSV-File into Calendar
interval calendar en Interval interval calendar en Interval
invalid entry id. calendar en Invalid entry id. invalid entry id. calendar en Invalid entry id.
last calendar en last last calendar en last
load [iv]cal calendar en Load [iv]Cal load [iv]cal calendar en Load [iv]Cal
location calendar en Location location calendar en Location
location to autoload from admin en Location to autoload from location to autoload from admin en Location to autoload from
matrixview calendar en Matrixview
minutes calendar en minutes minutes calendar en minutes
mo calendar en M mo calendar en M
modified calendar en Modified modified calendar en Modified
@ -88,11 +105,13 @@ month calendar en Month
monthly calendar en Monthly monthly calendar en Monthly
monthly (by date) calendar en Monthly (by date) monthly (by date) calendar en Monthly (by date)
monthly (by day) calendar en Monthly (by day) monthly (by day) calendar en Monthly (by day)
monthview calendar en Monthview
new entry calendar en New Entry new entry calendar en New Entry
no matches found. calendar en No matches found. no matches found. calendar en No matches found.
no response calendar en No Response 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 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 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 observance rule calendar en Observance Rule
occurence calendar en Occurence occurence calendar en Occurence
on %1 %2 %3 your meeting request for %4 calendar en On %1 %2 %3 your meeting request for %4 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 participant calendar en Participant
participants calendar en Participants participants calendar en Participants
participates calendar en Participates participates calendar en Participates
people holiday calendar en people holiday
permission denied calendar en Permission denied
planner calendar en Planner planner calendar en Planner
planner by category calendar en Planner by category planner by category calendar en Planner by category
planner by user calendar en Planner by user 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 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 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 print calendars in black & white calendar en Print calendars in black & white
printer friendly calendar en Printer Friendly printer friendly calendar en Printer Friendly
privat calendar en Privat
private and global public calendar en Private and Global Public private and global public calendar en Private and Global Public
private and group public calendar en Private and Group Public private and group public calendar en Private and Group Public
private only calendar en Private Only private only calendar en Private Only
@ -132,6 +155,8 @@ scheduling conflict calendar en Scheduling Conflict
search results calendar en Search Results search results calendar en Search Results
send updates via email common en Send updates via EMail send updates via email common en Send updates via EMail
send/receive updates via email calendar en Send/Receive 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 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 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 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 sort by calendar en Sort by
start date/time calendar en Start Date/Time start date/time calendar en Start Date/Time
start- and enddates calendar en Start- and Enddates start- and enddates calendar en Start- and Enddates
startrecord calendar en Startrecord
su calendar en Su su calendar en Su
submit to repository calendar en Submit to Repository submit to repository calendar en Submit to Repository
sun calendar en Sun sun calendar en Sun
tentative calendar en Tentative 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 text calendar en Text
th calendar en T 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 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. 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 month calendar en This month
this week calendar en This week this week calendar en This week
@ -156,6 +184,7 @@ this year calendar en This year
thu calendar en Thu thu calendar en Thu
title calendar en TITLE title calendar en TITLE
today calendar en Today today calendar en Today
translation calendar en Translation
tu calendar en T tu calendar en T
tue calendar en Tue tue calendar en Tue
update a single entry by passing the fields. calendar en Update a single entry by passing the fields. 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 week calendar en Week
weekday starts on calendar en Weekday starts on weekday starts on calendar en Weekday starts on
weekly calendar en Weekly 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 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 ends on calendar en Work day ends on
work day starts on calendar en Work day starts on work day starts on calendar en Work day starts on
workdayends calendar en workdayends
yearly calendar en Yearly 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 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 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. you have %1 high priority events on your calendar today. common en You have %1 high priority events on your calendar today.

View File

@ -2,25 +2,23 @@
<!-- BEGIN alarm_management --> <!-- BEGIN alarm_management -->
<form action="{action_url}" method="post" name="alarmform"> <form action="{action_url}" method="post" name="alarmform">
<center> <center>
<font color="{bg_text}"> <table border="0" width="90%">
<table border="0" width="75%">
{row} {row}
</table> </table>
</font>
</center> </center>
</form> </form>
<!-- END alarm_management --> <!-- END alarm_management -->
<!-- BEGIN alarm_headers --> <!-- BEGIN alarm_headers -->
<tr> <tr class="th">
<th valign="top" align="left" width="4%">&nbsp;</b></th> <th valign="top" align="left" width="4%">&nbsp;</b></th>
<th valign="top" align="left" width="30%"><b>{time_lang}</b></th> <th valign="top" align="left" width="30%">&nbsp;<b>{time_lang}</b></th>
<th valign="top" align="left" width="54%">{text_lang}</th> <th valign="top" align="left" width="54%">&nbsp;{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="center" 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="center" width="6%"><img src="{disabled_pict}" width="13" height="13" alt="disabled"></th>
</tr> </tr>
<!-- END alarm_headers --> <!-- END alarm_headers -->
<!-- BEGIN list --> <!-- BEGIN list -->
<tr> <tr class="{tr_color}">
<td valign="top" align="left" width="4%">{edit_box}</td> <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="30%"><b>{field}:</b></td>
<td valign="top" align="left" width="54%">{data}</td> <td valign="top" align="left" width="54%">{data}</td>
@ -29,9 +27,7 @@
</tr> </tr>
<!-- END list --> <!-- END list -->
<!-- BEGIN hr --> <!-- BEGIN hr -->
<tr> <tr class="th">
<td colspan="5"> <td colspan="5" align="center"><b>{hr_text}</b></td>
{hr_text}
</td>
</tr> </tr>
<!-- END hr --> <!-- END hr -->

View File

@ -1,36 +1,38 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN edit_entry --> <!-- BEGIN edit_entry -->
<body bgcolor="#C0C0C0">
<center> <center>
<font color="#000000" face="{font}"> <font color="#000000" face="{font}">
<h2>{calendar_action}</h2>
<form action="{action_url}" method="post" name="addform"> <form action="{action_url}" method="post" name="addform">
{common_hidden} {common_hidden}
<table border="0" width="75%"> <table border="0" width="90%">
<tr> <tr>
<td colspan="2"> <td colspan="2">
<center><font size="+1"><b>{errormsg}</b></font></center> <center><font size="+1"><b>{errormsg}</b></font></center>
<hr>
</td> </td>
</tr> </tr>
{row} {row}
<tr>
<td>
<table><tr valign="top">
<td><input type="submit" value="{submit_button}">&nbsp;</form></td>
<td>{cancel_button}</td>
</tr></table>
</td>
<td align="right">{delete_button}</td>
</tr>
</table> </table>
<input type="submit" value="{submit_button}">
</form>
<br/>
{extra_buttons}
</font> </font>
</center> </center>
<!-- END edit_entry --> <!-- END edit_entry -->
<!-- BEGIN list --> <!-- BEGIN list -->
<tr> <tr class="{tr_color}">
<td valign="top" width="35%"><b>{field}:</b></td> <td valign="top" width="35%">&nbsp;<b>{field}:</b></td>
<td valign="top" width="65%">{data}</td> <td valign="top" width="65%">{data}</td>
</tr> </tr>
<!-- END list --> <!-- END list -->
<!-- BEGIN hr --> <!-- BEGIN hr -->
<tr> <tr class="{tr_color}">
<td colspan="2"> <td colspan="2">
{hr_text} {hr_text}
</td> </td>

View File

@ -1,6 +1,6 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN head --> <!-- BEGIN head -->
{row} {row}<br>
<!-- END head --> <!-- END head -->
<!-- BEGIN head_table --> <!-- BEGIN head_table -->
<table border="0" width="100%" cols="{cols}" cellpadding="0" cellspacing="0"> <table border="0" width="100%" cols="{cols}" cellpadding="0" cellspacing="0">

View File

@ -1,35 +1,33 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN form --> <!-- BEGIN form -->
<center> <center>
<table border="0" width="80%" cellspacing="2" cellpadding="2"> {message}<br>
<tr><td colspan="1" align="center" bgcolor="#c9c9c9"><b>{title_holiday}<b/></td></tr>
</table>
{message}
<table border="0" width="80%" cellspacing="2" cellpadding="2"> <table border="0" width="80%" cellspacing="2" cellpadding="2">
<form name="form" action="{actionurl}" method="POST"> <form name="form" action="{actionurl}" method="POST">
{hidden_vars} {hidden_vars}
{rows} {rows}
<tr> <tr>
<td colspan="2"> <td colspan="2">
<table width="100%" border="0" cellspacing="2" cellpadding="2"> <table width="100%" border="0" cellspacing="5">
<tr valign="bottom"> <tr valign="top">
<td height="50" align="center"> <td>
<input type="submit" name="submit" value="{lang_add}"> <input type="submit" name="submit" value="{lang_add}"></form>
</td> </td>
<td height="50" align="center"> <td>
<input type="reset" name="reset" value="{lang_reset}"> {cancel_button}
</td>
<td align="right" width="80%">
{delete_button}
</td> </td>
</tr> </tr>
</table> </table>
<td> <td>
</tr> </tr>
</form>
</table> </table>
{cancel_button}
</center> </center>
<!-- END form --> <!-- END form -->
<!-- BEGIN list --> <!-- BEGIN list -->
<tr> <tr class="{tr_color}">
<td valign="top" width="35%"><b>{field}:</b></td> <td valign="top" width="35%"><b>{field}:</b></td>
<td valign="top" width="65%">{data}</td> <td valign="top" width="65%">{data}</td>
</tr> </tr>

View File

@ -21,7 +21,7 @@
</table> </table>
<table border="0" width="60%" align="center"> <table border="0" width="70%" cellspacing="5" align="center">
<tr> <tr>
<td align="left"> <td align="left">
<form method="POST" action="{new_action}"> <form method="POST" action="{new_action}">
@ -29,9 +29,9 @@
</form> </form>
</td> </td>
{back_button} {back_button}
<td align="right">{lang_search}&nbsp; <td width="80%" align="right">
<form method="POST" action="{search_action}"> <form method="POST" action="{search_action}">
<input name="query"> {lang_search}&nbsp;<input name="query">
</form> </form>
</td> </td>
</tr> </tr>
@ -39,7 +39,7 @@
<!-- END list --> <!-- END list -->
<!-- BEGIN row --> <!-- BEGIN row -->
<tr class="{tr_color}"> <tr class="{tr_color}">
<td>{group_name}</td> <td>&nbsp;{group_name}</td>
{rule} {rule}
<td width="5%">{edit_link}</td> <td width="5%">{edit_link}</td>
<td width="5%">{delete_link}</td> <td width="5%">{delete_link}</td>

View File

@ -1,20 +1,26 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN matrix_query --> <!-- BEGIN matrix_query -->
<center> <center>
<h2><font color="#000000">{matrix_action}</font></h2>
<form target="viewmatrix" action="{action_url}" method="post" name="matrixform"> <form target="viewmatrix" action="{action_url}" method="post" name="matrixform">
<table border="0" width="75%"> <table border="0" width="90%">
{rows} <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> </table>
<input type="submit" value="{submit_button}">
</form>
{cancel_button}
</center> </center>
<!-- END matrix_query --> <!-- END matrix_query -->
<!-- BEGIN list --> <!-- BEGIN list -->
<tr> <tr class="{tr_color}">
<td valign="top" width="35%"><b>{field}:</b></td> <td valign="top" width="35%"><b>&nbsp;{field}:</b></td>
<td valign="top" width="65%">{data}</td> <td valign="top" width="65%">{data}</td>
</tr> </tr>
<!-- END list --> <!-- END list -->

View File

@ -1,14 +1,15 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN overlap --> <!-- BEGIN overlap -->
<center> <center><br>
<h2>
<font color="{color}">{overlap_title}</font>
</h2>
<table> <table>
<tr><td>{overlap_text}</td></tr> <tr><td>{overlap_text}</td></tr>
<tr><td><ul>{overlap_list}</ul></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> </table>
{resubmit_button}
{reedit_button}
</center> </center>
<!-- END overlap --> <!-- END overlap -->

View File

@ -1,16 +1,19 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN search --> <!-- BEGIN search -->
<h2><font color="{color}">{search_text}</font></h2> <table width="90%">
<b>{quantity}</b><p> <tr><td colspan="2" align="center" class="th"><b>{quantity}</b></td></tr>
{rows} {rows}
<p> </table>
<!-- END search --> <!-- END search -->
<!-- BEGIN search_list_header --> <!-- BEGIN search_list_header -->
<ul>
<!-- END search_list_header --> <!-- END search_list_header -->
<!-- BEGIN search_list --> <!-- BEGIN search_list -->
<li>{result_desc}</li> <tr class="{tr_color}">
<td width="20%">&nbsp;{date}</td>
<td>{link}</td>
</tr>
<!-- END search_list --> <!-- END search_list -->
<!-- BEGIN search_list_footer --> <!-- BEGIN search_list_footer -->
</ul>
<!-- END search_list_footer --> <!-- END search_list_footer -->

View File

@ -1,26 +1,26 @@
<!-- $Id$ --> <!-- $Id$ -->
<!-- BEGIN view_event --> <!-- BEGIN view_event -->
<center> <center>
<h2> <table border="0" width="90%">
<font color="{bg_text}">
{name}
</font>
</h2>
<table border="0" width="75%">
{row} {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> </table>
</center> </center>
<!-- END view_event --> <!-- END view_event -->
<!-- BEGIN list --> <!-- BEGIN list -->
<tr> <tr class="{tr_color}">
<td valign="top" width="30%"><b>{field}:</b></td> <td valign="top" width="30%">&nbsp;<b>{field}:</b></td>
<td valign="top" width="70%">{data}</td> <td colspan="2" valign="top" width="70%">{data}</td>
</tr> </tr>
<!-- END list --> <!-- END list -->
<!-- BEGIN hr --> <!-- BEGIN hr -->
<tr> <tr>
<td colspan="2"> <td colspan="3" class="th" align="center">
{hr_text} <b>{hr_text}</b>
</td> </td>
</tr> </tr>
<!-- END hr --> <!-- END hr -->

View File

@ -3,25 +3,21 @@
<center> <center>
<table border="0" cellspacing="3" cellpadding="4" cols=4> <table border="0" cellspacing="3" cellpadding="4" cols=4>
<tr> <tr>
<td align="left"> <td align="center">
{left_link} {left_link}
</td> </td>
<td align="center"> <td align="center">
<font face="{font}" size="+1">{year_text}</font> <font face="{font}" size="+1">{year_text}</font>
</td> </td>
<td align="right"> <td align="center">
{right_link} {right_link}
</td> </td>
</tr>
<tr valign="top">
{row} {row}
</tr> </tr>
</table> </table>
</center> </center>
<p> <p>
<p>
{printer_friendly} {printer_friendly}
<hr>
<!-- END year --> <!-- END year -->
<!-- BEGIN month --> <!-- BEGIN month -->
<td valign="top"> <td valign="top">