|
 |
|
สอบถามครับ มือใหม่ jquery mobile link ไปแล้วไม่แสดงผล แต่ถ้าเปิดตรง page นั้น ทำงานครับ |
|
 |
|
|
 |
 |
|
มือใหม่นะครับผม ขอความรู้ครับ
ถ้า เปิดที่ sd1.php มันแสดงผลอ่ะครับ แต่ถ้า link จาก index.php มันไม่แสดง Code (PHP)
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="theme/jquery.mobile-1.1.0.min.css" />
<script src="theme/jquery-1.7.1.min.js"></script>
<script src="theme/jquery.mobile-1.1.0.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Somdej Hospital Report</h1>
</div><!-- /header -->
<br />
<div data-role="collapsible" data-inset="false" data-iconpos="top" data-theme="b" >
<h3>OPD</h3>
<ul data-role="listview" data-theme="e">
<li><a href="sd1.php" data-transition="slide">testlink</a></li>
<li><a href="sd1.php">Chartt</a></li>
</ul>
</div>
Code (PHP)
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="theme/jquery.mobile-1.1.0.min.css" />
<script src="theme/jquery-1.7.1.min.js"></script>
<script src="theme/jquery.mobile-1.1.0.min.js"></script>
<SCRIPT LANGUAGE="Javascript" SRC="./fc/FusionCharts.js"></SCRIPT><!-- chart -->
</head>
<body>
<div data-role="page">
<div data-role="header">
<a href="javascript:history.back();" data-icon="back" data-iconpos="notext" data-direction="reverse" data-transition="slide">Back</a>
<h1>Welcome</h1>
</div><!-- /header -->
<CENTER>
<?php
include_once "./include/FusionCharts.php";
include_once "./include/connecthos.php";
?>
<?php
echo "<tr><td>รายงาน 10 อันดับโรคแรก OPD ของปีปัจจุบัน</font></td></tr><br><br>";
$graph = "Column3D";
$strXML = "<chart caption='รายงาน 10 อันดับ โรคแรก OPD ช่วงวันที่ $startdate ถึง $enddate ' subCaption='' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' ครั้ง' baseFontSize='11' >";
$strQuery = "select count(vd.icd10) as ct,vd.icd10,ic.name from ovst ov
left outer join ovstdiag vd on ov.vn=vd.vn
inner join icd101 ic on vd.icd10=ic.code
where YEAR(ov.vstdate)=YEAR(now()) and ov.an is null group by vd.icd10 order by ct DESC limit 10
";
$result = mysql_query($strQuery) or die(mysql_error());
if ($result) {
while($ors = mysql_fetch_array($result)) {
$strXML .= "<set label='" . $ors['icd10'] . "' value='" . $ors['ct'] . "' />";
}
}
$strXML .= "</chart>";
echo renderChart("./fc/pie3D.swf", "", $strXML, "FactorySum",800, 400, false, false);
?>
<BR>
</CENTER>
</div><!-- /page -->
</body>
</html>
Tag : PHP, MySQL, jQuery

|
|
 |
 |
 |
 |
Date :
2014-09-17 11:24:26 |
By :
bomkeen |
View :
1025 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
jQuery Mobile รู้สึกจะมีปัญหาเรื่อง caches น่ะครับ
|
 |
 |
 |
 |
Date :
2014-09-17 16:19:03 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|