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 /
school_gis /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
install
[ DIR ]
drwxr-xr-x
main
[ DIR ]
drwxr-xr-x
default.php
342
B
-rw-r--r--
index.php
2.26
KB
-rw-r--r--
json.php
4.68
KB
-rw-r--r--
menu.php
1.98
KB
-rw-r--r--
menu_mobile.php
803
B
-rw-r--r--
route.php
9.09
KB
-rw-r--r--
select-route.php
1.59
KB
-rw-r--r--
setmap-school.php
323
B
-rw-r--r--
setmap.php
6.95
KB
-rw-r--r--
view.php
11.38
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : route.php
<style type="text/css"> html { height: 100% } /* css กำหนดความกว้าง ความสูงของแผนที่ */ #map_canvas { position:relative; height:425px; margin:auto; } /* css ของส่วนการกำหนดจุดเริ่มต้น และปลายทาง */ #showDD{ position:absolute; height:0px; padding-top:0px; background-color:#000; color:#666666; left: 7px; } /* css ของส่วนแสดงคำแนะนำเส้นทางการเดินทาง */ #directionsPanel{ height:420px; margin:auto; clear:both; background-color:#F1FEE9; overflow: auto; } /* css ในส่วนข้อมูลการแนะนำเส้นทาง เพิ่มเติม ถ้าต้องการกำหนด */ .adp-placemark{ background-color:#9C3; } .adp-summary{ } .adp-directions{ } </style> <BR> <center><FONT SIZE="4" COLOR="#009900"><B>คำนวณหาระยะทางไปยังโรงเรียนในสังกัด</B></FONT> </center> <BR><?php include "select-route.php"; ?><BR> <table border="1" width="98%" id="table2" style="border-collapse: collapse" align="center" id="contain_map" cellspacing =5> <tr> <td cellpadding=5 width="70%" valign=top> <div class = "col-9" id="map_canvas"> <center><br /><br /><img src="modules/school_gis/images/load.gif" width = "42"></center> </div> </td> <td cellpadding=5 width="30%" valign=top> <div id="directionsPanel"></div> </td> </tr> </table> <div class="row" id="contain_map"> <div id="showDD"></div> </div> <script type="text/javascript"> var directionShow; // กำหนดตัวแปรสำหรับใช้งาน กับการสร้างเส้นทาง var directionsService; // กำหนดตัวแปรสำหรับไว้เรียกใช้ข้อมูลเกี่ยวกับเส้นทาง var map; // กำหนดตัวแปร map ไว้ด้านนอกฟังก์ชัน เพื่อให้สามารถเรียกใช้งาน จากส่วนอื่นได้ var GGM; // กำหนดตัวแปร GGM ไว้เก็บ google.maps Object จะได้เรียกใช้งานได้ง่ายขึ้น var my_Latlng; // กำหนดตัวแปรสำหรับเก็บจุดเริ่มต้นของเส้นทางเมื่อโหลดครั้งแรก var initialTo; // กำหนดตัวแปรสำหรับเก็บจุดปลายทาง เมื่อโหลดครั้งแรก var searchRoute; // กำหนดตัวแปร ไว้เก็บฃื่อฟังก์ชั้น ให้สามารถใช้งานจากส่วนอื่นๆ ได้ function initialize() { // ฟังก์ชันแสดงแผนที่ GGM=new Object(google.maps); // เก็บตัวแปร google.maps Object ไว้ในตัวแปร GGM directionShow=new GGM.DirectionsRenderer({draggable:true}); directionsService = new GGM.DirectionsService(); // กำหนดจุดเริ่มต้นของแผนที่ my_Latlng = new GGM.LatLng(<?php echo $my_Latlng;?>); // // กำหนดตำแหน่งปลายทาง สำหรับการโหลดครั้งแรก //initialTo=new GGM.LatLng(13.8129355,100.7316899); var my_mapTypeId=GGM.MapTypeId.ROADMAP; // กำหนดรูปแบบแผนที่ที่แสดง // กำหนด DOM object ที่จะเอาแผนที่ไปแสดง ที่นี้คือ div id=map_canvas var my_DivObj=$("#map_canvas")[0]; // กำหนด Option ของแผนที่ var myOptions = { zoom: 10, // กำหนดขนาดการ zoom center: my_Latlng , // กำหนดจุดกึ่งกลาง จากตัวแปร my_Latlng mapTypeId:my_mapTypeId // กำหนดรูปแบบแผนที่ จากตัวแปร my_mapTypeId }; map = new GGM.Map(my_DivObj,myOptions); // สร้างแผนที่และเก็บตัวแปรไว้ในชื่อ map directionShow.setMap(map); // กำหนดว่า จะให้มีการสร้างเส้นทางในแผนที่ที่ชื่อ map // ส่วนสำหรับกำหนดให้แสดงคำแนะนำเส้นทาง directionShow.setPanel($("#directionsPanel")[0]); if(map){ // เงื่่อนไขถ้ามีการสร้างแผนที่แล้ว searchRoute(my_Latlng,initialTo); // ให้เรียกใช้ฟังก์ชัน สร้างเส้นทาง } // กำหนด event ให้กับเส้นทาง กรณีเมื่อมีการเปลี่ยนแปลง GGM.event.addListener(directionShow, 'directions_changed', function() { var results=directionShow.directions; // เรียกใช้งานข้อมูลเส้นทางใหม่ }); } $(function(){ // ส่วนของฟังก์ชัน สำหรับการสร้างเส้นทาง searchRoute=function(FromPlace,ToPlace){ // ฟังก์ชัน สำหรับการสร้างเส้นทาง if(!FromPlace && !ToPlace){ // ถ้าไม่ได้ส่งค่าเริ่มต้นมา ให้ใฃ้ค่าจากการค้นหา var FromPlace=$("#namePlace").val();// รับค่าชื่อสถานที่เริ่มต้น var ToPlace=$("#toPlace").val(); // รับค่าชื่อสถานที่ปลายทาง } // กำหนด option สำหรับส่งค่าไปให้ google ค้นหาข้อมูล var request={ origin:FromPlace, // สถานที่เริ่มต้น destination:ToPlace, // สถานที่ปลายทาง travelMode: GGM.DirectionsTravelMode.DRIVING // กรณีการเดินทางโดยรถยนต์ }; // ส่งคำร้องขอ จะคืนค่ามาเป็นสถานะ และผลลัพธ์ directionsService.route(request, function(results, status){ if(status==GGM.DirectionsStatus.OK){ // ถ้าสามารถค้นหา และสร้างเส้นทางได้ directionShow.setDirections(results); // สร้างเส้นทางจากผลลัพธ์ }else{ // กรณีไม่พบเส้นทาง หรือไม่สามารถสร้างเส้นทางได้ // โค้ดตามต้องการ ในทีนี้ ปล่อยว่าง } }); } // ส่วนควบคุมปุ่มคำสั่งใช้งานฟังก์ชัน $("#SearchPlace").click(function(){ // เมื่อคลิกที่ปุ่ม id=SearchPlace searchRoute(); // เรียกใช้งานฟังก์ชัน ค้นหาเส้นทาง }); $("#namePlace,#toPlace").keyup(function(event){ // เมื่อพิมพ์คำค้นหาในกล่องค้นหา if(event.keyCode==13 && $(this).val()!=""){ // ตรวจสอบปุ่มถ้ากด ถ้าเป็นปุ่ม Enter searchRoute(); // เรียกใช้งานฟังก์ชัน ค้นหาเส้นทาง } }); $("#iClear").click(function(){ $("#namePlace,#toPlace").val(""); // ล้างค่าข้อมูล สำหรับพิมพ์คำค้นหาใหม่ }); }); $(function(){ // โหลด สคริป google map api เมื่อเว็บโหลดเรียบร้อยแล้ว // ค่าตัวแปร ที่ส่งไปในไฟล์ google map api // v=3.2&sensor=false&language=th&callback=initialize // v เวอร์ชัน่ 3.2 // sensor กำหนดให้สามารถแสดงตำแหน่งทำเปิดแผนที่อยู่ได้ เหมาะสำหรับมือถือ ปกติใช้ false // language ภาษา th ,en เป็นต้น // callback ให้เรียกใช้ฟังก์ชันแสดง แผนที่ initialize $("<script/>", { "type": "text/javascript", //src: "https://maps.google.com/maps/api/js?v=3.2&sensor=false&language=th&callback=initialize&key=AIzaSyAVTbqxl9fQ0jwI-wPnpjksZo1bryqS9W4" src: "https://maps.google.com/maps/api/js?v=3.2&sensor=false&language=th&callback=initialize&key=AIzaSyDHLaBtQemMCgK6EQoSYvPmupqIOOdZMhg" }).appendTo("body"); }); </script>
Close