1"; $execSQL = $DBcon->prepare($sSQL); $execSQL->bindParam(":aid",$aid); $execSQL->bindParam(":secret",$secret); $execSQL->bindParam(":psrid",$psrid); $execSQL->execute(); if($execSQL->rowCount() == 0) { DBClose($DBcon); ?> fetch(PDO::FETCH_NUM); } $sSQL = "select school_name,techorhigh,univorcol from ".$WEB_DB.".schools where psrid=?"; $execSQL = $DBcon->prepare($sSQL); $execSQL->bindParam(1,$psrid); $execSQL->execute(); if($execSQL->rowCount() == 0) { DBClose($DBcon); ?> fetch(PDO::FETCH_NUM); $office_name = $school_name; } $top_from_tid = 11; $pid = 1; $sSQL = "select groupid,menu_name from topics where tid=?"; $execSQL = $DBcon->prepare($sSQL); $execSQL->bindParam(1,$top_from_tid); $execSQL->execute(); if($execSQL->rowCount() == 0) { DBClose($DBcon); Header("Location: ".$DEBUT_PAGE); exit(); } List($menu_group,$menu_name) = $execSQL->fetch(PDO::FETCH_NUM); $sSQL = "select from_tid,page_name from pages where showup=1 and pid=?"; $execSQL = $DBcon->prepare($sSQL); $execSQL->bindParam(1,$pid); $execSQL->execute(); if($execSQL->rowCount() == 0) { DBClose($DBcon); Header("Location: ".$DEBUT_PAGE); exit(); } List($from_tid,$page_name) = $execSQL->fetch(PDO::FETCH_NUM); head($DBcon,$menu_group,$top_from_tid,$username,$office_name); show_menu($DBcon,$from_tid,$pid); ?>

end_date, (Curdate()>=begin_date and (Curdate()<=end_date or attributes like :delay_edit)), attributes from forms where showup=1 and least_priority<=:priority order by end_date DESC"; $execSQL = $DBcon->prepare($sSQL); $execSQL->bindValue(":delay_edit","%#".$ATTR_DELAY_EDIT."%"); $execSQL->bindParam(":priority",$priority); $execSQL->execute(); $n=0; while(List($form_code,$form_name,$learn_year,$year_code,$begin_y,$begin_date,$end_y,$end_date,$not_open,$is_expired,$is_open,$attributes) = $execSQL->fetch(PDO::FETCH_NUM)) { $str_priority = "prrt_".$form_code; if($$str_priority==1) { $n++; switch($form_code) { case "school": case "depinfo": $title = $form_name."(".$learn_year."招生)"; break; case "search": $title = "填寫".$learn_year."招生管道資料"; break; case "transfer": $title = "填寫".$learn_year."轉學生招生資訊"; break; default: $title = $learn_year.$form_name; break; } ?>

開放時間: