[3594] | 1 | <?php |
---|
| 2 | /**************************************************************************\ |
---|
| 3 | * eGroupWare * |
---|
| 4 | * http://www.egroupware.org * |
---|
| 5 | * -------------------------------------------- * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \**************************************************************************/ |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | function add_col(&$tpl,$str) |
---|
| 14 | { |
---|
| 15 | $tpl->set_var('str',$str); |
---|
| 16 | $tpl->parse('header_column','head_col',True); |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | function add_image_ahref($link,$image,$alt) |
---|
| 20 | { |
---|
| 21 | return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" title="'.$alt.'" border="0"></a>'; |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); |
---|
| 25 | $referrer = $refer[2]; |
---|
| 26 | |
---|
| 27 | $templates = Array( |
---|
| 28 | 'head_tpl' => 'head.tpl', |
---|
| 29 | 'form_button_dropdown' => 'form_button_dropdown.tpl', |
---|
| 30 | 'form_button_script' => 'form_button_script.tpl' |
---|
| 31 | ); |
---|
| 32 | $tpl->set_file($templates); |
---|
| 33 | $tpl->set_block('head_tpl','head','head'); |
---|
| 34 | $tpl->set_block('head_tpl','head_table','head_table'); |
---|
| 35 | $tpl->set_block('head_tpl','head_col','head_col'); |
---|
| 36 | $tpl->set_block('form_button_script','form_button'); |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | $tpl->set_var('cols',3); |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | $today = date('Ymd',$GLOBALS['phpgw']->datetime->users_localtime); |
---|
| 43 | |
---|
| 44 | //$col_width = 12; |
---|
| 45 | //add_col($tpl,' <td > </td>'); |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | $tpl->parse('row','head_table',True); |
---|
| 49 | |
---|
| 50 | $tpl->set_var('header_column',''); |
---|
| 51 | $tpl->set_var('cols',$cols); |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | ?> |
---|