set_var('str',$str);
$tpl->parse('header_column','head_col',True);
}
function add_image_ahref($link,$image,$alt)
{
return '';
}
$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);
$str = '
| ';
add_col($str);
$link = $phpgw->link('/calendar/day.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner);
$str = ' '.add_image_ahref($link,'today.gif',lang('Today')).' | ';
add_col($str);
$link = $phpgw->link('/calendar/week.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner);
$str = ' '.add_image_ahref($link,'week.gif',lang('This week')).' | ';
add_col($str);
$link = $phpgw->link('/calendar/month.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner);
$str = ' '.add_image_ahref($link,'month.gif',lang('This month')).' | ';
add_col($str);
$link = $phpgw->link('/calendar/year.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner);
$str = ' '.add_image_ahref($link,'year.gif',lang('This Year')).' | ';
add_col($str);
$link = $phpgw->link('/calendar/matrixselect.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner);
$str = ' '.add_image_ahref($link,'view.gif',lang('Daily Matrix View')).' | ';
add_col($str);
$base_url = '/calendar/'.basename($SCRIPT_FILENAME);
$remainder = 65;
if($phpgw->calendar->check_perms(PHPGW_ACL_PRIVATE) == True)
{
$remainder -= 30;
$hidden_vars = ''."\n";
if(isset($date) && $date)
{
$hidden_vars .= ' '."\n";
}
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
if(isset($keywords) && $keywords)
{
$hidden_vars .= ' '."\n";
}
if(isset($matrixtype) && $matrixtype)
{
$hidden_vars .= ' '."\n";
}
if(isset($participants) && $participants)
{
for ($i=0;$i'."\n";
}
}
$form_options = ''."\n";
$form_options .= ' '."\n";
$var = Array(
'form_width' => '30',
'form_link' => $phpgw->link($base_url,'owner='.$owner),
'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($grants) > 0)
{
$hidden_vars = ' '."\n";
if(isset($date) && $date)
{
$hidden_vars .= ' '."\n";
}
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
if(isset($keywords) && $keywords)
{
$hidden_vars .= ' '."\n";
}
if(isset($id) && $id != 0)
{
$hidden_vars .= ' '."\n";
}
$form_options = '';
reset($grants);
while(list($grantor,$temp_rights) = each($grants))
{
$form_options .= ' '."\n";
}
reset($grants);
$var = Array(
'form_width' => $remainder,
'form_link' => $phpgw->link($base_url),
'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($date) && $date)
{
$hidden_vars .= ' '."\n";
}
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
$hidden_vars .= ' '."\n";
if(isset($keywords) && $keywords)
{
$hidden_vars .= ' '."\n";
}
if(isset($filter) && $filter)
{
$hidden_vars .= ' '."\n";
}
$extra_field = $hidden_vars.' ';
$var = Array(
'action_url_button' => $phpgw->link('/calendar/search.php','owner='.$owner),
'action_text_button' => lang('Search'),
'action_confirm_button' => '',
'action_extra_field' => $extra_field
);
$tpl->set_var($var);
$button = $tpl->fp('out','form_button');
$tpl->set_var('str',''.$button.' | ');
$tpl->parse('header_column','head_col',True);
echo $tpl->fp('out','head');
unset($tpl);
?>