|
|
|
ต้องการทำตารางเรียน ตารางสอน แต่ช่องที่แสดงข้อมูลในแต่ละคาบไม่ต่อกัน |
|
|
|
|
|
|
|
ครับ ขอบคุณครับ
เดี๋ยวพรุ่งนี้จะลองแก้ดูครับ
|
|
|
|
|
Date :
2014-03-26 22:48:05 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
พอดีไม่ได้เขียนเป็นอาเรย์ตั้งแต่แรกน่ะครับเลยใช้ไม่ได้พอมีคำสั่งอื่นแนะนำไหมครับ
|
|
|
|
|
Date :
2014-03-30 10:31:09 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ต้องเอาโค้ดส่วนแสดงผลและ export เทเบิ้ล มาวางครับ
|
|
|
|
|
Date :
2014-03-30 11:53:32 |
By :
sakuraei |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code ครับ
Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body,td,th {
font-size: small;
}
</style>
</head>
<body>
<?
include("connectdb.php");
$strSQL = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$objResult = mysql_fetch_array($objQuery);
?>
<?
//วันจันทร์คาบที่ 1
$strSQL2 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '1' ";
$objQuery2 = mysql_query($strSQL2) or die ("Error Query [".$strSQL2."]");
$objResult2 = mysql_fetch_array($objQuery2);
?>
<?
//วันจันทร์คาบที่ 2
$strSQL3 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '2' ";
$objQuery3 = mysql_query($strSQL3) or die ("Error Query [".$strSQL3."]");
$objResult3 = mysql_fetch_array($objQuery3);
?>
<?
//วันจันทร์คาบที่ 3
$strSQL4 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '3' ";
$objQuery4 = mysql_query($strSQL4) or die ("Error Query [".$strSQL4."]");
$objResult4 = mysql_fetch_array($objQuery4);
?>
<?
//วันจันทร์คาบที่ 4
$strSQL5 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '4' ";
$objQuery5 = mysql_query($strSQL5) or die ("Error Query [".$strSQL5."]");
$objResult5 = mysql_fetch_array($objQuery5);
?>
<?
//วันจันทร์คาบที่ 5
$strSQL6 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '5' ";
$objQuery6 = mysql_query($strSQL6) or die ("Error Query [".$strSQL6."]");
$objResult6 = mysql_fetch_array($objQuery6);
?>
<?
//วันจันทร์คาบที่ 6
$strSQL7 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '6' ";
$objQuery7 = mysql_query($strSQL7) or die ("Error Query [".$strSQL7."]");
$objResult7 = mysql_fetch_array($objQuery7);
?>
<?
//วันจันทร์คาบที่ 7
$strSQL8 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '7' ";
$objQuery8 = mysql_query($strSQL8) or die ("Error Query [".$strSQL8."]");
$objResult8 = mysql_fetch_array($objQuery8);
?>
<?
//วันจันทร์คาบที่ 8
$strSQL9 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '8' ";
$objQuery9 = mysql_query($strSQL9) or die ("Error Query [".$strSQL9."]");
$objResult9 = mysql_fetch_array($objQuery9);
?>
<?
//วันจันทร์คาบที่ 9
$strSQL10 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '9' ";
$objQuery10 = mysql_query($strSQL10) or die ("Error Query [".$strSQL10."]");
$objResult10 = mysql_fetch_array($objQuery10);
?>
<?
//วันจันทร์คาบที่ 10
$strSQL11 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '10' ";
$objQuery11 = mysql_query($strSQL11) or die ("Error Query [".$strSQL11."]");
$objResult11 = mysql_fetch_array($objQuery11);
?>
<?
//วันจันทร์คาบที่ 11
$strSQL12 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '11' ";
$objQuery12 = mysql_query($strSQL12) or die ("Error Query [".$strSQL12."]");
$objResult12 = mysql_fetch_array($objQuery12);
?>
<?
//วันจันทร์คาบที่ 12
$strSQL13 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '12' ";
$objQuery13 = mysql_query($strSQL13) or die ("Error Query [".$strSQL13."]");
$objResult13 = mysql_fetch_array($objQuery13);
?>
<?
//วันจันทร์คาบที่ 13
$strSQL14 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '13' ";
$objQuery14 = mysql_query($strSQL14) or die ("Error Query [".$strSQL14."]");
$objResult14 = mysql_fetch_array($objQuery14);
?>
<?
//วันจันทร์คาบที่ 14
$strSQL15 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '14' ";
$objQuery15 = mysql_query($strSQL15) or die ("Error Query [".$strSQL15."]");
$objResult15 = mysql_fetch_array($objQuery15);
?>
<?
//วันจันทร์คาบที่ 15
$strSQL16 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '15' ";
$objQuery16 = mysql_query($strSQL16) or die ("Error Query [".$strSQL16."]");
$objResult16 = mysql_fetch_array($objQuery16);
?>
<?
//วันอังคารคาบที่ 1
$strSQL17 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '1' ";
$objQuery17 = mysql_query($strSQL17) or die ("Error Query1 [".$strSQL17."]");
$objResult17 = mysql_fetch_array($objQuery17);
?>
<?
//วันอังคารคาบที่ 2
$strSQL18 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '2' ";
$objQuery18 = mysql_query($strSQL18) or die ("Error Query2 [".$strSQL18."]");
$objResult18 = mysql_fetch_array($objQuery18);
?>
<?
//วันอังคารคาบที่ 3
$strSQL19 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '3' ";
$objQuery19 = mysql_query($strSQL19) or die ("Error Query3 [".$strSQL19."]");
$objResult19 = mysql_fetch_array($objQuery19);
?>
<?
//วันอังคารคาบที่ 4
$strSQL20 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '4' ";
$objQuery20 = mysql_query($strSQL20) or die ("Error Query4 [".$strSQL20."]");
$objResult20 = mysql_fetch_array($objQuery20);
?>
<?
//วันอังคารคาบที่ 5
$strSQL21 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '5' ";
$objQuery21 = mysql_query($strSQL21) or die ("Error Query5 [".$strSQL21."]");
$objResult21 = mysql_fetch_array($objQuery21);
?>
<?
//วันอังคารคาบที่ 6
$strSQL22 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '6' ";
$objQuery22 = mysql_query($strSQL22) or die ("Error Query6 [".$strSQL22."]");
$objResult22 = mysql_fetch_array($objQuery22);
?>
<?
//วันอังคารคาบที่ 7
$strSQL23 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '7' ";
$objQuery23 = mysql_query($strSQL23) or die ("Error Query7 [".$strSQL23."]");
$objResult23 = mysql_fetch_array($objQuery23);
?>
<?
//วันอังคารคาบที่ 8
$strSQL24 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '8' ";
$objQuery24 = mysql_query($strSQL24) or die ("Error Query8 [".$strSQL24."]");
$objResult24 = mysql_fetch_array($objQuery24);
?>
<?
//วันอังคารคาบที่ 9
$strSQL25 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '9' ";
$objQuery25 = mysql_query($strSQL25) or die ("Error Query9 [".$strSQL25."]");
$objResult25 = mysql_fetch_array($objQuery25);
?>
<?
//วันอังคารคาบที่ 10
$strSQL26 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '10' ";
$objQuery26 = mysql_query($strSQL26) or die ("Error Query10 [".$strSQL26."]");
$objResult26 = mysql_fetch_array($objQuery26);
?>
<?
//วันอังคารคาบที่ 11
$strSQL27 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '11' ";
$objQuery27 = mysql_query($strSQL27) or die ("Error Query11 [".$strSQL27."]");
$objResult27 = mysql_fetch_array($objQuery27);
?>
<?
//วันอังคารคาบที่ 12
$strSQL28 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '12' ";
$objQuery28 = mysql_query($strSQL28) or die ("Error Query12 [".$strSQL28."]");
$objResult28 = mysql_fetch_array($objQuery28);
?>
<?
//วันอังคารคาบที่ 13
$strSQL29 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '13' ";
$objQuery29 = mysql_query($strSQL29) or die ("Error Query13 [".$strSQL29."]");
$objResult29 = mysql_fetch_array($objQuery29);
?>
<?
//วันอังคารคาบที่ 14
$strSQL30 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '14' ";
$objQuery30 = mysql_query($strSQL30) or die ("Error Query14 [".$strSQL30."]");
$objResult30 = mysql_fetch_array($objQuery30);
?>
<?
//วันอังคารคาบที่ 15
$strSQL31 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '15' ";
$objQuery31 = mysql_query($strSQL31) or die ("Error Query15 [".$strSQL31."]");
$objResult31 = mysql_fetch_array($objQuery31);
?>
<?
//วันพุธคาบที่ 1
$strSQL32 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '1' ";
$objQuery32 = mysql_query($strSQL32) or die ("Error Query [".$strSQL32."]");
$objResult32 = mysql_fetch_array($objQuery32);
?>
<?
//วันพุธคาบที่ 2
$strSQL33 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '2' ";
$objQuery33 = mysql_query($strSQL33) or die ("Error Query [".$strSQL33."]");
$objResult33 = mysql_fetch_array($objQuery33);
?>
<?
//วันพุธคาบที่ 3
$strSQL34 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '3' ";
$objQuery34 = mysql_query($strSQL34) or die ("Error Query [".$strSQL34."]");
$objResult34 = mysql_fetch_array($objQuery34);
?>
<?
//วันพุธคาบที่ 4
$strSQL35 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '4' ";
$objQuery35 = mysql_query($strSQL35) or die ("Error Query [".$strSQL35."]");
$objResult35 = mysql_fetch_array($objQuery35);
?>
<?
//วันพุธคาบที่ 5
$strSQL36 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '5' ";
$objQuery36 = mysql_query($strSQL36) or die ("Error Query [".$strSQL36."]");
$objResult36 = mysql_fetch_array($objQuery36);
?>
<?
//วันพุธคาบที่ 6
$strSQL37 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '6' ";
$objQuery37 = mysql_query($strSQL37) or die ("Error Query [".$strSQL37."]");
$objResult37 = mysql_fetch_array($objQuery37);
?>
<?
//วันพุธคาบที่ 7
$strSQL38 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '7' ";
$objQuery38 = mysql_query($strSQL38) or die ("Error Query [".$strSQL38."]");
$objResult38 = mysql_fetch_array($objQuery38);
?>
<?
//วันพุธคาบที่ 8
$strSQL39 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '8' ";
$objQuery39 = mysql_query($strSQL39) or die ("Error Query [".$strSQL39."]");
$objResult39 = mysql_fetch_array($objQuery39);
?>
<?
//วันพุธคาบที่ 9
$strSQL40 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '9' ";
$objQuery40 = mysql_query($strSQL40) or die ("Error Query [".$strSQL40."]");
$objResult40 = mysql_fetch_array($objQuery40);
?>
<?
//วันพุธคาบที่ 10
$strSQL41 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '10' ";
$objQuery41 = mysql_query($strSQL41) or die ("Error Query [".$strSQL41."]");
$objResult41 = mysql_fetch_array($objQuery41);
?>
<?
//วันพุธคาบที่ 11
$strSQL42 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '11' ";
$objQuery42 = mysql_query($strSQL42) or die ("Error Query [".$strSQL42."]");
$objResult42 = mysql_fetch_array($objQuery42);
?>
<?
//วันพุธคาบที่ 12
$strSQL43 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '12' ";
$objQuery43 = mysql_query($strSQL43) or die ("Error Query [".$strSQL43."]");
$objResult43 = mysql_fetch_array($objQuery43);
?>
<?
//วันพุธคาบที่ 13
$strSQL44 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '13' ";
$objQuery44 = mysql_query($strSQL44) or die ("Error Query [".$strSQL44."]");
$objResult44 = mysql_fetch_array($objQuery44);
?>
<?
//วันพุธคาบที่ 14
$strSQL45 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '14' ";
$objQuery45 = mysql_query($strSQL45) or die ("Error Query [".$strSQL45."]");
$objResult45 = mysql_fetch_array($objQuery45);
?>
<?
//วันพุธคาบที่ 15
$strSQL46 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '15' ";
$objQuery46 = mysql_query($strSQL46) or die ("Error Query [".$strSQL46."]");
$objResult46 = mysql_fetch_array($objQuery46);
?>
<?
//วันพฤหัสคาบที่ 1
$strSQL47 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '1' ";
$objQuery47 = mysql_query($strSQL47) or die ("Error Query [".$strSQL47."]");
$objResult47 = mysql_fetch_array($objQuery47);
?>
<?
//วันพฤหัสคาบที่ 2
$strSQL48 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '2' ";
$objQuery48 = mysql_query($strSQL48) or die ("Error Query [".$strSQL48."]");
$objResult48 = mysql_fetch_array($objQuery48);
?>
<?
//วันพฤหัสคาบที่ 3
$strSQL49 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '3' ";
$objQuery49 = mysql_query($strSQL49) or die ("Error Query [".$strSQL49."]");
$objResult49 = mysql_fetch_array($objQuery49);
?>
<?
//วันพฤหัสคาบที่ 4
$strSQL50 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '4' ";
$objQuery50 = mysql_query($strSQL50) or die ("Error Query [".$strSQL50."]");
$objResult50 = mysql_fetch_array($objQuery50);
?>
<?
//วันพฤหัสคาบที่ 5
$strSQL51 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '5' ";
$objQuery51 = mysql_query($strSQL51) or die ("Error Query [".$strSQL51."]");
$objResult51 = mysql_fetch_array($objQuery51);
?>
<?
//วันพฤหัสคาบที่ 6
$strSQL52 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '6' ";
$objQuery52 = mysql_query($strSQL52) or die ("Error Query [".$strSQL52."]");
$objResult52 = mysql_fetch_array($objQuery52);
?>
<?
//วันพฤหัสคาบที่ 7
$strSQL53 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '7' ";
$objQuery53 = mysql_query($strSQL53) or die ("Error Query [".$strSQL53."]");
$objResult53 = mysql_fetch_array($objQuery53);
?>
<?
//วันพฤหัสคาบที่ 8
$strSQL54 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '8' ";
$objQuery54 = mysql_query($strSQL54) or die ("Error Query [".$strSQL54."]");
$objResult54 = mysql_fetch_array($objQuery54);
?>
<?
//วันพฤหัสคาบที่ 9
$strSQL55 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '9' ";
$objQuery55 = mysql_query($strSQL55) or die ("Error Query [".$strSQL55."]");
$objResult55 = mysql_fetch_array($objQuery55);
?>
<?
//วันพฤหัสคาบที่ 10
$strSQL56 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '10' ";
$objQuery56 = mysql_query($strSQL56) or die ("Error Query [".$strSQL56."]");
$objResult56 = mysql_fetch_array($objQuery56);
?>
<?
//วันพฤหัสคาบที่ 11
$strSQL57 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '11' ";
$objQuery57 = mysql_query($strSQL57) or die ("Error Query [".$strSQL57."]");
$objResult57 = mysql_fetch_array($objQuery57);
?>
<?
//วันพฤหัสคาบที่ 12
$strSQL58 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '12' ";
$objQuery58 = mysql_query($strSQL58) or die ("Error Query [".$strSQL58."]");
$objResult58 = mysql_fetch_array($objQuery58);
?>
<?
//วันพฤหัสคาบที่ 13
$strSQL59 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '13' ";
$objQuery59 = mysql_query($strSQL59) or die ("Error Query [".$strSQL59."]");
$objResult59 = mysql_fetch_array($objQuery59);
?>
<?
//วันพฤหัสคาบที่ 14
$strSQL60 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '14' ";
$objQuery60 = mysql_query($strSQL60) or die ("Error Query [".$strSQL60."]");
$objResult60 = mysql_fetch_array($objQuery60);
?>
<?
//วันพฤหัสคาบที่ 15
$strSQL61 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '15' ";
$objQuery61 = mysql_query($strSQL61) or die ("Error Query [".$strSQL61."]");
$objResult61 = mysql_fetch_array($objQuery61);
?>
<?
//วันศุกร์คาบที่ 1
$strSQL62 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '1' ";
$objQuery62 = mysql_query($strSQL62) or die ("Error Query [".$strSQL62."]");
$objResult62 = mysql_fetch_array($objQuery62);
?>
<?
//วันศุกร์คาบที่ 2
$strSQL63 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '2' ";
$objQuery63 = mysql_query($strSQL63) or die ("Error Query [".$strSQL63."]");
$objResult63 = mysql_fetch_array($objQuery63);
?>
<?
//วันศุกร์คาบที่ 3
$strSQL64 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '3' ";
$objQuery64 = mysql_query($strSQL64) or die ("Error Query [".$strSQL64."]");
$objResult64 = mysql_fetch_array($objQuery64);
?>
<?
//วันศุกร์คาบที่ 4
$strSQL65 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '4' ";
$objQuery65 = mysql_query($strSQL65) or die ("Error Query [".$strSQL65."]");
$objResult65 = mysql_fetch_array($objQuery65);
?>
<?
//วันศุกร์คาบที่ 5
$strSQL66 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '5' ";
$objQuery66 = mysql_query($strSQL66) or die ("Error Query [".$strSQL66."]");
$objResult66 = mysql_fetch_array($objQuery66);
?>
<?
//วันศุกร์คาบที่ 6
$strSQL67 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '6' ";
$objQuery67 = mysql_query($strSQL67) or die ("Error Query [".$strSQL67."]");
$objResult67 = mysql_fetch_array($objQuery67);
?>
<?
//วันศุกร์คาบที่ 7
$strSQL68 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '7' ";
$objQuery68 = mysql_query($strSQL68) or die ("Error Query [".$strSQL68."]");
$objResult68 = mysql_fetch_array($objQuery68);
?>
<?
//วันศุกร์คาบที่ 8
$strSQL69 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '8' ";
$objQuery69 = mysql_query($strSQL69) or die ("Error Query [".$strSQL69."]");
$objResult69 = mysql_fetch_array($objQuery69);
?>
<?
//วันศุกร์คาบที่ 9
$strSQL70 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '9' ";
$objQuery70 = mysql_query($strSQL70) or die ("Error Query [".$strSQL70."]");
$objResult70 = mysql_fetch_array($objQuery70);
?>
<?
//วันศุกร์คาบที่ 10
$strSQL71 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '10' ";
$objQuery71 = mysql_query($strSQL71) or die ("Error Query [".$strSQL71."]");
$objResult71 = mysql_fetch_array($objQuery71);
?>
<?
//วันศุกร์คาบที่ 11
$strSQL72 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '11' ";
$objQuery72 = mysql_query($strSQL72) or die ("Error Query [".$strSQL72."]");
$objResult72 = mysql_fetch_array($objQuery72);
?>
<?
//วันศุกร์คาบที่ 12
$strSQL73 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '12' ";
$objQuery73 = mysql_query($strSQL73) or die ("Error Query [".$strSQL73."]");
$objResult73 = mysql_fetch_array($objQuery73);
?>
<?
//วันศุกร์คาบที่ 13
$strSQL74 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '13' ";
$objQuery74 = mysql_query($strSQL74) or die ("Error Query [".$strSQL74."]");
$objResult74 = mysql_fetch_array($objQuery74);
?>
<?
//วันศุกร์คาบที่ 14
$strSQL75 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '14' ";
$objQuery75 = mysql_query($strSQL75) or die ("Error Query [".$strSQL75."]");
$objResult75 = mysql_fetch_array($objQuery75);
?>
<?
//วันศุกร์คาบที่ 15
$strSQL76 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '15' ";
$objQuery76 = mysql_query($strSQL76) or die ("Error Query [".$strSQL76."]");
$objResult76 = mysql_fetch_array($objQuery76);
?>
<?
//วันเสาร์คาบที่ 1
$strSQL77 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '1' ";
$objQuery77 = mysql_query($strSQL77) or die ("Error Query [".$strSQL77."]");
$objResult77 = mysql_fetch_array($objQuery77);
?>
<?
//วันเสาร์คาบที่ 2
$strSQL78 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '2' ";
$objQuery78 = mysql_query($strSQL78) or die ("Error Query [".$strSQL78."]");
$objResult78 = mysql_fetch_array($objQuery78);
?>
<?
//วันเสาร์คาบที่ 3
$strSQL79 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '3' ";
$objQuery79 = mysql_query($strSQL79) or die ("Error Query [".$strSQL79."]");
$objResult79 = mysql_fetch_array($objQuery79);
?>
<?
//วันเสาร์คาบที่ 4
$strSQL80 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '4' ";
$objQuery80 = mysql_query($strSQL80) or die ("Error Query [".$strSQL80."]");
$objResult80 = mysql_fetch_array($objQuery80);
?>
<?
//วันเสาร์คาบที่ 5
$strSQL81 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '5' ";
$objQuery81 = mysql_query($strSQL81) or die ("Error Query [".$strSQL81."]");
$objResult81 = mysql_fetch_array($objQuery81);
?>
<?
//วันเสาร์คาบที่ 6
$strSQL82 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '6' ";
$objQuery82 = mysql_query($strSQL82) or die ("Error Query [".$strSQL82."]");
$objResult82 = mysql_fetch_array($objQuery82);
?>
<?
//วันเสาร์คาบที่ 7
$strSQL83 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '7' ";
$objQuery83 = mysql_query($strSQL83) or die ("Error Query [".$strSQL83."]");
$objResult83 = mysql_fetch_array($objQuery83);
?>
<?
//วันเสาร์คาบที่ 8
$strSQL84 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '8' ";
$objQuery84 = mysql_query($strSQL84) or die ("Error Query [".$strSQL84."]");
$objResult84 = mysql_fetch_array($objQuery84);
?>
<?
//วันเสาร์คาบที่ 9
$strSQL85 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '9' ";
$objQuery85 = mysql_query($strSQL85) or die ("Error Query [".$strSQL85."]");
$objResult85 = mysql_fetch_array($objQuery85);
?>
<?
//วันเสาร์คาบที่ 10
$strSQL86 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '10' ";
$objQuery86 = mysql_query($strSQL86) or die ("Error Query [".$strSQL86."]");
$objResult86 = mysql_fetch_array($objQuery86);
?>
<?
//วันเสาร์คาบที่ 11
$strSQL87 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '11' ";
$objQuery87 = mysql_query($strSQL87) or die ("Error Query [".$strSQL87."]");
$objResult87 = mysql_fetch_array($objQuery87);
?>
<?
//วันเสาร์คาบที่ 12
$strSQL88 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '12' ";
$objQuery88 = mysql_query($strSQL88) or die ("Error Query [".$strSQL88."]");
$objResult88 = mysql_fetch_array($objQuery88);
?>
<?
//วันเสาร์คาบที่ 13
$strSQL89 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '13' ";
$objQuery89 = mysql_query($strSQL89) or die ("Error Query [".$strSQL89."]");
$objResult89 = mysql_fetch_array($objQuery89);
?>
<?
//วันเสาร์คาบที่ 14
$strSQL90 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '14' ";
$objQuery90 = mysql_query($strSQL90) or die ("Error Query [".$strSQL90."]");
$objResult90 = mysql_fetch_array($objQuery90);
?>
<?
//วันเสาร์คาบที่ 15
$strSQL91 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '15' ";
$objQuery91 = mysql_query($strSQL91) or die ("Error Query [".$strSQL91."]");
$objResult91 = mysql_fetch_array($objQuery91);
?>
<?
//วันอาทิตย์คาบที่ 1
$strSQL92 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '1' ";
$objQuery92 = mysql_query($strSQL92) or die ("Error Query [".$strSQL92."]");
$objResult92 = mysql_fetch_array($objQuery92);
?>
<?
//วันอาทิตย์คาบที่ 2
$strSQL93 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '2' ";
$objQuery93 = mysql_query($strSQL93) or die ("Error Query [".$strSQL93."]");
$objResult93 = mysql_fetch_array($objQuery93);
?>
<?
//วันอาทิตย์คาบที่ 3
$strSQL94 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '3' ";
$objQuery94 = mysql_query($strSQL94) or die ("Error Query [".$strSQL94."]");
$objResult94 = mysql_fetch_array($objQuery94);
?>
<?
//วันอาทิตย์คาบที่ 4
$strSQL95 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '4' ";
$objQuery95 = mysql_query($strSQL95) or die ("Error Query [".$strSQL95."]");
$objResult95 = mysql_fetch_array($objQuery95);
?>
<?
//วันอาทิตย์คาบที่ 5
$strSQL96 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '5' ";
$objQuery96 = mysql_query($strSQL96) or die ("Error Query [".$strSQL96."]");
$objResult96 = mysql_fetch_array($objQuery96);
?>
<?
//วันอาทิตย์คาบที่ 6
$strSQL97 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '6' ";
$objQuery97 = mysql_query($strSQL97) or die ("Error Query [".$strSQL97."]");
$objResult97 = mysql_fetch_array($objQuery97);
?>
<?
//วันอาทิตย์คาบที่ 7
$strSQL98 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '7' ";
$objQuery98 = mysql_query($strSQL98) or die ("Error Query [".$strSQL98."]");
$objResult98 = mysql_fetch_array($objQuery98);
?>
<?
//วันอาทิตย์คาบที่ 8
$strSQL99 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '8' ";
$objQuery99 = mysql_query($strSQL99) or die ("Error Query [".$strSQL99."]");
$objResult99 = mysql_fetch_array($objQuery99);
?>
<?
//วันอาทิตย์คาบที่ 9
$strSQL100 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '9' ";
$objQuery100 = mysql_query($strSQL100) or die ("Error Query [".$strSQL100."]");
$objResult100 = mysql_fetch_array($objQuery100);
?>
<?
//วันอาทิตย์คาบที่ 10
$strSQL101 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '10' ";
$objQuery101 = mysql_query($strSQL101) or die ("Error Query [".$strSQL101."]");
$objResult101 = mysql_fetch_array($objQuery101);
?>
<?
//วันอาทิตย์คาบที่ 11
$strSQL102 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '11' ";
$objQuery102 = mysql_query($strSQL102) or die ("Error Query [".$strSQL102."]");
$objResult102 = mysql_fetch_array($objQuery102);
?>
<?
//วันอาทิตย์คาบที่ 12
$strSQL103 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '12' ";
$objQuery103 = mysql_query($strSQL103) or die ("Error Query [".$strSQL103."]");
$objResult103 = mysql_fetch_array($objQuery103);
?>
<?
//วันอาทิตย์คาบที่ 13
$strSQL104 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '13' ";
$objQuery104 = mysql_query($strSQL104) or die ("Error Query [".$strSQL104."]");
$objResult104 = mysql_fetch_array($objQuery104);
?>
<?
//วันอาทิตย์คาบที่ 14
$strSQL105 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '14' ";
$objQuery105 = mysql_query($strSQL105) or die ("Error Query [".$strSQL105."]");
$objResult105 = mysql_fetch_array($objQuery105);
?>
<?
//วันอาทิตย์คาบที่ 15
$strSQL106 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '15' ";
$objQuery106 = mysql_query($strSQL106) or die ("Error Query [".$strSQL106."]");
$objResult106 = mysql_fetch_array($objQuery106);
?>
<td align="center" id="<?php echo $i.".".$t?>" bgcolor="<?php echo $bg?>">
</td>
<td align="center" bgcolor="<?php echo $bg?>" colspan="<?php echo $show_data2[tb_col] ?>">
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0">
<tr>
<td width="1%"> </td>
<td>ระบบตรวจสอบตารางเรียน ตารางสอน มหาวิทยาลัยตาปี</td>
<td width="1%"> </td>
</tr>
<tr>
<td width="1%"> </td>
<td><table width="100%" border="0">
<tr>
<td width="12%"> </td>
<td width="12%"> </td>
<td width="12%"> </td>
<td colspan="2" bgcolor="#999999"><div align="center"><strong>ตารางเรียน</strong></div></td>
<td width="12%"> </td>
<td width="12%"> </td>
<td width="12%"> </td>
</tr>
<tr>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"> ภาคเรียนที่
<?=$objResult["timet_term"];?>
</div></td>
<td width="12%"><div align="left"> ปีการศึกษาที่
<?=$objResult["timet_acayear"];?>
</div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
</tr>
<tr>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"> ระดับ ...ปริญญาตรี...</div></td>
<td width="12%"><div align="left"> หลักสูตร
<?=$objResult["course_name"];?>
</div></td>
<td width="12%"><div align="left"> ชั้นปีที่
<?=$objResult["timet_year"];?>
</div></td>
<td colspan="2"><div align="left"> สาขาวิชา
<?=$objResult["sub_name"];?>
</div> <div align="left"></div></td>
<td width="12%"><div align="left"> ภาค
<?=$objResult["timet_prog"];?>
</div></td>
<td width="12%"><div align="left"></div></td>
</tr>
</table></td>
<td width="1%"> </td>
</tr>
<tr>
<td width="1%"> </td>
<td><table width="100%" border="1" cellpadding="1" cellspacing="1">
<tr>
<td width="61" bgcolor="#999999"><div align="center"><strong>วัน/คาบ</strong></div></td>
<td width="60" bgcolor="#999999"><div align="center"><strong>1</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>2</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>3</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>4</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>5</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>6</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>7</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>8</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>9</strong></div></td>
<td width="62" bgcolor="#999999"><div align="center"><strong>10</strong></div></td>
<td width="62" bgcolor="#999999"><div align="center"><strong>11</strong></div></td>
<td width="61" bgcolor="#999999"><div align="center"><strong>12</strong></div></td>
<td width="61" bgcolor="#999999"><div align="center"><strong>13</strong></div></td>
<td width="61" bgcolor="#999999"><div align="center"><strong>14</strong></div></td>
<td width="60" bgcolor="#999999"><div align="center"><strong>15</strong></div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>จันทร์</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center" colspan="<?php echo $show_data2[timet_col] ?>">
<?=$objResult2["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult2["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult2["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult2["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>อังคาร</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["teach_name"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["room_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>พุธ</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>พฤหัสฯ</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["teach_name"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["room_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>ศุกร์</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>เสาร์</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["teach_name"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["room_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>อาทิตย์</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["room_id"];?>
</div></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p></td>
<td width="1%"> </td>
</tr>
<tr>
<td width="1%"> </td>
<td> </td>
<td width="1%"> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
database ที่เก็บตารางนี้ครับ
Code (SQL)
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- ฐานข้อมูล: `projecttimetable`
--
-- --------------------------------------------------------
--
-- Structure for view `q_timetable2`
--
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `q_timetable2` AS select `timetable`.`branch_id` AS `branch_id`,`branch`.`branch_name` AS `branch_name`,`timetable`.`timet_term` AS `timet_term`,`timetable`.`timet_acayear` AS `timet_acayear`,`timetable`.`course_id` AS `course_id`,`timetable`.`timet_year` AS `timet_year`,`timetable`.`timet_prog` AS `timet_prog`,`timetable`.`timet_plan` AS `timet_plan`,`timetable`.`timet_day` AS `timet_day`,`timetable`.`timet_period` AS `timet_period`,`timetable`.`timet_sec` AS `timet_sec`,`timetable`.`teach_id` AS `teach_id`,`timetable`.`room_id` AS `room_id`,`timetable`.`sub_id` AS `sub_id`,`teach`.`teach_name` AS `teach_name`,`course`.`course_name` AS `course_name`,`room`.`room_name` AS `room_name`,`subject`.`sub_name` AS `sub_name`,`faculty`.`faculty_name` AS `faculty_name`,`campus`.`campus_name` AS `campus_name` from (((((((`timetable` join `branch` on((`branch`.`branch_id` = `timetable`.`branch_id`))) join `teach` on(((`timetable`.`teach_id` = `timetable`.`teach_id`) and (`timetable`.`teach_id` = `teach`.`teach_id`)))) join `course` on((`timetable`.`course_id` = `course`.`course_id`))) join `room` on((`timetable`.`room_id` = `room`.`room_id`))) join `subject` on((`timetable`.`sub_id` = `subject`.`sub_id`))) join `faculty` on((`teach`.`faculty_id` = `faculty`.`faculty_id`))) join `campus` on((`room`.`campus_id` = `campus`.`campus_id`)));
--
-- dump ตาราง `q_timetable2`
--
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '2', '3', 'ปกติ', '1', 'จันทร์', '1', 'N1', '1', 'S410', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '2 ปี', 'S410', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '2', '3', 'ปกติ', '1', 'จันทร์', '2', 'N1', '1', 'S410', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '2 ปี', 'S410', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'เสาร์', '6', 'PN10', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'เสาร์', '7', 'PN10', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'เสาร์', '8', 'PN10', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '2', '3', 'ปกติ', '1', 'จันทร์', '3', 'N1', '1', 'S410', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '2 ปี', 'S410', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'อังคาร', '5', 'N1', '1', 'S204', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'อังคาร', '6', 'N1', '1', 'S204', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'อังคาร', '7', 'N1', '1', 'S204', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '11', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '12', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '13', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '14', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '15', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พฤหัส', '6', 'N1', '1', 'S306-S307', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พฤหัส', '7', 'N1', '1', 'S306-S307', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พฤหัส', '8', 'N1', '1', 'S306-S307', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '4', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '5', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '6', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '7', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '5', 'N1', '4', 'S306-S307', 'BC422', 'rrrrrrrrrrrrr', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะวิทยาศาสตร์และเทคโนโลยี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '4', 'N1', '4', 'S306-S307', 'BC422', 'rrrrrrrrrrrrr', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะวิทยาศาสตร์และเทคโนโลยี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '2', 'N1', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '1', 'N1', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
โดยทั้งหมดนี้เป็นคิวรี่ที่เชื่อมต่อกันจากโปรแกรม navicat premium ครับ ซึ่งจะใช้เชื่อมข้อมูลในตารางครับ
|
|
|
|
|
Date :
2014-03-30 12:11:19 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code PHP อันก่อนสงสัยยาวเกินเลยไม่ขึ้นครับ ลองแยก Code PHP กับ DB
Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body,td,th {
font-size: small;
}
</style>
</head>
<body>
<?
include("connectdb.php");
$strSQL = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$objResult = mysql_fetch_array($objQuery);
?>
<?
//วันจันทร์คาบที่ 1
$strSQL2 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '1' ";
$objQuery2 = mysql_query($strSQL2) or die ("Error Query [".$strSQL2."]");
$objResult2 = mysql_fetch_array($objQuery2);
?>
<?
//วันจันทร์คาบที่ 2
$strSQL3 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '2' ";
$objQuery3 = mysql_query($strSQL3) or die ("Error Query [".$strSQL3."]");
$objResult3 = mysql_fetch_array($objQuery3);
?>
<?
//วันจันทร์คาบที่ 3
$strSQL4 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '3' ";
$objQuery4 = mysql_query($strSQL4) or die ("Error Query [".$strSQL4."]");
$objResult4 = mysql_fetch_array($objQuery4);
?>
<?
//วันจันทร์คาบที่ 4
$strSQL5 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '4' ";
$objQuery5 = mysql_query($strSQL5) or die ("Error Query [".$strSQL5."]");
$objResult5 = mysql_fetch_array($objQuery5);
?>
<?
//วันจันทร์คาบที่ 5
$strSQL6 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '5' ";
$objQuery6 = mysql_query($strSQL6) or die ("Error Query [".$strSQL6."]");
$objResult6 = mysql_fetch_array($objQuery6);
?>
<?
//วันจันทร์คาบที่ 6
$strSQL7 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '6' ";
$objQuery7 = mysql_query($strSQL7) or die ("Error Query [".$strSQL7."]");
$objResult7 = mysql_fetch_array($objQuery7);
?>
<?
//วันจันทร์คาบที่ 7
$strSQL8 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '7' ";
$objQuery8 = mysql_query($strSQL8) or die ("Error Query [".$strSQL8."]");
$objResult8 = mysql_fetch_array($objQuery8);
?>
<?
//วันจันทร์คาบที่ 8
$strSQL9 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '8' ";
$objQuery9 = mysql_query($strSQL9) or die ("Error Query [".$strSQL9."]");
$objResult9 = mysql_fetch_array($objQuery9);
?>
<?
//วันจันทร์คาบที่ 9
$strSQL10 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '9' ";
$objQuery10 = mysql_query($strSQL10) or die ("Error Query [".$strSQL10."]");
$objResult10 = mysql_fetch_array($objQuery10);
?>
<?
//วันจันทร์คาบที่ 10
$strSQL11 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '10' ";
$objQuery11 = mysql_query($strSQL11) or die ("Error Query [".$strSQL11."]");
$objResult11 = mysql_fetch_array($objQuery11);
?>
<?
//วันจันทร์คาบที่ 11
$strSQL12 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '11' ";
$objQuery12 = mysql_query($strSQL12) or die ("Error Query [".$strSQL12."]");
$objResult12 = mysql_fetch_array($objQuery12);
?>
<?
//วันจันทร์คาบที่ 12
$strSQL13 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '12' ";
$objQuery13 = mysql_query($strSQL13) or die ("Error Query [".$strSQL13."]");
$objResult13 = mysql_fetch_array($objQuery13);
?>
<?
//วันจันทร์คาบที่ 13
$strSQL14 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '13' ";
$objQuery14 = mysql_query($strSQL14) or die ("Error Query [".$strSQL14."]");
$objResult14 = mysql_fetch_array($objQuery14);
?>
<?
//วันจันทร์คาบที่ 14
$strSQL15 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '14' ";
$objQuery15 = mysql_query($strSQL15) or die ("Error Query [".$strSQL15."]");
$objResult15 = mysql_fetch_array($objQuery15);
?>
<?
//วันจันทร์คาบที่ 15
$strSQL16 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '15' ";
$objQuery16 = mysql_query($strSQL16) or die ("Error Query [".$strSQL16."]");
$objResult16 = mysql_fetch_array($objQuery16);
?>
<?
//วันอังคารคาบที่ 1
$strSQL17 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '1' ";
$objQuery17 = mysql_query($strSQL17) or die ("Error Query1 [".$strSQL17."]");
$objResult17 = mysql_fetch_array($objQuery17);
?>
<?
//วันอังคารคาบที่ 2
$strSQL18 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '2' ";
$objQuery18 = mysql_query($strSQL18) or die ("Error Query2 [".$strSQL18."]");
$objResult18 = mysql_fetch_array($objQuery18);
?>
<?
//วันอังคารคาบที่ 3
$strSQL19 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '3' ";
$objQuery19 = mysql_query($strSQL19) or die ("Error Query3 [".$strSQL19."]");
$objResult19 = mysql_fetch_array($objQuery19);
?>
<?
//วันอังคารคาบที่ 4
$strSQL20 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '4' ";
$objQuery20 = mysql_query($strSQL20) or die ("Error Query4 [".$strSQL20."]");
$objResult20 = mysql_fetch_array($objQuery20);
?>
<?
//วันอังคารคาบที่ 5
$strSQL21 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '5' ";
$objQuery21 = mysql_query($strSQL21) or die ("Error Query5 [".$strSQL21."]");
$objResult21 = mysql_fetch_array($objQuery21);
?>
<?
//วันอังคารคาบที่ 6
$strSQL22 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '6' ";
$objQuery22 = mysql_query($strSQL22) or die ("Error Query6 [".$strSQL22."]");
$objResult22 = mysql_fetch_array($objQuery22);
?>
<?
//วันอังคารคาบที่ 7
$strSQL23 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '7' ";
$objQuery23 = mysql_query($strSQL23) or die ("Error Query7 [".$strSQL23."]");
$objResult23 = mysql_fetch_array($objQuery23);
?>
<?
//วันอังคารคาบที่ 8
$strSQL24 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '8' ";
$objQuery24 = mysql_query($strSQL24) or die ("Error Query8 [".$strSQL24."]");
$objResult24 = mysql_fetch_array($objQuery24);
?>
<?
//วันอังคารคาบที่ 9
$strSQL25 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '9' ";
$objQuery25 = mysql_query($strSQL25) or die ("Error Query9 [".$strSQL25."]");
$objResult25 = mysql_fetch_array($objQuery25);
?>
<?
//วันอังคารคาบที่ 10
$strSQL26 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '10' ";
$objQuery26 = mysql_query($strSQL26) or die ("Error Query10 [".$strSQL26."]");
$objResult26 = mysql_fetch_array($objQuery26);
?>
<?
//วันอังคารคาบที่ 11
$strSQL27 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '11' ";
$objQuery27 = mysql_query($strSQL27) or die ("Error Query11 [".$strSQL27."]");
$objResult27 = mysql_fetch_array($objQuery27);
?>
<?
//วันอังคารคาบที่ 12
$strSQL28 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '12' ";
$objQuery28 = mysql_query($strSQL28) or die ("Error Query12 [".$strSQL28."]");
$objResult28 = mysql_fetch_array($objQuery28);
?>
<?
//วันอังคารคาบที่ 13
$strSQL29 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '13' ";
$objQuery29 = mysql_query($strSQL29) or die ("Error Query13 [".$strSQL29."]");
$objResult29 = mysql_fetch_array($objQuery29);
?>
<?
//วันอังคารคาบที่ 14
$strSQL30 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '14' ";
$objQuery30 = mysql_query($strSQL30) or die ("Error Query14 [".$strSQL30."]");
$objResult30 = mysql_fetch_array($objQuery30);
?>
<?
//วันอังคารคาบที่ 15
$strSQL31 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '15' ";
$objQuery31 = mysql_query($strSQL31) or die ("Error Query15 [".$strSQL31."]");
$objResult31 = mysql_fetch_array($objQuery31);
?>
<?
//วันพุธคาบที่ 1
$strSQL32 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '1' ";
$objQuery32 = mysql_query($strSQL32) or die ("Error Query [".$strSQL32."]");
$objResult32 = mysql_fetch_array($objQuery32);
?>
<?
//วันพุธคาบที่ 2
$strSQL33 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '2' ";
$objQuery33 = mysql_query($strSQL33) or die ("Error Query [".$strSQL33."]");
$objResult33 = mysql_fetch_array($objQuery33);
?>
<?
//วันพุธคาบที่ 3
$strSQL34 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '3' ";
$objQuery34 = mysql_query($strSQL34) or die ("Error Query [".$strSQL34."]");
$objResult34 = mysql_fetch_array($objQuery34);
?>
<?
//วันพุธคาบที่ 4
$strSQL35 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '4' ";
$objQuery35 = mysql_query($strSQL35) or die ("Error Query [".$strSQL35."]");
$objResult35 = mysql_fetch_array($objQuery35);
?>
<?
//วันพุธคาบที่ 5
$strSQL36 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '5' ";
$objQuery36 = mysql_query($strSQL36) or die ("Error Query [".$strSQL36."]");
$objResult36 = mysql_fetch_array($objQuery36);
?>
<?
//วันพุธคาบที่ 6
$strSQL37 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '6' ";
$objQuery37 = mysql_query($strSQL37) or die ("Error Query [".$strSQL37."]");
$objResult37 = mysql_fetch_array($objQuery37);
?>
<?
//วันพุธคาบที่ 7
$strSQL38 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '7' ";
$objQuery38 = mysql_query($strSQL38) or die ("Error Query [".$strSQL38."]");
$objResult38 = mysql_fetch_array($objQuery38);
?>
<?
//วันพุธคาบที่ 8
$strSQL39 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '8' ";
$objQuery39 = mysql_query($strSQL39) or die ("Error Query [".$strSQL39."]");
$objResult39 = mysql_fetch_array($objQuery39);
?>
<?
//วันพุธคาบที่ 9
$strSQL40 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '9' ";
$objQuery40 = mysql_query($strSQL40) or die ("Error Query [".$strSQL40."]");
$objResult40 = mysql_fetch_array($objQuery40);
?>
<?
//วันพุธคาบที่ 10
$strSQL41 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '10' ";
$objQuery41 = mysql_query($strSQL41) or die ("Error Query [".$strSQL41."]");
$objResult41 = mysql_fetch_array($objQuery41);
?>
<?
//วันพุธคาบที่ 11
$strSQL42 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '11' ";
$objQuery42 = mysql_query($strSQL42) or die ("Error Query [".$strSQL42."]");
$objResult42 = mysql_fetch_array($objQuery42);
?>
<?
//วันพุธคาบที่ 12
$strSQL43 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '12' ";
$objQuery43 = mysql_query($strSQL43) or die ("Error Query [".$strSQL43."]");
$objResult43 = mysql_fetch_array($objQuery43);
?>
<?
//วันพุธคาบที่ 13
$strSQL44 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '13' ";
$objQuery44 = mysql_query($strSQL44) or die ("Error Query [".$strSQL44."]");
$objResult44 = mysql_fetch_array($objQuery44);
?>
<?
//วันพุธคาบที่ 14
$strSQL45 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '14' ";
$objQuery45 = mysql_query($strSQL45) or die ("Error Query [".$strSQL45."]");
$objResult45 = mysql_fetch_array($objQuery45);
?>
<?
//วันพุธคาบที่ 15
$strSQL46 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '15' ";
$objQuery46 = mysql_query($strSQL46) or die ("Error Query [".$strSQL46."]");
$objResult46 = mysql_fetch_array($objQuery46);
?>
<?
//วันพฤหัสคาบที่ 1
$strSQL47 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '1' ";
$objQuery47 = mysql_query($strSQL47) or die ("Error Query [".$strSQL47."]");
$objResult47 = mysql_fetch_array($objQuery47);
?>
<?
//วันพฤหัสคาบที่ 2
$strSQL48 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '2' ";
$objQuery48 = mysql_query($strSQL48) or die ("Error Query [".$strSQL48."]");
$objResult48 = mysql_fetch_array($objQuery48);
?>
<?
//วันพฤหัสคาบที่ 3
$strSQL49 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '3' ";
$objQuery49 = mysql_query($strSQL49) or die ("Error Query [".$strSQL49."]");
$objResult49 = mysql_fetch_array($objQuery49);
?>
<?
//วันพฤหัสคาบที่ 4
$strSQL50 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '4' ";
$objQuery50 = mysql_query($strSQL50) or die ("Error Query [".$strSQL50."]");
$objResult50 = mysql_fetch_array($objQuery50);
?>
<?
//วันพฤหัสคาบที่ 5
$strSQL51 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '5' ";
$objQuery51 = mysql_query($strSQL51) or die ("Error Query [".$strSQL51."]");
$objResult51 = mysql_fetch_array($objQuery51);
?>
<?
//วันพฤหัสคาบที่ 6
$strSQL52 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '6' ";
$objQuery52 = mysql_query($strSQL52) or die ("Error Query [".$strSQL52."]");
$objResult52 = mysql_fetch_array($objQuery52);
?>
<?
//วันพฤหัสคาบที่ 7
$strSQL53 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '7' ";
$objQuery53 = mysql_query($strSQL53) or die ("Error Query [".$strSQL53."]");
$objResult53 = mysql_fetch_array($objQuery53);
?>
<?
//วันพฤหัสคาบที่ 8
$strSQL54 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '8' ";
$objQuery54 = mysql_query($strSQL54) or die ("Error Query [".$strSQL54."]");
$objResult54 = mysql_fetch_array($objQuery54);
?>
<?
//วันพฤหัสคาบที่ 9
$strSQL55 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '9' ";
$objQuery55 = mysql_query($strSQL55) or die ("Error Query [".$strSQL55."]");
$objResult55 = mysql_fetch_array($objQuery55);
?>
<?
//วันพฤหัสคาบที่ 10
$strSQL56 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '10' ";
$objQuery56 = mysql_query($strSQL56) or die ("Error Query [".$strSQL56."]");
$objResult56 = mysql_fetch_array($objQuery56);
?>
<?
//วันพฤหัสคาบที่ 11
$strSQL57 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '11' ";
$objQuery57 = mysql_query($strSQL57) or die ("Error Query [".$strSQL57."]");
$objResult57 = mysql_fetch_array($objQuery57);
?>
<?
//วันพฤหัสคาบที่ 12
$strSQL58 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '12' ";
$objQuery58 = mysql_query($strSQL58) or die ("Error Query [".$strSQL58."]");
$objResult58 = mysql_fetch_array($objQuery58);
?>
<?
//วันพฤหัสคาบที่ 13
$strSQL59 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '13' ";
$objQuery59 = mysql_query($strSQL59) or die ("Error Query [".$strSQL59."]");
$objResult59 = mysql_fetch_array($objQuery59);
?>
<?
//วันพฤหัสคาบที่ 14
$strSQL60 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '14' ";
$objQuery60 = mysql_query($strSQL60) or die ("Error Query [".$strSQL60."]");
$objResult60 = mysql_fetch_array($objQuery60);
?>
<?
//วันพฤหัสคาบที่ 15
$strSQL61 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '15' ";
$objQuery61 = mysql_query($strSQL61) or die ("Error Query [".$strSQL61."]");
$objResult61 = mysql_fetch_array($objQuery61);
?>
<?
//วันศุกร์คาบที่ 1
$strSQL62 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '1' ";
$objQuery62 = mysql_query($strSQL62) or die ("Error Query [".$strSQL62."]");
$objResult62 = mysql_fetch_array($objQuery62);
?>
<?
//วันศุกร์คาบที่ 2
$strSQL63 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '2' ";
$objQuery63 = mysql_query($strSQL63) or die ("Error Query [".$strSQL63."]");
$objResult63 = mysql_fetch_array($objQuery63);
?>
<?
//วันศุกร์คาบที่ 3
$strSQL64 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '3' ";
$objQuery64 = mysql_query($strSQL64) or die ("Error Query [".$strSQL64."]");
$objResult64 = mysql_fetch_array($objQuery64);
?>
<?
//วันศุกร์คาบที่ 4
$strSQL65 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '4' ";
$objQuery65 = mysql_query($strSQL65) or die ("Error Query [".$strSQL65."]");
$objResult65 = mysql_fetch_array($objQuery65);
?>
<?
//วันศุกร์คาบที่ 5
$strSQL66 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '5' ";
$objQuery66 = mysql_query($strSQL66) or die ("Error Query [".$strSQL66."]");
$objResult66 = mysql_fetch_array($objQuery66);
?>
<?
//วันศุกร์คาบที่ 6
$strSQL67 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '6' ";
$objQuery67 = mysql_query($strSQL67) or die ("Error Query [".$strSQL67."]");
$objResult67 = mysql_fetch_array($objQuery67);
?>
<?
//วันศุกร์คาบที่ 7
$strSQL68 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '7' ";
$objQuery68 = mysql_query($strSQL68) or die ("Error Query [".$strSQL68."]");
$objResult68 = mysql_fetch_array($objQuery68);
?>
<?
//วันศุกร์คาบที่ 8
$strSQL69 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '8' ";
$objQuery69 = mysql_query($strSQL69) or die ("Error Query [".$strSQL69."]");
$objResult69 = mysql_fetch_array($objQuery69);
?>
<?
//วันศุกร์คาบที่ 9
$strSQL70 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '9' ";
$objQuery70 = mysql_query($strSQL70) or die ("Error Query [".$strSQL70."]");
$objResult70 = mysql_fetch_array($objQuery70);
?>
<?
//วันศุกร์คาบที่ 10
$strSQL71 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '10' ";
$objQuery71 = mysql_query($strSQL71) or die ("Error Query [".$strSQL71."]");
$objResult71 = mysql_fetch_array($objQuery71);
?>
<?
//วันศุกร์คาบที่ 11
$strSQL72 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '11' ";
$objQuery72 = mysql_query($strSQL72) or die ("Error Query [".$strSQL72."]");
$objResult72 = mysql_fetch_array($objQuery72);
?>
<?
//วันศุกร์คาบที่ 12
$strSQL73 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '12' ";
$objQuery73 = mysql_query($strSQL73) or die ("Error Query [".$strSQL73."]");
$objResult73 = mysql_fetch_array($objQuery73);
?>
<?
//วันศุกร์คาบที่ 13
$strSQL74 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '13' ";
$objQuery74 = mysql_query($strSQL74) or die ("Error Query [".$strSQL74."]");
$objResult74 = mysql_fetch_array($objQuery74);
?>
<?
//วันศุกร์คาบที่ 14
$strSQL75 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '14' ";
$objQuery75 = mysql_query($strSQL75) or die ("Error Query [".$strSQL75."]");
$objResult75 = mysql_fetch_array($objQuery75);
?>
<?
//วันศุกร์คาบที่ 15
$strSQL76 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '15' ";
$objQuery76 = mysql_query($strSQL76) or die ("Error Query [".$strSQL76."]");
$objResult76 = mysql_fetch_array($objQuery76);
?>
<?
//วันเสาร์คาบที่ 1
$strSQL77 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '1' ";
$objQuery77 = mysql_query($strSQL77) or die ("Error Query [".$strSQL77."]");
$objResult77 = mysql_fetch_array($objQuery77);
?>
<?
//วันเสาร์คาบที่ 2
$strSQL78 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '2' ";
$objQuery78 = mysql_query($strSQL78) or die ("Error Query [".$strSQL78."]");
$objResult78 = mysql_fetch_array($objQuery78);
?>
<?
//วันเสาร์คาบที่ 3
$strSQL79 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '3' ";
$objQuery79 = mysql_query($strSQL79) or die ("Error Query [".$strSQL79."]");
$objResult79 = mysql_fetch_array($objQuery79);
?>
<?
//วันเสาร์คาบที่ 4
$strSQL80 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '4' ";
$objQuery80 = mysql_query($strSQL80) or die ("Error Query [".$strSQL80."]");
$objResult80 = mysql_fetch_array($objQuery80);
?>
<?
//วันเสาร์คาบที่ 5
$strSQL81 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '5' ";
$objQuery81 = mysql_query($strSQL81) or die ("Error Query [".$strSQL81."]");
$objResult81 = mysql_fetch_array($objQuery81);
?>
<?
//วันเสาร์คาบที่ 6
$strSQL82 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '6' ";
$objQuery82 = mysql_query($strSQL82) or die ("Error Query [".$strSQL82."]");
$objResult82 = mysql_fetch_array($objQuery82);
?>
<?
//วันเสาร์คาบที่ 7
$strSQL83 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '7' ";
$objQuery83 = mysql_query($strSQL83) or die ("Error Query [".$strSQL83."]");
$objResult83 = mysql_fetch_array($objQuery83);
?>
<?
//วันเสาร์คาบที่ 8
$strSQL84 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '8' ";
$objQuery84 = mysql_query($strSQL84) or die ("Error Query [".$strSQL84."]");
$objResult84 = mysql_fetch_array($objQuery84);
?>
<?
//วันเสาร์คาบที่ 9
$strSQL85 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '9' ";
$objQuery85 = mysql_query($strSQL85) or die ("Error Query [".$strSQL85."]");
$objResult85 = mysql_fetch_array($objQuery85);
?>
<?
//วันเสาร์คาบที่ 10
$strSQL86 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '10' ";
$objQuery86 = mysql_query($strSQL86) or die ("Error Query [".$strSQL86."]");
$objResult86 = mysql_fetch_array($objQuery86);
?>
<?
//วันเสาร์คาบที่ 11
$strSQL87 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '11' ";
$objQuery87 = mysql_query($strSQL87) or die ("Error Query [".$strSQL87."]");
$objResult87 = mysql_fetch_array($objQuery87);
?>
<?
//วันเสาร์คาบที่ 12
$strSQL88 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '12' ";
$objQuery88 = mysql_query($strSQL88) or die ("Error Query [".$strSQL88."]");
$objResult88 = mysql_fetch_array($objQuery88);
?>
<?
//วันเสาร์คาบที่ 13
$strSQL89 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '13' ";
$objQuery89 = mysql_query($strSQL89) or die ("Error Query [".$strSQL89."]");
$objResult89 = mysql_fetch_array($objQuery89);
?>
<?
//วันเสาร์คาบที่ 14
$strSQL90 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '14' ";
$objQuery90 = mysql_query($strSQL90) or die ("Error Query [".$strSQL90."]");
$objResult90 = mysql_fetch_array($objQuery90);
?>
<?
//วันเสาร์คาบที่ 15
$strSQL91 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'เสาร์' and timet_period = '15' ";
$objQuery91 = mysql_query($strSQL91) or die ("Error Query [".$strSQL91."]");
$objResult91 = mysql_fetch_array($objQuery91);
?>
<?
//วันอาทิตย์คาบที่ 1
$strSQL92 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '1' ";
$objQuery92 = mysql_query($strSQL92) or die ("Error Query [".$strSQL92."]");
$objResult92 = mysql_fetch_array($objQuery92);
?>
<?
//วันอาทิตย์คาบที่ 2
$strSQL93 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '2' ";
$objQuery93 = mysql_query($strSQL93) or die ("Error Query [".$strSQL93."]");
$objResult93 = mysql_fetch_array($objQuery93);
?>
<?
//วันอาทิตย์คาบที่ 3
$strSQL94 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '3' ";
$objQuery94 = mysql_query($strSQL94) or die ("Error Query [".$strSQL94."]");
$objResult94 = mysql_fetch_array($objQuery94);
?>
<?
//วันอาทิตย์คาบที่ 4
$strSQL95 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '4' ";
$objQuery95 = mysql_query($strSQL95) or die ("Error Query [".$strSQL95."]");
$objResult95 = mysql_fetch_array($objQuery95);
?>
<?
//วันอาทิตย์คาบที่ 5
$strSQL96 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '5' ";
$objQuery96 = mysql_query($strSQL96) or die ("Error Query [".$strSQL96."]");
$objResult96 = mysql_fetch_array($objQuery96);
?>
<?
//วันอาทิตย์คาบที่ 6
$strSQL97 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '6' ";
$objQuery97 = mysql_query($strSQL97) or die ("Error Query [".$strSQL97."]");
$objResult97 = mysql_fetch_array($objQuery97);
?>
<?
//วันอาทิตย์คาบที่ 7
$strSQL98 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '7' ";
$objQuery98 = mysql_query($strSQL98) or die ("Error Query [".$strSQL98."]");
$objResult98 = mysql_fetch_array($objQuery98);
?>
<?
//วันอาทิตย์คาบที่ 8
$strSQL99 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '8' ";
$objQuery99 = mysql_query($strSQL99) or die ("Error Query [".$strSQL99."]");
$objResult99 = mysql_fetch_array($objQuery99);
?>
<?
//วันอาทิตย์คาบที่ 9
$strSQL100 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '9' ";
$objQuery100 = mysql_query($strSQL100) or die ("Error Query [".$strSQL100."]");
$objResult100 = mysql_fetch_array($objQuery100);
?>
<?
//วันอาทิตย์คาบที่ 10
$strSQL101 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '10' ";
$objQuery101 = mysql_query($strSQL101) or die ("Error Query [".$strSQL101."]");
$objResult101 = mysql_fetch_array($objQuery101);
?>
<?
//วันอาทิตย์คาบที่ 11
$strSQL102 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '11' ";
$objQuery102 = mysql_query($strSQL102) or die ("Error Query [".$strSQL102."]");
$objResult102 = mysql_fetch_array($objQuery102);
?>
<?
//วันอาทิตย์คาบที่ 12
$strSQL103 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '12' ";
$objQuery103 = mysql_query($strSQL103) or die ("Error Query [".$strSQL103."]");
$objResult103 = mysql_fetch_array($objQuery103);
?>
<?
//วันอาทิตย์คาบที่ 13
$strSQL104 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '13' ";
$objQuery104 = mysql_query($strSQL104) or die ("Error Query [".$strSQL104."]");
$objResult104 = mysql_fetch_array($objQuery104);
?>
<?
//วันอาทิตย์คาบที่ 14
$strSQL105 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '14' ";
$objQuery105 = mysql_query($strSQL105) or die ("Error Query [".$strSQL105."]");
$objResult105 = mysql_fetch_array($objQuery105);
?>
<?
//วันอาทิตย์คาบที่ 15
$strSQL106 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อาทิตย์' and timet_period = '15' ";
$objQuery106 = mysql_query($strSQL106) or die ("Error Query [".$strSQL106."]");
$objResult106 = mysql_fetch_array($objQuery106);
?>
<td align="center" id="<?php echo $i.".".$t?>" bgcolor="<?php echo $bg?>">
</td>
<td align="center" bgcolor="<?php echo $bg?>" colspan="<?php echo $show_data2[tb_col] ?>">
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0">
<tr>
<td width="1%"> </td>
<td>ระบบตรวจสอบตารางเรียน ตารางสอน มหาวิทยาลัยตาปี</td>
<td width="1%"> </td>
</tr>
<tr>
<td width="1%"> </td>
<td><table width="100%" border="0">
<tr>
<td width="12%"> </td>
<td width="12%"> </td>
<td width="12%"> </td>
<td colspan="2" bgcolor="#999999"><div align="center"><strong>ตารางเรียน</strong></div></td>
<td width="12%"> </td>
<td width="12%"> </td>
<td width="12%"> </td>
</tr>
<tr>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"> ภาคเรียนที่
<?=$objResult["timet_term"];?>
</div></td>
<td width="12%"><div align="left"> ปีการศึกษาที่
<?=$objResult["timet_acayear"];?>
</div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"></div></td>
</tr>
<tr>
<td width="12%"><div align="left"></div></td>
<td width="12%"><div align="left"> ระดับ ...ปริญญาตรี...</div></td>
<td width="12%"><div align="left"> หลักสูตร
<?=$objResult["course_name"];?>
</div></td>
<td width="12%"><div align="left"> ชั้นปีที่
<?=$objResult["timet_year"];?>
</div></td>
<td colspan="2"><div align="left"> สาขาวิชา
<?=$objResult["sub_name"];?>
</div> <div align="left"></div></td>
<td width="12%"><div align="left"> ภาค
<?=$objResult["timet_prog"];?>
</div></td>
<td width="12%"><div align="left"></div></td>
</tr>
</table></td>
<td width="1%"> </td>
</tr>
<tr>
<td width="1%"> </td>
<td><table width="100%" border="1" cellpadding="1" cellspacing="1">
<tr>
<td width="61" bgcolor="#999999"><div align="center"><strong>วัน/คาบ</strong></div></td>
<td width="60" bgcolor="#999999"><div align="center"><strong>1</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>2</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>3</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>4</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>5</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>6</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>7</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>8</strong></div></td>
<td width="59" bgcolor="#999999"><div align="center"><strong>9</strong></div></td>
<td width="62" bgcolor="#999999"><div align="center"><strong>10</strong></div></td>
<td width="62" bgcolor="#999999"><div align="center"><strong>11</strong></div></td>
<td width="61" bgcolor="#999999"><div align="center"><strong>12</strong></div></td>
<td width="61" bgcolor="#999999"><div align="center"><strong>13</strong></div></td>
<td width="61" bgcolor="#999999"><div align="center"><strong>14</strong></div></td>
<td width="60" bgcolor="#999999"><div align="center"><strong>15</strong></div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>จันทร์</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center" colspan="<?php echo $show_data2[timet_col] ?>">
<?=$objResult2["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult2["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult2["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult2["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult3["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult4["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult5["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult6["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult7["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult8["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>อังคาร</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["teach_name"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["room_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>พุธ</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>พฤหัสฯ</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["teach_name"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["room_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>ศุกร์</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult62["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult63["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult64["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult65["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult66["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult67["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult68["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult69["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult70["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult71["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult72["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult73["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult74["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult75["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult76["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>เสาร์</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["teach_name"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult77["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult78["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult79["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult80["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult81["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult82["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult83["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult84["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult85["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult86["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult87["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult88["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult89["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult90["room_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult91["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>อาทิตย์</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["room_id"];?>
</div></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p></td>
<td width="1%"> </td>
</tr>
<tr>
<td width="1%"> </td>
<td> </td>
<td width="1%"> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
|
|
|
|
|
Date :
2014-03-30 12:21:26 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
มันไม่ขึ้นเลยครับ สงสัยยาวไป เดี๋ยวผมแบ่งเป็น 3-4 อันนะครับ แล้วเอาไปต่อกันทั้งหมดมัน 2100 กว่า บรรทัด
Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body,td,th {
font-size: small;
}
</style>
</head>
<body>
<?
include("connectdb.php");
$strSQL = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$objResult = mysql_fetch_array($objQuery);
?>
<?
//วันจันทร์คาบที่ 1
$strSQL2 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '1' ";
$objQuery2 = mysql_query($strSQL2) or die ("Error Query [".$strSQL2."]");
$objResult2 = mysql_fetch_array($objQuery2);
?>
<?
//วันจันทร์คาบที่ 2
$strSQL3 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '2' ";
$objQuery3 = mysql_query($strSQL3) or die ("Error Query [".$strSQL3."]");
$objResult3 = mysql_fetch_array($objQuery3);
?>
<?
//วันจันทร์คาบที่ 3
$strSQL4 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '3' ";
$objQuery4 = mysql_query($strSQL4) or die ("Error Query [".$strSQL4."]");
$objResult4 = mysql_fetch_array($objQuery4);
?>
<?
//วันจันทร์คาบที่ 4
$strSQL5 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '4' ";
$objQuery5 = mysql_query($strSQL5) or die ("Error Query [".$strSQL5."]");
$objResult5 = mysql_fetch_array($objQuery5);
?>
<?
//วันจันทร์คาบที่ 5
$strSQL6 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '5' ";
$objQuery6 = mysql_query($strSQL6) or die ("Error Query [".$strSQL6."]");
$objResult6 = mysql_fetch_array($objQuery6);
?>
<?
//วันจันทร์คาบที่ 6
$strSQL7 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '6' ";
$objQuery7 = mysql_query($strSQL7) or die ("Error Query [".$strSQL7."]");
$objResult7 = mysql_fetch_array($objQuery7);
?>
<?
//วันจันทร์คาบที่ 7
$strSQL8 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '7' ";
$objQuery8 = mysql_query($strSQL8) or die ("Error Query [".$strSQL8."]");
$objResult8 = mysql_fetch_array($objQuery8);
?>
<?
//วันจันทร์คาบที่ 8
$strSQL9 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '8' ";
$objQuery9 = mysql_query($strSQL9) or die ("Error Query [".$strSQL9."]");
$objResult9 = mysql_fetch_array($objQuery9);
?>
<?
//วันจันทร์คาบที่ 9
$strSQL10 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '9' ";
$objQuery10 = mysql_query($strSQL10) or die ("Error Query [".$strSQL10."]");
$objResult10 = mysql_fetch_array($objQuery10);
?>
<?
//วันจันทร์คาบที่ 10
$strSQL11 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '10' ";
$objQuery11 = mysql_query($strSQL11) or die ("Error Query [".$strSQL11."]");
$objResult11 = mysql_fetch_array($objQuery11);
?>
<?
//วันจันทร์คาบที่ 11
$strSQL12 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '11' ";
$objQuery12 = mysql_query($strSQL12) or die ("Error Query [".$strSQL12."]");
$objResult12 = mysql_fetch_array($objQuery12);
?>
<?
//วันจันทร์คาบที่ 12
$strSQL13 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '12' ";
$objQuery13 = mysql_query($strSQL13) or die ("Error Query [".$strSQL13."]");
$objResult13 = mysql_fetch_array($objQuery13);
?>
<?
//วันจันทร์คาบที่ 13
$strSQL14 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '13' ";
$objQuery14 = mysql_query($strSQL14) or die ("Error Query [".$strSQL14."]");
$objResult14 = mysql_fetch_array($objQuery14);
?>
<?
//วันจันทร์คาบที่ 14
$strSQL15 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '14' ";
$objQuery15 = mysql_query($strSQL15) or die ("Error Query [".$strSQL15."]");
$objResult15 = mysql_fetch_array($objQuery15);
?>
<?
//วันจันทร์คาบที่ 15
$strSQL16 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'จันทร์' and timet_period = '15' ";
$objQuery16 = mysql_query($strSQL16) or die ("Error Query [".$strSQL16."]");
$objResult16 = mysql_fetch_array($objQuery16);
?>
<?
//วันอังคารคาบที่ 1
$strSQL17 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '1' ";
$objQuery17 = mysql_query($strSQL17) or die ("Error Query1 [".$strSQL17."]");
$objResult17 = mysql_fetch_array($objQuery17);
?>
<?
//วันอังคารคาบที่ 2
$strSQL18 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '2' ";
$objQuery18 = mysql_query($strSQL18) or die ("Error Query2 [".$strSQL18."]");
$objResult18 = mysql_fetch_array($objQuery18);
?>
<?
//วันอังคารคาบที่ 3
$strSQL19 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '3' ";
$objQuery19 = mysql_query($strSQL19) or die ("Error Query3 [".$strSQL19."]");
$objResult19 = mysql_fetch_array($objQuery19);
?>
<?
//วันอังคารคาบที่ 4
$strSQL20 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '4' ";
$objQuery20 = mysql_query($strSQL20) or die ("Error Query4 [".$strSQL20."]");
$objResult20 = mysql_fetch_array($objQuery20);
?>
<?
//วันอังคารคาบที่ 5
$strSQL21 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '5' ";
$objQuery21 = mysql_query($strSQL21) or die ("Error Query5 [".$strSQL21."]");
$objResult21 = mysql_fetch_array($objQuery21);
?>
<?
//วันอังคารคาบที่ 6
$strSQL22 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '6' ";
$objQuery22 = mysql_query($strSQL22) or die ("Error Query6 [".$strSQL22."]");
$objResult22 = mysql_fetch_array($objQuery22);
?>
<?
//วันอังคารคาบที่ 7
$strSQL23 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '7' ";
$objQuery23 = mysql_query($strSQL23) or die ("Error Query7 [".$strSQL23."]");
$objResult23 = mysql_fetch_array($objQuery23);
?>
<?
//วันอังคารคาบที่ 8
$strSQL24 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '8' ";
$objQuery24 = mysql_query($strSQL24) or die ("Error Query8 [".$strSQL24."]");
$objResult24 = mysql_fetch_array($objQuery24);
?>
<?
//วันอังคารคาบที่ 9
$strSQL25 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '9' ";
$objQuery25 = mysql_query($strSQL25) or die ("Error Query9 [".$strSQL25."]");
$objResult25 = mysql_fetch_array($objQuery25);
?>
<?
//วันอังคารคาบที่ 10
$strSQL26 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '10' ";
$objQuery26 = mysql_query($strSQL26) or die ("Error Query10 [".$strSQL26."]");
$objResult26 = mysql_fetch_array($objQuery26);
?>
<?
//วันอังคารคาบที่ 11
$strSQL27 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '11' ";
$objQuery27 = mysql_query($strSQL27) or die ("Error Query11 [".$strSQL27."]");
$objResult27 = mysql_fetch_array($objQuery27);
?>
<?
//วันอังคารคาบที่ 12
$strSQL28 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '12' ";
$objQuery28 = mysql_query($strSQL28) or die ("Error Query12 [".$strSQL28."]");
$objResult28 = mysql_fetch_array($objQuery28);
?>
<?
//วันอังคารคาบที่ 13
$strSQL29 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '13' ";
$objQuery29 = mysql_query($strSQL29) or die ("Error Query13 [".$strSQL29."]");
$objResult29 = mysql_fetch_array($objQuery29);
?>
<?
//วันอังคารคาบที่ 14
$strSQL30 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '14' ";
$objQuery30 = mysql_query($strSQL30) or die ("Error Query14 [".$strSQL30."]");
$objResult30 = mysql_fetch_array($objQuery30);
?>
<?
//วันอังคารคาบที่ 15
$strSQL31 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'อังคาร' and timet_period = '15' ";
$objQuery31 = mysql_query($strSQL31) or die ("Error Query15 [".$strSQL31."]");
$objResult31 = mysql_fetch_array($objQuery31);
?>
<?
//วันพุธคาบที่ 1
$strSQL32 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '1' ";
$objQuery32 = mysql_query($strSQL32) or die ("Error Query [".$strSQL32."]");
$objResult32 = mysql_fetch_array($objQuery32);
?>
<?
//วันพุธคาบที่ 2
$strSQL33 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '2' ";
$objQuery33 = mysql_query($strSQL33) or die ("Error Query [".$strSQL33."]");
$objResult33 = mysql_fetch_array($objQuery33);
?>
<?
//วันพุธคาบที่ 3
$strSQL34 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '3' ";
$objQuery34 = mysql_query($strSQL34) or die ("Error Query [".$strSQL34."]");
$objResult34 = mysql_fetch_array($objQuery34);
?>
<?
//วันพุธคาบที่ 4
$strSQL35 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '4' ";
$objQuery35 = mysql_query($strSQL35) or die ("Error Query [".$strSQL35."]");
$objResult35 = mysql_fetch_array($objQuery35);
?>
<?
//วันพุธคาบที่ 5
$strSQL36 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '5' ";
$objQuery36 = mysql_query($strSQL36) or die ("Error Query [".$strSQL36."]");
$objResult36 = mysql_fetch_array($objQuery36);
?>
<?
//วันพุธคาบที่ 6
$strSQL37 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '6' ";
$objQuery37 = mysql_query($strSQL37) or die ("Error Query [".$strSQL37."]");
$objResult37 = mysql_fetch_array($objQuery37);
?>
<?
//วันพุธคาบที่ 7
$strSQL38 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '7' ";
$objQuery38 = mysql_query($strSQL38) or die ("Error Query [".$strSQL38."]");
$objResult38 = mysql_fetch_array($objQuery38);
?>
<?
//วันพุธคาบที่ 8
$strSQL39 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '8' ";
$objQuery39 = mysql_query($strSQL39) or die ("Error Query [".$strSQL39."]");
$objResult39 = mysql_fetch_array($objQuery39);
?>
<?
//วันพุธคาบที่ 9
$strSQL40 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '9' ";
$objQuery40 = mysql_query($strSQL40) or die ("Error Query [".$strSQL40."]");
$objResult40 = mysql_fetch_array($objQuery40);
?>
<?
//วันพุธคาบที่ 10
$strSQL41 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '10' ";
$objQuery41 = mysql_query($strSQL41) or die ("Error Query [".$strSQL41."]");
$objResult41 = mysql_fetch_array($objQuery41);
?>
<?
//วันพุธคาบที่ 11
$strSQL42 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '11' ";
$objQuery42 = mysql_query($strSQL42) or die ("Error Query [".$strSQL42."]");
$objResult42 = mysql_fetch_array($objQuery42);
?>
<?
//วันพุธคาบที่ 12
$strSQL43 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '12' ";
$objQuery43 = mysql_query($strSQL43) or die ("Error Query [".$strSQL43."]");
$objResult43 = mysql_fetch_array($objQuery43);
?>
<?
//วันพุธคาบที่ 13
$strSQL44 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '13' ";
$objQuery44 = mysql_query($strSQL44) or die ("Error Query [".$strSQL44."]");
$objResult44 = mysql_fetch_array($objQuery44);
?>
<?
//วันพุธคาบที่ 14
$strSQL45 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '14' ";
$objQuery45 = mysql_query($strSQL45) or die ("Error Query [".$strSQL45."]");
$objResult45 = mysql_fetch_array($objQuery45);
?>
<?
//วันพุธคาบที่ 15
$strSQL46 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พุธ' and timet_period = '15' ";
$objQuery46 = mysql_query($strSQL46) or die ("Error Query [".$strSQL46."]");
$objResult46 = mysql_fetch_array($objQuery46);
?>
<?
//วันพฤหัสคาบที่ 1
$strSQL47 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '1' ";
$objQuery47 = mysql_query($strSQL47) or die ("Error Query [".$strSQL47."]");
$objResult47 = mysql_fetch_array($objQuery47);
?>
<?
//วันพฤหัสคาบที่ 2
$strSQL48 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '2' ";
$objQuery48 = mysql_query($strSQL48) or die ("Error Query [".$strSQL48."]");
$objResult48 = mysql_fetch_array($objQuery48);
?>
<?
//วันพฤหัสคาบที่ 3
$strSQL49 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '3' ";
$objQuery49 = mysql_query($strSQL49) or die ("Error Query [".$strSQL49."]");
$objResult49 = mysql_fetch_array($objQuery49);
?>
<?
//วันพฤหัสคาบที่ 4
$strSQL50 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '4' ";
$objQuery50 = mysql_query($strSQL50) or die ("Error Query [".$strSQL50."]");
$objResult50 = mysql_fetch_array($objQuery50);
?>
<?
//วันพฤหัสคาบที่ 5
$strSQL51 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '5' ";
$objQuery51 = mysql_query($strSQL51) or die ("Error Query [".$strSQL51."]");
$objResult51 = mysql_fetch_array($objQuery51);
?>
<?
//วันพฤหัสคาบที่ 6
$strSQL52 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '6' ";
$objQuery52 = mysql_query($strSQL52) or die ("Error Query [".$strSQL52."]");
$objResult52 = mysql_fetch_array($objQuery52);
?>
<?
//วันพฤหัสคาบที่ 7
$strSQL53 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '7' ";
$objQuery53 = mysql_query($strSQL53) or die ("Error Query [".$strSQL53."]");
$objResult53 = mysql_fetch_array($objQuery53);
?>
<?
//วันพฤหัสคาบที่ 8
$strSQL54 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '8' ";
$objQuery54 = mysql_query($strSQL54) or die ("Error Query [".$strSQL54."]");
$objResult54 = mysql_fetch_array($objQuery54);
?>
<?
//วันพฤหัสคาบที่ 9
$strSQL55 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '9' ";
$objQuery55 = mysql_query($strSQL55) or die ("Error Query [".$strSQL55."]");
$objResult55 = mysql_fetch_array($objQuery55);
?>
<?
//วันพฤหัสคาบที่ 10
$strSQL56 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '10' ";
$objQuery56 = mysql_query($strSQL56) or die ("Error Query [".$strSQL56."]");
$objResult56 = mysql_fetch_array($objQuery56);
?>
<?
//วันพฤหัสคาบที่ 11
$strSQL57 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '11' ";
$objQuery57 = mysql_query($strSQL57) or die ("Error Query [".$strSQL57."]");
$objResult57 = mysql_fetch_array($objQuery57);
?>
<?
//วันพฤหัสคาบที่ 12
$strSQL58 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '12' ";
$objQuery58 = mysql_query($strSQL58) or die ("Error Query [".$strSQL58."]");
$objResult58 = mysql_fetch_array($objQuery58);
?>
<?
//วันพฤหัสคาบที่ 13
$strSQL59 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '13' ";
$objQuery59 = mysql_query($strSQL59) or die ("Error Query [".$strSQL59."]");
$objResult59 = mysql_fetch_array($objQuery59);
?>
<?
//วันพฤหัสคาบที่ 14
$strSQL60 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '14' ";
$objQuery60 = mysql_query($strSQL60) or die ("Error Query [".$strSQL60."]");
$objResult60 = mysql_fetch_array($objQuery60);
?>
<?
//วันพฤหัสคาบที่ 15
$strSQL61 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'พฤหัส' and timet_period = '15' ";
$objQuery61 = mysql_query($strSQL61) or die ("Error Query [".$strSQL61."]");
$objResult61 = mysql_fetch_array($objQuery61);
?>
<?
//วันศุกร์คาบที่ 1
$strSQL62 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '1' ";
$objQuery62 = mysql_query($strSQL62) or die ("Error Query [".$strSQL62."]");
$objResult62 = mysql_fetch_array($objQuery62);
?>
<?
//วันศุกร์คาบที่ 2
$strSQL63 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '2' ";
$objQuery63 = mysql_query($strSQL63) or die ("Error Query [".$strSQL63."]");
$objResult63 = mysql_fetch_array($objQuery63);
?>
<?
//วันศุกร์คาบที่ 3
$strSQL64 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '3' ";
$objQuery64 = mysql_query($strSQL64) or die ("Error Query [".$strSQL64."]");
$objResult64 = mysql_fetch_array($objQuery64);
?>
<?
//วันศุกร์คาบที่ 4
$strSQL65 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '4' ";
$objQuery65 = mysql_query($strSQL65) or die ("Error Query [".$strSQL65."]");
$objResult65 = mysql_fetch_array($objQuery65);
?>
<?
//วันศุกร์คาบที่ 5
$strSQL66 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '5' ";
$objQuery66 = mysql_query($strSQL66) or die ("Error Query [".$strSQL66."]");
$objResult66 = mysql_fetch_array($objQuery66);
?>
<?
//วันศุกร์คาบที่ 6
$strSQL67 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '6' ";
$objQuery67 = mysql_query($strSQL67) or die ("Error Query [".$strSQL67."]");
$objResult67 = mysql_fetch_array($objQuery67);
?>
<?
//วันศุกร์คาบที่ 7
$strSQL68 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '7' ";
$objQuery68 = mysql_query($strSQL68) or die ("Error Query [".$strSQL68."]");
$objResult68 = mysql_fetch_array($objQuery68);
?>
<?
//วันศุกร์คาบที่ 8
$strSQL69 = "SELECT * FROM q_timetable2 WHERE branch_id = '1' and timet_year ='1' and timet_term = '3' and timet_acayear = '2557' and timet_day = 'ศุกร์' and timet_period = '8' ";
$objQuery69 = mysql_query($strSQL69) or die ("Error Query [".$strSQL69."]");
$objResult69 = mysql_fetch_array($objQuery69);
?>
|
|
|
|
|
Date :
2014-03-30 12:25:05 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code อันที่ 3
Code (PHP)
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult9["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult10["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult11["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult12["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult13["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult14["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult15["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult16["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>อังคาร</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["teach_name"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["teach_name"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult17["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult18["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult19["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult20["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult21["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult22["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult23["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult24["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult25["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult26["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult27["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult28["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult29["room_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult30["room_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult31["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>พุธ</strong></div></td>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult32["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult33["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult34["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult35["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult36["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult37["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult38["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult39["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult40["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult41["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult42["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult43["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult44["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult45["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult46["room_id"];?>
</div></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#999999"><div align="center"><strong>พฤหัสฯ</strong></div></td>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["timet_sec"];?>
</div></td>
<td width="59" bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#C1C1C1"><div align="center">
<?=$objResult47["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult48["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult49["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult50["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult51["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult52["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult53["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult54["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult55["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult56["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult57["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult58["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult59["sub_id"];?>
</div></td>
<td bgcolor="#C1C1C1"><div align="center">
<?=$objResult60["sub_id"];?>
</div></td>
<td width="60" bgcolor="#C1C1C1"><div align="center">
<?=$objResult61["sub_id"];?>
</div></td>
</tr>
|
|
|
|
|
Date :
2014-03-30 12:35:59 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อันสุดท้ายครับ
Code (PHP)
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["timet_sec"];?>
</div></td>
<td width="62" bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["timet_sec"];?>
</div></td>
<td width="61" bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["timet_sec"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["timet_sec"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["sub_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["sub_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["sub_id"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["teach_name"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["teach_name"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["teach_name"];?>
</div></td>
</tr>
<tr>
<td width="60" height="20" bgcolor="#FFFFFF"><div align="center">
<?=$objResult92["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult93["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult94["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult95["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult96["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult97["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult98["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult99["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult100["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult101["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult102["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult103["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult104["room_id"];?>
</div></td>
<td bgcolor="#FFFFFF"><div align="center">
<?=$objResult105["room_id"];?>
</div></td>
<td width="60" bgcolor="#FFFFFF"><div align="center">
<?=$objResult106["room_id"];?>
</div></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p></td>
<td width="1%"> </td>
</tr>
<tr>
<td width="1%"> </td>
<td> </td>
<td width="1%"> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
</body>
</html>
|
|
|
|
|
Date :
2014-03-30 12:50:47 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อันนี้เป็น Code DB เก็บข้อมูลเป็นคิวรี่ โดยใช้โปรแกรม navicat premium ครับ
Code
-- phpMyAdmin SQL Dump
-- version 2.10.3
-- http://www.phpmyadmin.net
--
-- โฮสต์: localhost
-- เวลาในการสร้าง:
-- รุ่นของเซิร์ฟเวอร์: 5.0.51
-- รุ่นของ PHP: 5.2.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- ฐานข้อมูล: `projecttimetable`
--
-- --------------------------------------------------------
--
-- Structure for view `q_timetable2`
--
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `q_timetable2` AS select `timetable`.`branch_id` AS `branch_id`,`branch`.`branch_name` AS `branch_name`,`timetable`.`timet_term` AS `timet_term`,`timetable`.`timet_acayear` AS `timet_acayear`,`timetable`.`course_id` AS `course_id`,`timetable`.`timet_year` AS `timet_year`,`timetable`.`timet_prog` AS `timet_prog`,`timetable`.`timet_plan` AS `timet_plan`,`timetable`.`timet_day` AS `timet_day`,`timetable`.`timet_period` AS `timet_period`,`timetable`.`timet_sec` AS `timet_sec`,`timetable`.`teach_id` AS `teach_id`,`timetable`.`room_id` AS `room_id`,`timetable`.`sub_id` AS `sub_id`,`teach`.`teach_name` AS `teach_name`,`course`.`course_name` AS `course_name`,`room`.`room_name` AS `room_name`,`subject`.`sub_name` AS `sub_name`,`faculty`.`faculty_name` AS `faculty_name`,`campus`.`campus_name` AS `campus_name` from (((((((`timetable` join `branch` on((`branch`.`branch_id` = `timetable`.`branch_id`))) join `teach` on(((`timetable`.`teach_id` = `timetable`.`teach_id`) and (`timetable`.`teach_id` = `teach`.`teach_id`)))) join `course` on((`timetable`.`course_id` = `course`.`course_id`))) join `room` on((`timetable`.`room_id` = `room`.`room_id`))) join `subject` on((`timetable`.`sub_id` = `subject`.`sub_id`))) join `faculty` on((`teach`.`faculty_id` = `faculty`.`faculty_id`))) join `campus` on((`room`.`campus_id` = `campus`.`campus_id`)));
--
-- dump ตาราง `q_timetable2`
--
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '2', '3', 'ปกติ', '1', 'จันทร์', '1', 'N1', '1', 'S410', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '2 ปี', 'S410', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '2', '3', 'ปกติ', '1', 'จันทร์', '2', 'N1', '1', 'S410', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '2 ปี', 'S410', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'เสาร์', '6', 'PN10', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'เสาร์', '7', 'PN10', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'เสาร์', '8', 'PN10', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '2', '3', 'ปกติ', '1', 'จันทร์', '3', 'N1', '1', 'S410', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '2 ปี', 'S410', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'อังคาร', '5', 'N1', '1', 'S204', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'อังคาร', '6', 'N1', '1', 'S204', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'อังคาร', '7', 'N1', '1', 'S204', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '11', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '12', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '13', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '14', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พุธ', '15', 'N1', '1', 'S204', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S204', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พฤหัส', '6', 'N1', '1', 'S306-S307', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พฤหัส', '7', 'N1', '1', 'S306-S307', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'พฤหัส', '8', 'N1', '1', 'S306-S307', 'BC422', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '4', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '5', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '6', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2556', '1', '1', 'ปกติ', '1', 'จันทร์', '7', 'N1', '1', '1200000', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', '1200000', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตพุนพิน');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '5', 'N1', '4', 'S306-S307', 'BC422', 'rrrrrrrrrrrrr', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะวิทยาศาสตร์และเทคโนโลยี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '4', 'N1', '4', 'S306-S307', 'BC422', 'rrrrrrrrrrrrr', '4 ปี', 'S306-S307', 'โครงงานคอมฯ', 'คณะวิทยาศาสตร์และเทคโนโลยี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '2', 'N1', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
INSERT INTO `q_timetable2` VALUES ('1', 'บัญชี', '3', '2557', '1', '1', 'ปกติ', '1', 'จันทร์', '1', 'N1', '1', 'S202', '000 3103', 'นารีรัตน์ ประดิษฐ์สาร ', '4 ปี', 'S202', 'พื้นฐานการใช้ภาษาอังกฤษ', 'คณะบัญชี', 'วิทยาเขตเมือง');
|
|
|
|
|
Date :
2014-03-30 12:53:41 |
By :
peerapat seffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
วิธีคิดต่อให้ยาวแค่ไหนมันก็ได้แค่ คำชมมีความพยายาม แต่เบื้องหลังคำชมนั้นมันคือ "คิดมาก/เพ้อเจ้อ"
และมันไม่หลงเหลือความหวังอะไรเลย? ครับ
จริงฯแล้วผมใช้แค่ 3 บรรทัด
<html> /*ตารางอะไร?*/
xx-xx-xxxx
</html>
|
|
|
|
|
Date :
2014-03-30 13:05:52 |
By :
love9713 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"คิดมาก/เพ้อเจ้อ" อันนี้นี่หนี้หมายถึง ตัวของกระผมครับ ไม่ใช่คุณ แน่นอนครับ (100%)
|
|
|
|
|
Date :
2014-03-30 13:21:53 |
By :
love9713 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ผมว่าโค้ดมันลูกทุ่งมากๆ ตรงๆ ทื่อๆ ขาดประสิทธิภาพ เห็นแล้วมึนครับ
ผมคงไม่แก้ไขล่ะครับ ต้องเขียนใหม่อย่างเดียวเท่านั้น
|
|
|
|
|
Date :
2014-03-30 13:22:18 |
By :
sakuraei |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|