='95' and substr($result[0],6,2)<='99' and substr($result[0],0,5)!='01372' =========================================== */ include "conn.php"; //echo $times; //print_r($_SESSION); // *************************************************** ref table if($_SESSION["campus"]=='C'){ $tblRegister="csc_register"; $tblAll_course="csc_all_course"; $tblTeacher="csc_teacher"; $tblAdvisor="csc_advisor"; $tblRegister="csc_register"; $tblPermit_code="csc_permit_code9599"; }else{ $tblRegister="register"; $tblAll_course="all_course"; $tblTeacher="teacher"; $tblAdvisor="advisor"; $tblRegister="register"; $tblPermit_code="permit_code9599"; } // *************************************************** ref table unset($check); ?> ระบบประเมินการเรียนการสอน
=$start_date and $curr_date<=$end_date) ?>
 

'นิสิตประเมินผลการสอนของอาจารย์' , 'en' => 'Student\'s Evaluation of Instructor' , '' =>'นิสิตประเมินผลการสอนของอาจารย์'); $arr_typeform_2 = array('th' =>'อาจารย์ประเมินตนเอง' , 'en' => 'Instructor\'s Self-Evaluation' , '' =>'อาจารย์ประเมินตนเอง'); $arr_typeform_3 = array('th' =>'นิสิตประเมินการเรียนของตนเอง' , 'en' => 'Student\'s Self-Evaluation' , '' =>'นิสิตประเมินการเรียนของตนเอง'); $arr_typeform_4 = array('th' =>'นิสิตประเมินอาจารย์ที่ปรึกษา' , 'en' => 'Student\'s Evaluation of Advisor', '' =>'นิสิตประเมินอาจารย์ที่ปรึกษา'); switch ($type_form) { case '1':{ echo $arr_typeform_1[$_SESSION["lang"]]; break;} case '2':{ echo $arr_typeform_2[$_SESSION["lang"]]; break;} case '3':{ echo $arr_typeform_3[$_SESSION["lang"]]; break;} case '4':{ echo $arr_typeform_4[$_SESSION["lang"]]; break;} } unset($arr_typeform_1,$arr_typeform_2,$arr_typeform_3,$arr_typeform_4); ?>
"ภาคต้น" , "en" => "First Semester","" => "ภาคต้น"); $arr_sem_2 = array("th" => "ภาคปลาย" , "en" => "Second Semester","" => "ภาคปลาย" ); $arr_sem_3 = array("th" => "เทอมสาม" , "en" => "Third Semester" , "" => "เทอมสาม"); $arr_sem_0 = array("th" => "ภาคฤดูร้อน" , "en" => "Summer Semester", "" => "ภาคฤดูร้อน"); switch ($toSem) { case '1':{ echo $arr_sem_1[$_SESSION["lang"]]; break;} case '2':{ echo $arr_sem_2[$_SESSION["lang"]]; break;} case '3':{ echo $arr_sem_3[$_SESSION["lang"]]; break;} case '0':{ echo $arr_sem_4[$_SESSION["lang"]]; break;} } unset($arr_sem_1,$arr_sem_2,$arr_sem_3,$arr_sem_4); $arr_times = array("th" => "ครั้งที่  ".$times."" , "en" =>"".$times." th" , "" => "ครั้งที่  ".$times."" ); ?> ประจำปีการศึกษา 25  


