<?php /**************************************************************************\ * eGroupWare * * http://www.egroupware.org * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ function add_col(&$tpl,$str) { $tpl->set_var('str',$str); $tpl->parse('header_column','head_col',True); } function add_image_ahref($link,$image,$alt) { return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" title="'.$alt.'" border="0"></a>'; } $refer = explode('.',$GLOBALS['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_table','head_table'); $tpl->set_block('head_tpl','head_col','head_col'); $tpl->set_block('form_button_script','form_button'); $tpl->set_var('cols',3); $today = date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime); //$col_width = 12; //add_col($tpl,' <td > </td>'); $tpl->parse('row','head_table',True); $tpl->set_var('header_column',''); $tpl->set_var('cols',$cols); ?>