} } echo COM_siteHeader(); if ($endStamp < $startStamp) { //Hey! You can't have an end date thats less than the start date... echo '<br><br><a href="index.php">' . $LANG_NEXTIME['end_date_before_start']; echo $LANG_NEXTIME['back_link_label'] . '</a>'; echo COM_siteFooter(); exit(0); } $ts = new nexTime(); $T = new Template($CONF_NEXTIME['template_path']); $T->set_file(array('javascript' => 'nextime.js.thtml', 'approvalpage' => 'approve.thtml')); $T->set_var('site_url', $_CONF['site_url']); $T->set_var($LANG_NEXTIME); $T->set_var('allfields', $ts->getTableColumns('nextime_timesheet_entry')); $T->set_var('start_date', $start_date); $T->set_var('end_date', $end_date); $T->set_var('emp', $emp); $T->set_var('disable', "display:none"); $T->set_var('disable_on_lock', " readonly "); $T->set_var('comment_disable', ''); $T->set_var('comment_edit_disable', ''); $adjustment_save = $ts->determineIfItemIsInLockRangeByDateStamp($startStamp, $emp) ? '_adj' : ''; $T->set_var('adj_postfix', $adjustment_save); $T->parse('output', 'javascript'); if ($hideapproved) { $T->set_var('hidefullyapproved_check', 'checked'); } if ($emp > 0) { //specific user