set_var('str',$str);
$tpl->parse('header_column','head_col',True);
}
function add_image_ahref($link,$image,$alt)
{
global $GLOBALS;
return '';
}
$refer = explode('.',$HTTP_GET_VARS['menuaction']);
$referrer = $refer[2];
$templates = Array(
'head_tpl' => 'head.tpl',
'form_button_dropdown' => 'form_button_dropdown.tpl',
'form_button_script' => 'form_button_script.tpl'
);
$tpl->set_file($templates);
$tpl->set_block('head_tpl','head','head');
$tpl->set_block('head_tpl','head_col','head_col');
$tpl->set_block('form_button_script','form_button');
$tpl->set_var('cols',$cols);
$today = date('Ymd',time());
$str = '
| ';
add_col($tpl,$str);
$link = $this->page('day','&date='.$today);
$str = ' '.add_image_ahref($link,'today.gif',lang('Today')).' | ';
add_col($tpl,$str);
$link = $this->page('week','&date='.$today);
$str = ' '.add_image_ahref($link,'week.gif',lang('This week')).' | ';
add_col($tpl,$str);
$link = $this->page('month','&date='.$today);
$str = ' '.add_image_ahref($link,'month.gif',lang('This month')).' | ';
add_col($tpl,$str);
$link = $this->page('year','&date='.$today);
$str = ' '.add_image_ahref($link,'year.gif',lang('This Year')).' | ';
add_col($tpl,$str);
$link = $this->page('planner','&date='.$today);
$str = ' '.add_image_ahref($link,'planner.gif',lang('Planner')).' | ';
add_col($tpl,$str);
$link = $this->page('matrixselect');
$str = ' '.add_image_ahref($link,'view.gif',lang('Daily Matrix View')).' | ';
add_col($tpl,$str);
$remainder = 63;
if($this->bo->check_perms(PHPGW_ACL_PRIVATE))
{
$remainder -= 28;
$hidden_vars = ''."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date'])
{
$hidden_vars .= ' '."\n";
}
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords'])
{
$hidden_vars .= ' '."\n";
}
if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype'])
{
$hidden_vars .= ' '."\n";
}
if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants'])
{
for ($i=0;$i'."\n";
}
}
if($this->debug) { echo 'Filter = ('.$this->bo->filter.")
\n"; }
$form_options = ''."\n";
$form_options .= ' '."\n";
$var = Array(
'form_width' => '28',
'form_link' => $this->page($referrer),
'form_name' => 'filter',
'title' => lang('Filter'),
'hidden_vars' => $hidden_vars,
'form_options' => $form_options,
'button_value' => lang('Go!')
);
$tpl->set_var($var);
$tpl->set_var('str',$tpl->fp('out','form_button_dropdown'));
$tpl->parse('header_column','head_col',True);
}
if(count($this->bo->grants) > 0)
{
$hidden_vars = ' '."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date'])
{
$hidden_vars .= ' '."\n";
}
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords'])
{
$hidden_vars .= ' '."\n";
}
if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0)
{
$hidden_vars .= ' '."\n";
}
$form_options = '';
reset($this->bo->grants);
while(list($grantor,$temp_rights) = each($this->bo->grants))
{
$form_options .= ' '."\n";
}
reset($this->bo->grants);
$var = Array(
'form_width' => $remainder,
'form_link' => $this->page($referrer),
'form_name' => 'owner',
'title' => lang('User'),
'hidden_vars' => $hidden_vars,
'form_options' => $form_options,
'button_value' => lang('Go!')
);
$tpl->set_var($var);
$tpl->set_var('str',$tpl->fp('out','form_button_dropdown'));
$tpl->parse('header_column','head_col',True);
}
$hidden_vars = ' '."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date'])
{
$hidden_vars .= ' '."\n";
}
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
if(isset($this->bo->filter) && $this->bo->filter)
{
$hidden_vars .= ' '."\n";
}
$hidden_vars .= ' ';
$var = Array(
'action_url_button' => $this->page('search'),
'action_text_button' => lang('Search'),
'action_confirm_button' => '',
'action_extra_field' => $hidden_vars
);
$tpl->set_var($var);
$button = $tpl->fp('out','form_button');
$tpl->set_var('str',''.$button.' | ');
$tpl->parse('header_column','head_col',True);
?>