Notice: session_start(): Ignoring session_start() because a session is already active (started from /home/s10251158/public_html/f_session.php on line 26) in /home/s10251158/public_html/f_session.php on line 26
導師註冊 3L tutor 1800){ session_unset(); // unset $_SESSION variable for the run-time session_destroy(); // destroy session data in storage } } else { session_unset(); // unset $_SESSION variable for the run-time session_destroy(); // destroy session data in storage } $_SESSION['last_active_3l'] = time(); **/ if (isset($_SESSION['loginid'])){ redirectto('index.php'); } $txtwidth = "size='50'"; $email = $loginpw = $ename = $cname = $nickname = $gender = $brith = $national = $language = $belief = ""; $fixaddress = $estate = $livearea = $mobile = $job = $workexp = $eduworkexp = $maxedu = ""; $imaedu = $secschool = $secschoollang = $highschool = $specschool = $university = ""; $other_university = $university_lession = $other_lession = $other_spec_course = $other_course = ""; $can_teach_max = $provide_notes = $minpay = $price = ""; $findusway = $intro = $maxstudy = $maxmusic = $maxlang = $maxother = ""; $confirmemail = $confirmloginpw = ""; /** if (isset($_SESSION["errpart"])){ $errpartnum = $_SESSION["errpart"]; echo ""; } **/ if ($_SERVER["REQUEST_METHOD"] == "POST") { $email = testinput($_POST["email"]); $loginpw = testinput($_POST["password"]); $ename = testinput($_POST["ename"]); $ename = strtoupper($ename); $cname = testinput($_POST["cname"]); $nickname = testinput($_POST["nickname"]); $gender = testinput($_POST["teach_gender"]); $brith = testinput($_POST["brithyear"]); $national = testinput($_POST["national"]); $language = testinput($_POST["language"]); $belief = testinput($_POST["belief"]); $confirmemail = testinput($_POST["confirmemail"]); $confirmloginpw = testinput($_POST["confirmpassword"]); $val_safequestion = testinput($_POST['sel_safeq']); $val_otherq = testinput($_POST['other_safeq']); $val_safeq_ans = testinput($_POST['ansOfSaveq']); // informatin of step2 $fixaddress = testinput($_POST["fixedaddress"]); $estate = testinput($_POST["estate"]); $livearea = testinput($_POST["livearea"]); $mobile = testinput($_POST["mobile"]); $job = testinput($_POST["work"]); $workexp = testinput($_POST["work_exp"]); $eduworkexp = testinput($_POST["edu_work_exp"]); $eduworkdetail = testinput($_POST["educationexp"]); $maxedu = testinput($_POST["max_edu"]); $imaedu = testinput($_POST["ima_edu"]); $secschool = testinput($_POST["sec_school"]); $secschoollang = testinput($_POST["secschool_language"]); $highschool = testinput($_POST["highschool_lession"]); $specschool = testinput($_POST["spec_school"]); $university = testinput($_POST["university"]); $other_university = testinput($_POST["other_university"]); $university_lession = testinput($_POST["university_lession"]); $other_lession = testinput($_POST["other_lession"]); $other_spec_course = testinput($_POST["other_spec_course"]); $other_course = testinput($_POST["other_course"]); // information of step 03 $can_teach_max = testinput($_POST["max_class"]); $provide_notes = testinput($_POST["notes"]); $minpay = testinput($_POST["minprice"]); $price = testinput($_POST["price"]); //information of step 04 $findusway = testinput($_POST["findusway"]); $intro = testinput($_POST["intro"]); $maxstudy = testinput($_POST["canteachstudy"]); $maxmusic = testinput($_POST["canteachmusic"]); $maxlang = testinput($_POST["canteachlang"]); $maxother = testinput($_POST["canteachother"]); if (empty($_POST["email"]) || empty($_POST["password"]) || empty($_POST["ename"]) || empty($_POST["teach_gender"]) || empty($_POST["brithyear"]) || empty($_POST["fixedaddress"]) || empty($_POST["estate"]) || empty($_POST["livearea"]) || empty($_POST["mobile"]) || empty($_POST["work"]) || empty($_POST["work_exp"]) || empty($_POST["edu_work_exp"]) || empty($_POST["educationexp"]) || empty($_POST["max_edu"]) || empty($_POST["ima_edu"]) || empty($_POST['sel_safeq']) || empty($_POST['ansOfSaveq']) || empty($_POST["notes"]) || empty($_POST["minprice"]) || empty($_POST["price"]) || empty($_POST["intro"])){ //|| empty($_POST["max_class"]) $_SESSION["emptyErr2"] = errMsg("*此欄位必須填寫",'e'); if (empty($_POST["email"]) || empty($_POST["password"]) || empty($_POST["ename"]) || empty($_POST["teach_gender"]) || empty($_POST["brithyear"]) || empty($_POST["fixedaddress"]) || empty($_POST["estate"]) || empty($_POST["livearea"]) || empty($_POST["mobile"])){ $_SESSION["errpart"] = 1; } else if (empty($_POST["work"]) || empty($_POST["work_exp"]) || empty($_POST["edu_work_exp"]) || empty($_POST["educationexp"])){ $_SESSION["errpart"] = 2; } else if (empty($_POST["max_edu"]) || empty($_POST["ima_edu"]) || empty($_POST["max_class"]) || empty($_POST["notes"]) || empty($_POST["minprice"]) || empty($_POST["price"])){ $_SESSION["errpart"] = 3; } else if (empty($_POST["intro"])){ $_SESSION["errpart"] = 4; } } else { // information of step1 $errNum = 0; if (!preg_match("/^[a-zA-Z ]*$/", $ename)){ //echo "ename = ".$ename; $errNum++; $_SESSION['enameErr'] = errMsg("英文姓名不正確",'e'); } if ($cname != ""){ if (!preg_match("/^([\x7f-\xff ]+)$/", $cname)){ $errNum++; $_SESSION['cnameErr'] = errMsg("中文姓名不正確",'e'); } } if ($national != ""){ if (!preg_match("/^([a-zA-Z\x7f-\xff ]+)$/", $national)){ $errNum++; $_SESSION['nationalErr'] = errMsg("國藉請以英文或中文輸入",'e'); } } if ($belief != ""){ if (!preg_match("/^([a-zA-Z\x7f-\xff ]+)$/", $belief)){ $errNum++; $_SESSION['beliefErr'] = errMsg("宗教信仰請以英文或中文輸入",'e'); } } //check email // check if e-mail address is well-formed if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $_SESSION["loginemailErr"] = errMsg("電郵地址不正確",'e'); $errNum++; $_SESSION["errpart"] = 1; } else { if ($email <> $confirmemail){ $errNum++; $_SESSION["loginemailErr"] = errMsg("請確認登記電郵!",'e'); $_SESSION["errpart"] = 1; } $emailresult = checktemail($email); if ($emailresult == 0){ //echo "email correct"; } else { $_SESSION["loginemailErr"] = $_SESSION["loginemailErr"].errMsg("此電郵已被使用",'e'); $errNum++; $_SESSION["errpart"] = 1; } } if (!preg_match("/^[a-zA-Z0-9]*$/", $confirmloginpw)){ $errNum++; $_SESSION['loginpwErr'] = errMsg("密碼只接受英文或數字!",'e'); } if (!preg_match("/^[a-zA-Z0-9]*$/", $loginpw)){ $errNum++; $_SESSION['loginpwErr'] = errMsg("密碼只接受英文或數字!",'e'); } $loginpws = ""; if (strlen($loginpw) >= 8 & strlen($loginpw) <=10){ $loginpws = $loginpw; } else { $_SESSION["loginpwErr"] = $_SESSION["loginpwErr"].errMsg("密碼必須8至10字以內.",'e'); $errNum++; $_SESSION["errpart"] = 1; } if ($loginpw <> $confirmloginpw){ $_SESSION["loginpwErr"] = $_SESSION["loginpwErr"].errMsg("請確認登記密碼!",'e'); $errNum++; $_SESSION["errpart"] = 1; } //$val_safequestion = testinput($_POST['sel_safeq']); $final_safeq = $val_safequestion; if ($val_safequestion == 'other'){ if (empty($_POST['other_safeq'])){ $errNum++; $_SESSION['safeq'] = errMsg("如選擇其他,請在其他欄位填寫你的問題。",'e'); } else { $val_otherq = testinput($_POST['other_safeq']); $final_safeq = $val_otherq; } } //$val_safeq_ans = testinput($_POST['ansOfSaveq']); if(!filter_var($brith, FILTER_VALIDATE_INT)){ $_SESSION["ageErr2"] = errMsg("請選擇正確出身年份",'e'); $errNum++; $_SESSION["errpart"] = 1; } if(!filter_var($livearea, FILTER_VALIDATE_INT)){ $_SESSION["liveareaErr2"] = errMsg("請選擇正確住宅地區",'e'); $errNum++; $_SESSION["errpart"] = 1; } if(filter_var($mobile, FILTER_VALIDATE_INT)){ if (strlen($mobile) <> 8){ $_SESSION["mobileErr2"] = errMsg("*電話號碼不正確",'e'); $errNum++; $_SESSION["errpart"] = 1; } else { $firstnum = substr($mobile, 0,1); switch($firstnum){ case 2: break; case 3: break; case 5: break; case 6: break; case 9: break; default: $errNum++; $_SESSION["mobileErr2"] = errMsg("*電話號碼不正確",'e'); $_SESSION["errpart"] = 1;; } } } else { $errNum++; $_SESSION['mobileErr2'] = errMsg("*電話號碼不正確",'e'); } $errNum = $errNum + chkexisttel($mobile); if(!filter_var($job, FILTER_VALIDATE_INT)){ $_SESSION["workErr2"] = errMsg("請選擇職業",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } if(!filter_var($workexp, FILTER_VALIDATE_INT)){ $_SESSION["workexpErr2"] = errMsg("請選擇工作經驗",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } if(!filter_var($eduworkexp, FILTER_VALIDATE_INT)){ $_SESSION["eduworkexpErr2"] = errMsg("請選擇補習經驗及年資",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } if(!filter_var($eduworkdetail, FILTER_VALIDATE_INT)){ $_SESSION["eduworkdetailErr2"] = errMsg("請選擇教育機構經驗",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } if(!filter_var($maxedu, FILTER_VALIDATE_INT)){ $_SESSION["maxeduErr2"] = errMsg("請選擇最高教育程度",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } if(!filter_var($imaedu, FILTER_VALIDATE_INT)){ $_SESSION["imaeduErr2"] = errMsg("請選擇現時就讀年級",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } if ($secschoollang <> ""){ if(!filter_var($secschoollang, FILTER_VALIDATE_INT)){ $_SESSION["secschoollangErr2"] = errMsg("請選擇中學主要教學語言",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } } if ($highschool != ""){ if(!filter_var($highschool, FILTER_VALIDATE_INT)){ $_SESSION["highschoolErr2"] = errMsg("請選擇高中修讀科目",'e'); $errNum++; if ($_SESSION["errpart"] >= 2){ $_SESSION["errpart"] = 2; } } } // information of step 03 if ($can_teach_max != ""){ if(!filter_var($can_teach_max, FILTER_VALIDATE_INT)){ $_SESSION["can_teach_maxErr2"] = errMsg("請選擇最高可補年級",'e'); $errNum++; if ($_SESSION["errpart"] >= 3){ $_SESSION["errpart"] = 3; } } } if (!is_numeric($minpay)){ $_SESSION["minpayErr"] = errMsg("請填寫正確最低補習時薪",'e'); $errNum++; if ($_SESSION["errpart"] >= 3){ $_SESSION["errpart"] = 3; } } else { if ($minpay > 10000){ $_SESSION["minpayErr"] = errMsg("最低補習時薪需少於HK$10000",'e'); $errNum++; } else { $minpay = (int)$minpay; } } if (!is_numeric($price)){ $_SESSION["priceErr"] = errMsg("請填寫正確理想補習時薪"); $errNum++; if ($_SESSION["errpart"] >= 3){ $_SESSION["errpart"] = 3; } } else { if ($price > 10000){ $_SESSION["priceErr"] = errMsg("理想補習時薪需少於HK$10000"); $errNum++; } else { $price = (int)$price; } } // information of step 04 /** if (empty($_POST["canteachstudy"]) & empty($_POST["canteachmusic"]) & empty($_POST["canteachlang"]) & empty($_POST["canteachother"])){ $_SESSION["emptyErr2"] = errMsg("*此欄位必須填寫",'e'); $errNum++; if ($_SESSION["errpart"] >= 4){ $_SESSION["errpart"] = 4; } } **/ $errNum = $errNum + checkselsubject(); $errNum = $errNum + checkseltime(); $errNum = $errNum + checksellocation(); $year = date('Y'); $year = substr($year,2); $day = date('d'); $month = date('m'); $postdate = date('Y-m-d'); $posttime = date('H:i:sa'); $findtotal = "Select t_id from teacher"; $totalresult = mysqli_query($conn, $findtotal); $total = mysqli_num_rows($totalresult); $total = $total +1; $finaltotal = addzero($total); $teacherid = "T".$year.$month.$day.$finaltotal; $checkedresult = checkteachid($teacherid); while ($checkedresult <> TRUE){ $checkedresult = checkteachid($teacherid); $total = $total +1; $finaltotal = addzero($total); $teacherid = "T".$year.$month.$day.$finaltotal; } $blistresult = chkblacklist($mobile, $email); if ($blistresult == false){ $errNum++; } if ($errNum == 0){ $other_lession = testinput($_POST["other_lession"]); $other_spec_course = testinput($_POST["other_spec_course"]); $other_course = testinput($_POST["other_course"]); $sql_insert_teacher = "Insert into teacher values (NULL,'$teacherid', '$email', password('$loginpws'), '$ename', '$cname', '$nickname', '$gender', '$brith', '$national', '$language', '$belief', '$fixaddress', '$estate', '$livearea', '$mobile', '$job', '$workexp', '$eduworkexp', '$eduworkdetail', '$can_teach_max', '$provide_notes', '$maxedu', '$imaedu', '$secschool' , '$secschoollang', '$highschool', '$specschool', '$university', '$other_university', '$university_lession', '$other_lession', '$other_spec_course', '$other_course', '$minpay', '$price', '$intro', 'Pending', '$postdate', '$posttime', '$maxstudy', '$maxmusic', '$maxother', '$maxlang', '$final_safeq', '$val_safeq_ans', '' )"; if ($conn->query($sql_insert_teacher) === TRUE) { echo $subjectname."record create
"; $_SESSION['finish_treg'] = errMsg("

已完成導師申請程序!

我們會對閣下提供的資料進行審核。通過審核的資料會發佈到主頁上。

",'s'); $_SESSION['finish_t_id'] = $teacherid; $teachid = findtid($teacherid); $_SESSION['finish_tid'] = $teachid; upsubject($teachid); upexamresult($teachid, 'hkcee'); upexamresult($teachid, 'hkale'); upexamresult($teachid, 'hkdse'); uplangandmusicresult($teachid, 'music'); uplangandmusicresult($teachid, 'language'); savelocation ($teachid); UpoloadPostRecord($teachid, $postdate, $posttime); savetime($teachid); unsetTeachRegSession(); //header('Location: finhed_teachreg.php'); redirectto('finhed_teachreg.php'); } else { echo "Error creating '$teacherid': " . $conn->error."
"; } } } } else { unsetTeachRegSession(); } ?>

Notice: session_start(): Ignoring session_start() because a session is already active (started from /home/s10251158/public_html/f_session.php on line 26) in /home/s10251158/public_html/f_session.php on line 26
    
主頁 家長登記 導師登記 比較 聯絡我們

Notice: session_start(): Ignoring session_start() because a session is already active (started from /home/s10251158/public_html/f_session.php on line 26) in /home/s10251158/public_html/f_session.php on line 26

Warning: Undefined variable $link_with_sess in /home/s10251158/public_html/teach_menu.php on line 95

個人資料
*登記電郵: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1081
name="email" maxlength='255' value="
Warning: Undefined variable $email in /home/s10251158/public_html/techreg1_v2.php on line 1081
" />
Warning: Undefined variable $email in /home/s10251158/public_html/techreg1_v2.php on line 1084
*確認登記電郵: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1090
name="confirmemail" maxlength='255' value="
Warning: Undefined variable $confirmemail in /home/s10251158/public_html/techreg1_v2.php on line 1090
" />
Warning: Undefined variable $confirmemail in /home/s10251158/public_html/techreg1_v2.php on line 1092
*登記密碼: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1098
name="password" maxlength="10"/>(8~10字以內英文或數字)
*確認登記密碼: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1108
name="confirmpassword" maxlength="10"/>(8~10字以內英文或數字)
Warning: Undefined variable $confirmloginpw in /home/s10251158/public_html/techreg1_v2.php on line 1111
*安全問題
Warning: Undefined variable $val_safequestion in /home/s10251158/public_html/techreg1_v2.php on line 1141
*答案:
Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1153
value='
Warning: Undefined variable $val_safeq_ans in /home/s10251158/public_html/techreg1_v2.php on line 1153
' />
Warning: Undefined variable $val_safeq_ans in /home/s10251158/public_html/techreg1_v2.php on line 1155
*英文名稱: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1162
name="ename" maxlength='200' value="
Warning: Undefined variable $ename in /home/s10251158/public_html/techreg1_v2.php on line 1162
" /> (必須與身份證相同)
Warning: Undefined variable $ename in /home/s10251158/public_html/techreg1_v2.php on line 1165
中文名稱 : Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1173
name="cname" maxlength='200' value="
Warning: Undefined variable $cname in /home/s10251158/public_html/techreg1_v2.php on line 1173
" /> (必須與身份證相同)
暱稱: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1179
name="nickname" maxlength='150' value="
Warning: Undefined variable $nickname in /home/s10251158/public_html/techreg1_v2.php on line 1179
" />
*性別:
Warning: Undefined variable $gender in /home/s10251158/public_html/techreg1_v2.php on line 1183

Warning: Undefined variable $gender in /home/s10251158/public_html/techreg1_v2.php on line 1186

Warning: Undefined variable $gender in /home/s10251158/public_html/techreg1_v2.php on line 1197
*出生年份:
Warning: Undefined variable $brith in /home/s10251158/public_html/techreg1_v2.php on line 1222
國藉: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1229
name="national" maxlength='100' value="
Warning: Undefined variable $national in /home/s10251158/public_html/techreg1_v2.php on line 1229
" />
主要語言:
宗教信仰: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1243
name="belief" maxlength='100' value="
Warning: Undefined variable $belief in /home/s10251158/public_html/techreg1_v2.php on line 1243
" />
2. 聯絡資料
*固定住宅地址: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1253
name="fixedaddress" maxlength="255" value="
Warning: Undefined variable $fixaddress in /home/s10251158/public_html/techreg1_v2.php on line 1253
"/>
Warning: Undefined variable $fixaddress in /home/s10251158/public_html/techreg1_v2.php on line 1255
*居住屋苑: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1261
name="estate" maxlength='200' value="
Warning: Undefined variable $estate in /home/s10251158/public_html/techreg1_v2.php on line 1261
" />
Warning: Undefined variable $estate in /home/s10251158/public_html/techreg1_v2.php on line 1263
*住宅地區:
*聯絡電話: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v2.php on line 1280
name="mobile" maxlength='8' value="
Warning: Undefined variable $mobile in /home/s10251158/public_html/techreg1_v2.php on line 1280
" /> ( 2,3,5,6,9字頭香港電話號碼)
Warning: Undefined variable $mobile in /home/s10251158/public_html/techreg1_v2.php on line 1283




主頁
Facebook
收費表
導師參考收費表
常見問題
服務條款
廣告查詢
關於我們
網站地圖
Copyright © 2015 3L Tutor