get($tid); if (isset($_POST['cancel'])) { $msg->addFeedback('CANCELLED'); header('Location: index.php?_course_id='.$_course_id); exit; } else if (isset($_POST['submit'])) { if ($testsDAO->Update($_POST['tid'], $_POST['title'], $_POST['description'])) { $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY'); header('Location: index.php?_course_id='.$_course_id); exit; } } $onload = 'document.form.title.focus();'; require_once(TR_INCLUDE_PATH.'header.inc.php'); $msg->printErrors(); $savant->assign('course_id', $_course_id); $savant->assign('tid', $tid); $savant->assign('row', $row); $savant->display('tests/create_edit_test.tmpl.php'); require (TR_INCLUDE_PATH.'footer.inc.php'); ?>