|
|
|
โหลดภาพ jpgraph ข้อความเป็นภาษาต่างดาว จะทำยังไงผมไม่ค่อยเข้าใจช่วยบอกผมหน่อย |
|
|
|
|
|
|
|
คือ ผมเขียนกราฟวงกลมโดยการดัดแปลงโค้ดนิดหน่อย ซึ่งส่วนของการแสดงผมก็ออกมาสมบูรณ์ไม่มีปัญหาอะไร
แต่ ส่วนของการโหลดรูปการนั้น จะโหลดเป็น.png .jpg หรือpdf นั้นเมื่อโหลดมาแล้วข้อความที่เป็นภาษาไทย
กลายเป็นภาษาด่างดาวหมดเลย ผมจะแก้ยังไงดีครับ
รูปที่เกิดปัญหา
รูปของเมนูดาวน์โหลด
Code
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>กราฟแสดงอุบัติเหตุ</title>
<style type="text/css">
.login {
background-image: url(../images/LoginMember%20copy.png);
}
.style8 {
color: #000000;
font-weight: bold;
}
body {
background-color: #CCC;
}
</style>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script>
$(function () {
$('#container').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'กราฟแสดงรายการอุบัติเหตุในแต่ละ อำเภอ'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
}
}
},
series: [{
type: 'pie',
name: 'service',
data: [
<?php
//while($row=mysql_fetch_array($result)) {
// $monthx = $row[month];
//$valuex = $row[value];
$a=$_POST['a'];
$a1=$_POST['a1']+0;
$b=$_POST['b'];
$b1=$_POST['b1']+0;
$c=$_POST['c'];
$c1=$_POST['c1']+0;
$d=$_POST['d'];
$d1=$_POST['d1']+0;
$e=$_POST['e'];
$e1=$_POST['e1']+0;
$f=$_POST['f'];
$f1=$_POST['f1']+0;
$g=$_POST['g'];
$g1=$_POST['g1']+0;
$h=$_POST['h'];
$h1=$_POST['h1']+0;
$j=$_POST['j'];
$j1=$_POST['j1']+0;
$k=$_POST['k'];
$k1=$_POST['k1']+0;
$l=$_POST['l'];
$l1=$_POST['l1']+0;
$m=$_POST['m'];
$m1=$_POST['m1']+0;
$n=$_POST['n'];
$n1=$_POST['n1']+0;
$o=$_POST['o'];
$o1=$_POST['o1']+0;
$p=$_POST['p'];
$p1=$_POST['p1']+0;
$q=$_POST['q'];
$q1=$_POST['q1']+0;
$r=$_POST['r'];
$r1=$_POST['r1']+0;
$s=$_POST['s'];
$s1=$_POST['s1']+0;
$t=$_POST['t'];
$t1=$_POST['t1']+0;
$u=$_POST['u'];
$u1=$_POST['u1']+0;
$v=$_POST['v'];
$v1=$_POST['v1']+0;
$w=$_POST['w'];
$w1=$_POST['w1']+0;
$x=$_POST['x'];
$x1=$_POST['x1']+0;
$sss = "['".$a."',".$a1."],['". $b."',".$b1."],['". $c."',".$c1."],['". $d."',".$d1."],['". $e."',".$e1."],['". $f."',".$f1."],
['". $g."',".$g1."],['". $h."',".$h1."],['". $j."',".$j1."],['". $k."',".$k1."],['". $l."',".$l1."],['". $m."',".$m1."],['". $n."',".$n1."],['". $o."',".$o1."],['". $p."',".$p1."],['". $q."',".$q1."],['". $r."',".$r1."],['". $s."',".$s1."],['". $t."',".$t1."],['". $u."',".$u1."],['". $v."',".$v1."],['". $w."',".$w1."],['". $x."',".$x1."],";
echo $sss;
// }
?>
]
}]
});
});
</script>
</head>
<body>
<table width="1100" height="1033" border="0" align="center">
<tr>
<td height="140" colspan="4" align="center" valign="top"><img src="../images/Header.png" width="1100" height="200" /></td>
</tr>
<tr>
<td height="46" colspan="4" align="center" valign="top" bgcolor="#FFFFFF"><img src="../images/p3.jpg" width="1100" height="50" usemap="#Map3" border="0" /></td>
</tr>
<tr>
<td height="21" colspan="4" align="center" valign="top" bgcolor="#CCCCCC"><marquee direction="left">
สวัสดีครับ....ยินดีต้อนรับสู่ มูลนิธิประชาร่วมใจ องค์กรสถานสาธารณกุศล..........."ทุกชีวิตมีค่า เราปรารถนา ให้ปลอดภัย"
...โทร.075-345500,075-318833 ตลอด 24 ชั่วโมง
</marquee></td>
</tr>
<tr>
<td width="209" height="231" align="left" valign="top" bgcolor="#FFFFFF"><table width="211" height="229" border="0">
<tr>
<td width="231" height="225" align="left" valign="top" class="login"><form name="form1" method="post" action="../member/checkmember.php">
<table width="203" border="0">
<tr>
<td colspan="4"> </td>
<td width="18"> </td>
</tr>
<tr>
<td colspan="4"> </td>
<td> </td>
</tr>
<tr>
<td colspan="2"> </td>
<td colspan="2"><span class="style8">Username :</span></td>
<td> </td>
</tr>
<tr>
<td colspan="5" align="center"><input type="text" name="Adm_logname" id="Adm_logname" /></td>
</tr>
<tr>
<td colspan="2"> </td>
<td width="72"><strong>Password :</strong></td>
<td width="75"> </td>
<td> </td>
</tr>
<tr>
<td colspan="5" align="center"><input type="password" name="Adm_pw" id="Adm_pw" /></td>
</tr>
<tr>
<td height="32" colspan="2"> </td>
<td height="32" colspan="2" align="center"><input type="submit" name="Submit" value="Login" /></td>
<td height="32"> </td>
</tr>
<tr>
<td width="8" height="23"> </td>
<td width="8"> </td>
<td height="23"> </td>
<td height="23"> </td>
<td height="23"> </td>
</tr>
</table> <div align="center"><? print"$code_error";?></div>
</form></td>
</tr>
</table></td>
<td width="887" colspan="3" rowspan="3" align="center" valign="top" bgcolor="#FFFFFF"><table width="781" height="660" border="0">
<tr>
<td colspan="5" align="center"> </td>
</tr>
<tr>
<td colspan="5" align="center" valign="top"> <div id="container" style="min-width: 480px; height: 480px; margin: 0 auto"></div> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="4" align="left" valign="top" bgcolor="#FFFFFF"><img src="../images/Menuข้างPeople.png" width="208" height="358" usemap="#Map4" border="0" /></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF"> </td>
</tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="12,58,194,111" href="file:///C|/AppServ/www/register/placharumchai/index.php" />
<area shape="rect" coords="16,184,190,231" href="file:///C|/AppServ/www/register/placharumchai/people/searchP.php" />
<area shape="rect" coords="16,249,190,290" href="file:///C|/AppServ/www/register/placharumchai/people/STT.php" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="4,4,208,37" href="file:///C|/AppServ/www/register/placharumchai/index.php" />
<area shape="rect" coords="449,3,643,40" href="file:///C|/AppServ/www/register/placharumchai/people/searchP.php" />
<area shape="rect" coords="666,4,871,40" href="file:///C|/AppServ/www/register/placharumchai/people/STT.php" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="6,4,208,37" href="../index.php" />
<area shape="rect" coords="225,2,430,38" href="about.php" />
<area shape="rect" coords="447,4,650,37" href="searchP.php" />
<area shape="rect" coords="667,3,871,36" href="STT.php" />
<area shape="rect" coords="888,2,1086,37" href="contact1.php" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="13,68,192,112" href="../index.php" />
<area shape="rect" coords="14,121,194,168" href="about.php" />
<area shape="rect" coords="11,178,191,232" href="searchP.php" />
<area shape="rect" coords="8,241,196,288" href="STT.php" />
<area shape="rect" coords="12,303,195,348" href="contact1.php" />
</map>
</body>
</html>
Tag : PHP, MySQL, HTML/CSS, JavaScript, Windows
|
|
|
|
|
|
Date :
2014-11-26 15:53:24 |
By :
kawkitti |
View :
1169 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|