|
|
|
พี่ๆ TC ช่วยดูเว็บนี้หน่อยครับเกิดปัญหาเปิดด้วย fifox แล้วภาษาเด้งเป็น tis620 แต่เปิดด้วย ie เป็น utf8 |
|
|
|
|
|
|
|
http://www.maeklongvijai.org/map/googlemap/show_data_samutsongkhram.php
รบกวนพี่ๆ TC ช่วยดูไห้ทีครับ เว็บนี้พอเปิดด้วย ie เป็น utf8 แสดงภาษาไทยได้ปกติ แต่พอเปิดด้วย Fifox จะเด้งเป็น tis620 ทำให้ภาษาไทยลวนหมดเลย
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"><!-- InstanceBegin template="../Templates/user_page.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>ศูนย์ประสานงานวิจัยเพื่อท้องถิ่นจังหวัดสมุทรสงคราม</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
<style type="text/css">
body,td,th {
font-family: "Microsoft Sans Serif";
}
a {
font-family: "Microsoft Sans Serif";
}
</style>
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<div id="wrap">
<div id="header">
<h1> </h1>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="100%">
<tr>
<th scope="col"> </th>
<th scope="col"><link rel="stylesheet" href="../images/cbcscbinsmenu.css" type="text/css" />
<ul id="ebul_cbinsmenu_5" class="ebul_cbinsmenu" style="display: none;">
<li><a target="_blank" title="">ต.ท้ายหาด</a></li>
<li><a target="_blank" title="">ต.แหลมใหญ่</a></li>
<li><a target="_blank" title="">ต.บางจะเกร็ง</a></li>
</ul>
<ul id="ebul_cbinsmenu_6" class="ebul_cbinsmenu" style="display: none;">
<li><a title="">ต.แพรกหนามแดง</a></li>
<li><a title="">ต.ปลายโพงพาง</a></li>
<li><a title="">ต.สวนหลวง</a></li>
<li><a title="">ต.ท่าคา</a></li>
</ul>
<ul id="ebul_cbinsmenu_7" class="ebul_cbinsmenu" style="display: none;">
<li><a title="">ต.บางพรม</a></li>
<li><a title="">ต.กระดังงา</a></li>
<li><a title="">ต.ดอนมะโนรา</a></li>
</ul>
<table id="cbinsmenuebul_table" width="0" cellpadding="0" cellspacing="0" border="0" summary="button-menu">
<tr>
<td style="padding-right:0px" title=""><a href="http://www.maeklongvijai.org/" target="_parent"><img id="cbi_cbinsmenu_1" src="../images/ebbtcbinsmenu1_0.png" name="ebbcbinsmenu_1" width="100" height="39" style="vertical-align: bottom;" border="0" alt="หน้าแรก" title="" /></a></td>
<td style="padding-right:0px" title=""><a href="calculation.php"><img id="cbi_cbinsmenu_2" src="../images/ebbtcbinsmenu2_0.png" name="ebbcbinsmenu_2" width="137" height="39" style="vertical-align: bottom;" border="0" alt="คำนวณระยะทาง" title="" /></a></td>
<td style="padding-right:0px" title=""><a href="gps.php"><img id="cbi_cbinsmenu_3" src="../images/ebbtcbinsmenu3_0.png" name="ebbcbinsmenu_3" width="136" height="39" style="vertical-align: bottom;" border="0" alt="หาพิกัดบนแผนที่" title="" /></a></td>
<td style="padding-right:0px" title=""><a href="show_data_samutsongkhram.php"><img id="cbi_cbinsmenu_4" src="../images/ebbtcbinsmenu4_0.png" name="ebbcbinsmenu_4" width="155" height="39" style="vertical-align: bottom;" border="0" alt="แผนที่สมุทรสงคราม" title="" /></a></td>
<td style="padding-right:0px" title=""><a><img id="cbi_cbinsmenu_5" src="../images/ebbtcbinsmenu5_0.png" name="ebbcbinsmenu_5" width="105" height="39" style="vertical-align: bottom;" border="0" alt="อ.เมืองฯ" title="" /></a></td>
<td style="padding-right:0px" title=""><a><img id="cbi_cbinsmenu_6" src="../images/ebbtcbinsmenu6_0.png" name="ebbcbinsmenu_6" width="105" height="39" style="vertical-align: bottom;" border="0" alt="อ.อัมพวา" title="" /></a></td>
<td style="padding-right:0px" title=""><a><img id="cbi_cbinsmenu_7" src="../images/ebbtcbinsmenu7_0.png" name="ebbcbinsmenu_7" width="115" height="39" style="vertical-align: bottom;" border="0" alt="อ.บางคนที" title="" /></a></td>
<td style="padding-right:0px" title=""><a href="http://www.maeklongvijai.org/index.php?option=com_content&view=article&id=91&Itemid=61"><img id="cbi_cbinsmenu_8" src="../images/ebbtcbinsmenu8_0.png" name="ebbcbinsmenu_8" width="85" height="39" style="vertical-align: bottom;" border="0" alt="ผู้ดูแล" title="" /></a></td>
</tr>
</table>
<script type="text/javascript" src="../images/cbjscbinsmenu.js"></script></th>
</tr>
</table>
<p> </p>
</div>
<div id="content"><!-- InstanceBeginEditable name="EditRegion3" --> <script src= "http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAJ8RW3dj4Y4w2thtIFK3DRxT8tCr6npqDDQoN-PT5WJGSiRG2uhSRPOP_yjpJfmfhETDZ_UPo1JoTXg" type="text/javascript" ></script>
<script src="../js/gmaps.CircleOverlay.js" type="text/javascript"></script>
<script src="../js/gmaps.CircleOverlay.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var circle = null;
var circle2 = null;
var map;
var geocoder;
var iconBlue = new GIcon();
iconBlue.image = '../images/red2.png';
iconBlue.shadow = '../images/shadow.png';
iconBlue.iconSize = new GSize(32, 37);
iconBlue.shadowSize = new GSize(32, 37);
iconBlue.iconAnchor = new GPoint(15, 45);
iconBlue.infoWindowAnchor = new GPoint(5, 1);
var icongreen = new GIcon();
icongreen.image = '../images/green2.png';
icongreen.shadow = '../images/shadow.png';
icongreen.iconSize = new GSize(32, 37);
icongreen.shadowSize = new GSize(32, 37);
icongreen.iconAnchor = new GPoint(15, 45);
icongreen.infoWindowAnchor = new GPoint(5, 1);
var customIcons = [];
customIcons["เตาตาลที่ไม่ได้ใช้งานแล้ว"] = iconBlue;
customIcons["เตาตาลที่ยังใช้งานอยู่"] = icongreen;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
geocoder = new GClientGeocoder();
map.addMapType(G_PHYSICAL_MAP);
//map.removeMapType(G_NORMAL_MAP);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(13.386279,99.9568471), 11);
GDownloadUrl("ajax_markers_samutsongkhram.php", function(data) {
var xml = GXml.parse(data);
var markers = xml.documentElement.getElementsByTagName("marker");
var sidebar2 = document.getElementById('sidebar2');
sidebar2.innerHTML = '';
if (markers.length == 0) {
sidebar2.innerHTML = 'No results found.';
return;
}
var bounds = new GLatLngBounds();
for (var i = 0; i < markers.length; i++) {
var name = markers[i].getAttribute("name");
var address = markers[i].getAttribute("address");
var type = markers[i].getAttribute("type");
var datamap = markers[i].getAttribute("datamap");
var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")) ,
parseFloat(markers[i].getAttribute("lng")));
var marker = createMarker(point, name, address, type, datamap);
map.addOverlay(marker);
var sidebarEntry = createSidebarEntry(marker, name, address);
sidebar2.appendChild(sidebarEntry);
bounds.extend(point);
}
});
}
}
function createMarker(point, name, address, type, datamap) {
var marker = new GMarker(point, customIcons[type]);
//var html = "<table width=300><tr><td>"+"<b>ชื่อสถานที่ : " + name + "</b> <br/>ที่อยู่ : " + address+"</b><br/><img src='http://qrcode.kaywa.com/code/06FF0000/geo:13.38926,99.96269'/></td></tr></table>";
// var html = "<table width=300><tr><td>"+"<b>ชื่อสถานที่ : " + name + "</b> <br/>ที่อยู่ : " + address+"</b><br/><img src='http://qrcode.kaywa.com/code/06FF0000/geo:"+point+"'/></td></tr></table>";
//GEvent.addListener(marker, 'click', function() {
// marker.openInfoWindowHtml(html);
GEvent.addListener(marker, "click", function() {
this.openInfoWindowHtml(" ชื่อ : "+name+"<br>ตำบล: "+address+"<br>ประเภท: "+type+"<br>ละติจูด:"+this.getLatLng().lat()+"<br> ลองติจูด : "+this.getLatLng().lng()+"<br>ข้อมูล:"+datamap+"<br>");
});
return marker;
}
function createSidebarEntry(marker, name, address) {
var div = document.createElement('div');
var html = "<b>ชื่อ : " + name + "</b> <br/>ตำบล : " + address +"<br/> ------------------------------";
div.innerHTML = html;
div.style.cursor = 'pointer';
div.style.marginBottom = '5px';
GEvent.addDomListener(div, 'click', function() {
GEvent.trigger(marker, 'click');
});
GEvent.addDomListener(div, 'mouseover', function() {
div.style.backgroundColor = '#eee';
});
GEvent.addDomListener(div, 'mouseout', function() {
div.style.backgroundColor = '#fff';
});
return div;
}
//]]>
</script>
<style type="text/css">
<!--
body {
background-image: url(file:///C|/Users/MOJI/Desktop/picture/page1952.jpg);
}
.style1 {color: #FF0000}
.style2 {color: #FF9B9B}
.style3 {
font-size: 14px;
font-weight: bold;
}
.style4 {color: #0000FF}
.style5 {color: #00FF00}
-->
</style>
</head>
<body onload="load()" onunload="GUnload()">
</p>
<p><center>
</center></p>
<table width="942" height="608" align="center">
<tbody>
<tr id="cm_mapTR">
<td width="699" height="602"> <div id="map_canvas" style="width: 750px; height: 600px"></div> </td>
<td width="266" height="602" valign="top"><div align="center">
<p>จังหวัดสมุทรสงคราม</p>
<table width="100%">
<tr>
<th scope="col"><form id="form3" method="post" action="search_tambon_samutsongkhram.php">
<input type="submit" name="button3" id="button3" value="ค้นหาจากตำบล" />
</form></th>
</tr>
<tr>
<th scope="row"><form id="form4" method="post" action="search_type_samutsongkhram.php">
<input type="submit" name="button3" id="button4" value="ค้นหาจากประเภท" />
</form></th>
</tr>
<tr>
<th scope="row"><form id="form" method="post" action="search_subject_samutsongkhram.php">
<input type="submit" name="button" id="button" value="ค้นหาจากเรื่อง" />
</form></th>
</tr>
</table>
</div>
<div id="sidebar2" style="overflow: auto; height: 500px; font-size: 11px; color: #000"></div> </td>
</tr>
</tbody>
</table><!-- InstanceEndEditable -->
<p><center></center></p>
<div style="clear: both;"> </div>
</div>
</div>
<div id="footer"><img name="" src="../images/adress.png" width="550" height="70" alt="" /></div>
</body>
<!-- InstanceEnd --></html>
Tag : PHP
|
|
|
|
|
|
Date :
2012-03-24 15:32:30 |
By :
siwarin125 |
View :
993 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|