0 and $result[3]==0) { $sql="select a.first_name,a.last_name,a.advisor_id,a.efirst_name,a.elast_name from teacher t,advisor a where"; $sql="$sql t.advisor_id=a.advisor_id "; $sql="$sql and t.yr='$toYear2' and t.semester='$toSem'"; $sql="$sql and t.q_code=$result[0] and q_sec=$result[2] and q_type='1' "; $cn_dbuLec=ora_open($fn); $pn_uLec=ora_parse($cn_dbuLec,$sql); $rn_uLec=ora_exec($cn_dbuLec); //echo $sql; $k=0; $Teacher_Teach=false; while(ora_fetch_into($cn_dbuLec,&$resultLec)) { $i++; $Teacher_Teach=true; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน // $sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='1' and section=$result[2] and advisor_id='$resultLec[2]' "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where a_yr='$toYear2' and a_semester='$toSem' and c.type_form=$type_form and cs_Code='$result[0]' and std_id='$std_id' and advisor_id='$resultLec[2]' and type_section='1' and section=$result[2] and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } if(!$Teacher_Teach) { $i++; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน // $sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='1' and section=$result[2] and advisor_id is null "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where a_yr='$toYear2' and a_semester='$toSem' and c.type_form=$type_form and cs_code='$result[0]' and std_id='$std_id' and type_section='1' and section=$result[2] and advisor_id is null and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } ora_close($cn_dbuLec); } //หมู่เรียนปฏิบัติอย่างเดียว else if ($result[2]==0 and $result[3]>0) { $sql="select a.first_name,a.last_name,a.advisor_id from teacher t,advisor a where"; $sql="$sql t.advisor_id=a.advisor_id "; $sql="$sql and t.yr='$toYear2' and t.semester='$toSem'"; $sql="$sql and t.q_code=$result[0] and q_sec=$result[3] and q_type='2' "; $cn_dbuLab=ora_open($fn); $pn_uLab=ora_parse($cn_dbuLab,$sql); $rn_uLab=ora_exec($cn_dbuLab); $Teacher_Teach=false; while(ora_fetch_into($cn_dbuLab,&$resultLab)) { $i++; $Teacher_Teach=true; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน //$sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id='$resultLab[2]' "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id='$resultLab[2]' and times='$times' and c.assess_id=a.assess_id "; // echo $sql; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } if(!$Teacher_Teach) { $i++; $Teacher_Teach=true; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน //$sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id is null "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id is null and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } } //หมู่เรียนบรรยายและปฏิบัต else { //Lecture $sql="select a.first_name,a.last_name,a.advisor_id from teacher t,advisor a where"; $sql="$sql t.advisor_id=a.advisor_id "; $sql="$sql and t.yr='$toYear2' and t.semester='$toSem' "; $sql="$sql and t.q_code=$result[0] and q_sec=$result[2] and q_type='1' "; $cn_dbuLec=ora_open($fn); $pn_uLec=ora_parse($cn_dbuLec,$sql); $rn_uLec=ora_exec($cn_dbuLec); $Teacher_Teach=false; while(ora_fetch_into($cn_dbuLec,&$resultLec)) { $Teacher_Teach=true; $i++; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน //$sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='1' and section=$result[2] and advisor_id='$resultLec[2]' "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='1' and section=$result[2] and advisor_id='$resultLec[2]' and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } if(!$Teacher_Teach) { $i++; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน // $sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='1' and section=$result[2] and advisor_id is null "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='1' and section=$result[2] and advisor_id is null and times='$times' and c.assess_id=a.assess_id"; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } //หมู่ปฏิบัติ $sql="select a.first_name,a.last_name,a.advisor_id from teacher t,advisor a where"; $sql="$sql t.advisor_id=a.advisor_id "; $sql="$sql and t.yr='$toYear2' and t.semester='$toSem'"; $sql="$sql and t.q_code=$result[0] and q_sec=$result[3] and q_type='2' "; $cn_dbuLab=ora_open($fn); $pn_uLab=ora_parse($cn_dbuLab,$sql); $rn_uLab=ora_exec($cn_dbuLab); $Teacher_Teach=false; while(ora_fetch_into($cn_dbuLab,&$resultLab)) { $Teacher_Teach=true; $i++; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน //$sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id='$resultLab[2]' "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id='$resultLab[2]' and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } if(!$Teacher_Teach) { $i++; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ""; //ตรวจสอบการประเมิน // $sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id is null "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and type_section='2' and section=$result[3] and advisor_id is null and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; ora_close($cn_dbuTmp); echo ''; } } } // จบ Loop while รายวิชาที่ลงทะเบียน ora_close($cn_dbu); ?>
ลำดับที่ รหัสวิชา ชื่อวิชา ประเภทหมู่ หมู่เรียน ชื่ออาจารย์ผู้สอน  
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lecture"; else echo "บรรยาย"; echo ''.$result[2].'".$resultLec[0]." ".$resultLec[1]."ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) //substr($result[0],6,2)>='95' and substr($result[0],6,2)<='99' and substr($result[0],0,5)!='01372' if (substr($result[0],6,2)=='95' or substr($result[0],6,2)=='99' ) { //ตรวจสอบการอนุญาติให้ประเมิน $sql_permit="select * from permit_code9599 where q_code='$result[0]' and yr=$toYear2 and semester=$toSem and advisor_id='$resultLec[2]' and q_type='1' and q_sec='$result[2]' "; // echo $sql_permit; $cn_permit=ora_open($fn); $pn_permit=ora_parse($cn_permit,$sql_permit); $rn_permit=ora_exec($cn_permit); $permit=false; if(ora_fetch_into($cn_permit,&$result_permit)) $permit=true; //echo $sql_permit; ora_close($cn_permit); if ($permit) { if ($btmp and $btmp2){ //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; // echo " "; } // if ($btmp and $btmp2) else { if ($btmp and $btmp2){ //$curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } // else } // if ($permit) else { echo "ไม่ประเมินรายวิชา"; } } // ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) else // ประเมินรายวิชา { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) // echo " "; echo "
"; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; } //if ($btmp and $btmp2) else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } // else } // ประเมินรายวิชา } // while echo "
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lecture"; else echo "บรรยาย"; echo ''.$result[2].'-ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],4,2)=='95' or substr($result[0],4,2)=='99') { echo "ไม่ประเมินรายวิชา"; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } } echo "
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lab"; else echo "ปฏิบัติ"; echo' '.$result[3].'".$resultLab[0]." ".$resultLab[1]."ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],6,2)=='95' or substr($result[0],6,2)=='99' ) //if (substr($result[0],4,2)>='95' and substr($result[0],4,2)<='99') { //ตรวจสอบการอนุญาติให้ประเมิน $sql_permit="select * from permit_code9599 where q_code='$result[0]' and yr=$toYear2 and semester=$toSem and advisor_id='$resultLab[2]' and q_type='2' and q_sec='$result[3]' "; // echo $sql_permit; $cn_permit=ora_open($fn); $pn_permit=ora_parse($cn_permit,$sql_permit); $rn_permit=ora_exec($cn_permit); $permit=false; if(ora_fetch_into($cn_permit,&$result_permit)) $permit=true; //echo $sql_permit; ora_close($cn_permit); if ($permit) { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; // echo " "; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } else { echo "ไม่ประเมินรายวิชา"; } } else { if ($btmp and $btmp2) { // ($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /* echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } } echo "
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lab"; else echo "ปฏิบัติ"; echo ''.$result[3].'-ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],4,2)=='95' or substr($result[0],4,2)=='99') { echo "ไม่ประเมินรายวิชา"; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /* echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } } echo "
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lecture"; else echo "บรรยาย"; echo ''.$result[2].'".$resultLec[0]." ".$resultLec[1]."ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],6,2)=='95' or substr($result[0],6,2)=='99' ) { //ตรวจสอบการอนุญาติให้ประเมิน $sql_permit="select * from permit_code9599 where q_code='$result[0]' and yr=$toYear2 and semester=$toSem and advisor_id='$resultLec[2]' and q_type='1' and q_sec='$result[2]'"; // echo $sql_permit; $cn_permit=ora_open($fn); $pn_permit=ora_parse($cn_permit,$sql_permit); $rn_permit=ora_exec($cn_permit); $permit=false; if(ora_fetch_into($cn_permit,&$result_permit)) $permit=true; //echo $sql_permit; ora_close($cn_permit); if ($permit) { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; } } } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) // echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; // echo " "; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } } echo "
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lecture"; else echo "บรรยาย"; echo ''.$result[2].'-ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],4,2)=='95' or substr($result[0],4,2)=='99') { echo "ไม่ประเมินรายวิชา"; } else { if($btmp and $btmp2) { // ($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } } echo "
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lab"; else echo "ปฏิบัติ"; echo ''.$result[3].'".$resultLab[0]." ".$resultLab[1]."ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],6,2)=='95' or substr($result[0],6,2)=='99' ) { //ตรวจสอบการอนุญาติให้ประเมิน $sql_permit="select * from permit_code9599 where q_code='$result[0]' and yr=$toYear2 and semester=$toSem and advisor_id='$resultLec[2]' and q_type='2' and q_sec='$result[3]'"; $cn_permit=ora_open($fn); $pn_permit=ora_parse($cn_permit,$sql_permit); $rn_permit=ora_exec($cn_permit); $permit=false; if(ora_fetch_into($cn_permit,&$result_permit)) $permit=true; //echo $sql_permit; ora_close($cn_permit); if ($permit) { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; } } } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } } echo "
".$i."'. $result[0] .''.$result[1].''; if($_SESSION["lang"]=="en") echo "Lab"; else echo "ปฏิบัติ"; echo ''.$result[3].'-ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],4,2)=='95' or substr($result[0],4,2)=='99') { echo "ไม่ประเมินรายวิชา"; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } } echo "
'0'){ // กำหนดหมู่เรียน $section=$result[2]; // กรณี เป็นหมู่บรรยาย $type_section=1; }else{ $section=$result[3]; // กรณี เป็นหมู่ปฏิบัติ $type_section=2; } $i++; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; //ตรวจสอบการประเมิน //$sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and std_id='$std_id' and cs_code='$result[0]' and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; } ora_close($cn_dbuTmp); echo ''; } ora_close($cn_dbu); echo "
ลำดับที่ รหัสวิชา ชื่อวิชา หมู่เรียนบรรยาย หมู่เรียนปฏิบัติ  
".$i."'. $result[0] .''.$result[1].''.$result[2].''.$result[3].'ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) if (substr($result[0],6,2)=='95' or substr($result[0],6,2)=='99' ) { //ตรวจสอบการอนุญาติให้ประเมิน $sql_permit="select distinct q_code from permit_code9599 where q_code='$result[0]' and yr=$toYear2 and semester=$toSem"; $cn_permit=ora_open($fn); $pn_permit=ora_parse($cn_permit,$sql_permit); $rn_permit=ora_exec($cn_permit); if(ora_fetch_into($cn_permit,&$result_permit)) $permit=true; ora_close($cn_permit); if ($permit) { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } else { echo "ไม่ประเมินรายวิชา"; } } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp2) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } echo "
"; } // อาจารย์ประเมินตนเอง else if ($type_form==2) { $sql="select distinct t.q_code,c.course_nam,a.first_name,a.last_name,a.advisor_id,t.q_type,t.q_sec from teacher t,advisor a,course c where"; $sql="$sql t.advisor_id='$adv_id'"; $sql="$sql and t.advisor_id=a.advisor_id"; $sql="$sql and t.yr='$toYear2' and t.semester='$toSem' "; $sql="$sql and t.q_code=c.cs_code and t.semester=c.semester order by q_code "; $cn_adv=ora_open($fn); $pn_adv=ora_parse($cn_adv,$sql); $rn_adv=ora_exec($cn_adv); ?> '; echo ""; echo ''; echo ''; if ($result[5]=='1') { echo ''; } else { echo ''; } echo ''; //ตรวจสอบการประเมิน //$sql="select * from check_assess where type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and advisor_id='$adv_id' and cs_code='$result[0]' and type_section='$result[5]' and section=$result[6] "; $sql=" select distinct a.assess_id from check_assess c,assess_score a where c.type_form=$type_form and a_yr='$toYear2' and a_semester='$toSem' and advisor_id='$adv_id' and cs_code='$result[0]' and type_section='$result[5]' and section=$result[6] and times='$times' and c.assess_id=a.assess_id "; $cn_dbuTmp=ora_open($fn); $pn_uTmp=ora_parse($cn_dbuTmp,$sql); $rn_uTmp=ora_exec($cn_dbuTmp); if(ora_fetch_into($cn_dbuTmp,&$resultTmp)) echo ""; else { echo ""; } ora_close($cn_dbuTmp); echo ''; } echo "
ลำดับที่ รหัสวิชา ชื่อวิชา ประเภท หมู่เรียน  
".$i."'. $result[0] .''.$result[1].'บรรยายปฎิบัติ'.$result[6].'ประเมินแล้ว"; //ไม่ประเมินวิชา Seminar และ Thesis(xxxx97,xxxx99) // if (substr($result[0],6,2)=='95' or substr($result[0],6,2)=='99' ) // 18/01/2555 //=============== สำหรับให้ วข บางเขน เข้าประเมิน ปลาย 54 -- 16/02/2555 (หมดปี ปลาย 54ต้องเอาออก) // or $campCode=='K' if (substr($result[0],6,2)=='95' or substr($result[0],6,2)=='99' ) { //ตรวจสอบการอนุญาติให้ประเมิน $sql_permit="select * from permit_code9599 where q_code='$result[0]' and yr=$toYear2 and semester=$toSem and advisor_id='$adv_id' and q_type='$result[5]' and q_sec='$result[6]'"; $cn_permit=ora_open($fn); $pn_permit=ora_parse($cn_permit,$sql_permit); $rn_permit=ora_exec($cn_permit); if(ora_fetch_into($cn_permit,&$result_permit)) $permit=true; ora_close($cn_permit); if ($permit) { if ($btmp and $btmp3) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /* echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp3) { //($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } else { echo "ไม่ประเมินรายวิชา"; // 18/01/2555 //=============== สำหรับให้ วข บางเขน เข้าประเมิน ปลาย 54 -- 18/01/2555 (หมดปี ปลาย 54ต้องเอาออก) /*if($campCode=='K') echo "หมดช่วงเวลาประเมิน"; else echo "ไม่ประเมินรายวิชา";*/ //============== สำหรับให้ วข บางเขน เข้าประเมิน ปลาย 54 -- 18/01/2555 (หมดปี ปลาย 54ต้องเอาออก) } } else { if ($btmp and $btmp3) { //($curr_date>=$start_date and $curr_date<=$end_date) //echo "
"; echo ""; echo ""; /*echo ""; echo "";*/ echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; // echo ""; } else { if ($btmp and $btmp3) { // ($curr_date>=$start_date and $curr_date<=$end_date) echo "หมดเขตการประเมิน"; } else { echo "ยังไม่ถึงช่วงเวลาประเมิน"; } } } echo "
"; } } // นิสิตประเมินอาจารย์ที่ปรึกษา if ($type_form==4){ ?> =1 ){ ?> '; } ///ช่วงเวลาประเมิน } // if ($type_form==4) นิสิตประเมินอาจารย์ที่ปรึกษา ?>
ลำดับที่ ชื่ออาจารย์ที่ปรึกษา  
1 ()
ประเมินแล้ว
 
 

พัฒนาโดยฝ่ายระบบและพัฒนาโปรแกรม สำนักบริการคอมพิวเตอร์