require_once "base.thulit.php"; require_once "FCKeditor/fckeditor.php"; //require_once ("phpOpenTracker.php") ; if (isset($_GET['lang'])) { $thulit['lang'] = $_GET['lang']; } if (isset($_GET['action']) && $_GET['action'] == "logout" && $a->checkAuth()) { $a->logout(); $a->start(); } $user = get_user(); $smarty->assign('_user', $user); //var_dump($_POST); //echo $_GET['site']; if (isset($_POST['edit'])) { save_edit(); } $thulit['site'] = $_SERVER["HTTP_HOST"]; if (isset($_GET["lang"])) { $thulit['lang'] = $_GET["lang"]; } if (isset($_GET["page"])) { $thulit['page'] = $_GET["page"]; } display_site($thulit['site'], null); //display_root($_GET['page'],null); //echo $_GET['edit']; //initialization of page time counter //$timer_start=Time()+SubStr(MicroTime(),0,8); // log access //phpOpenTracker::log();
$c_raw = array('calibration_id', 'code', 'date', 'equipment', 'purpose', 'reagents', 'calibrators', 'responses', 'correlation_function', 'quality_check', 'detail', 'file_attached', 'file_attached_name'); //////////////end report if (!login_varify()) { exit; } main_menu(); echo '<table><tr><td>'; select_code(); echo '</td><td>'; echo new_calibration(); echo '</td></tr></table>'; if (isset($_POST['action'])) { if ($_POST['action'] == 'save_new') { save_new($_POST['tname'], $_POST); } elseif ($_POST['action'] == 'save_edit') { save_edit($_POST); } elseif ($_POST['action'] == 'delete') { del($_POST); } elseif ($_POST['action'] == 'new_calibration') { read_new('calibration', 'calibration.php', 'New Calibration', 'Click to save', 'action', 'save_new', 'Save'); } } else { /* echo '<table><form method=post action=calibration.php>'; echo '<tr><th>Select code of examination</th><td>'; mk_select_grand('code','',''); echo '</td></tr>'; echo '<tr class="submit" ><td colspan=2><button type=submit name=action value=show_for_code>New/Edit Calibrations</button></td></tr>'; echo '<tr class="submit" ><td colspan=2><button type=submit name=action value=report_for_code>Report Summary</button></td></tr>'; echo '</form></table>'; */