. */ // ================================== // = implementing standard includes = // ================================== include('../../includes/basics.php'); // libs TinyButStrong include_once('TinyButStrong/tinyButStrong.class.php'); include_once('TinyButStrong/tinyDoc.class.php'); $usr = checkUser(); // set smarty config require_once('../../libraries/smarty/Smarty.class.php'); $tpl = new Smarty(); $tpl->template_dir = 'templates/'; $tpl->compile_dir = 'compile/'; $tpl->assign('kga', $kga); // get list of projects for select box $sel = makeSelectBox("pct",$kga['usr']['usr_grp']); $tpl->assign('sel_pct_names', $sel[0]); $tpl->assign('sel_pct_IDs', $sel[1]); // Select values for Round Time option $tpl->assign('sel_round_names', array('0.1h', '0.25h', '0.5h', '1.0h') ); $tpl->assign('sel_round_IDs', array(1, 2.5, 5, 10) ); // Get Invoice Template FileNames $iv_tmp_arr = Array(); $handle = opendir('templates/'); while (false!== ($file = readdir($handle))) { if ($file!= "." && $file!= ".." &&!is_dir($file)) { $namearr = explode('.',$file); if ($namearr[count($namearr)-1] == 'odt') $iv_tmp_arr[] = $file; if ($namearr[count($namearr)-1] == 'ods') $iv_tmp_arr[] = $file; } } closedir($handle); sort($iv_tmp_arr); $tpl->assign('sel_form_files', $iv_tmp_arr); // Retrieve start & stop times $timespace = get_timespace(); $tpl->assign('in', $timespace[0]); $tpl->assign('out', $timespace[1]); $tpl->assign('timespan_display', $tpl->fetch("timespan.tpl")); $tpl->display('main.tpl'); ?>