set_prior_mode($_SESSION['login']); } $cms->set_document_root(realpath(__DIR__) . "/../../"); $static_url = $_SERVER['REQUEST_URI']; if (preg_match('{/$}', $static_url)) { $static_url .= "index.html"; } $cms->load_static_html(DOC_PREFIX . $static_url); $exam_term = 116; $current_date = time(); switch ($course_rank) { case "1" : $course_code = array('010', '040', '070', '100', '105'); break; case "j1" : $course_code = array('020', '050', '080', '101', '106', '109', '025'); break; case "2" : $course_code = array('030', '060', '090', '102', '107', '109', '025'); break; case "3" : $course_code = array('030', '060', '090', '107'); break; } if (!empty($_SESSION['coupon'])) { $cms->assign("coupon", $_SESSION['coupon']); } $place_table = $wws->get_place_table(); $cms->assign("place_table", $place_table); $cms->assign("exam_term", $exam_term); $cms->assign("course_rank", $course_rank); $course_paper_schedule_list = $wws->search_course_paper_schedule($exam_term, $course_code, $current_date); $cms->assign("course_schedule_list", $course_paper_schedule_list); $course_status = $wws->get_course_status($course_paper_schedule_list); $cms->html('#schedule-writing + .section-body', "web/course/schedule_paper.html"); if ($course_rank == "1" or $course_rank == "j1") { $course_intv_schedule_block = array(); $course_intv_schedule_block['m'] = $wws->search_course_intv_schedule($exam_term, ($course_rank == "1" ? "110" : "120"), 2, $current_date, "date"); $course_intv_schedule_block['f'] = $wws->search_course_intv_schedule($exam_term, ($course_rank == "1" ? "110" : "120"), 1, $current_date, "date"); $cms->assign("course_intv_schedule_block", $course_intv_schedule_block); $cms->html('#schedule-intv-first + .section-body', "web/course/schedule_intv.html"); } $cms->doc['head']->append(''); $cms->doc['head']->append(''); $cms->render(); require_once(SMARTY_PLUGINS_DIR . '../../../lib/cipher/aes.php'); //var_dump($course_paper_schedule_list);