| Server IP : 134.236.49.22 / Your IP : 216.73.216.114 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/KPI monitor/ |
Upload File : |
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Control Chart</title>
<style type="text/css">
</style>
</head>
<body>
<script src="Jcode/highcharts.js"></script>
<script src="Jcode/modules/exporting.js"></script>
<script src="Jcode/modules/export-data.js"></script>
<div style="position: relative; padding: 10px;">
<?php
session_start();
include("dbconfig.php");
date_default_timezone_set('Asia/Bangkok');
mysql_select_db("KPI");
mysql_query("SET NAMES 'tis620'; ");
if (isset($_GET['id_no'])) $idno = $_GET['id_no'];
else $idno='Unknown';
if (isset($_GET['info'])) $Savedate = $_GET['info'];
else $Savedate='Unknown';
$sql="select * from result where id_no='".$id_no."' and date = '".$Savedate."'" ;
$result=mysql_query($sql);
while ($object = mysql_fetch_object($result)) {
//$data = iconv( 'TIS-620', 'UTF-8',$object ->data);
$description = preg_replace("/\r\n|\r|\n/", '<br/>', iconv( 'TIS-620', 'UTF-8',$object ->data));
$description = str_replace(" ",' ',$description );
//$description = preg_replace(" ", ' ', $description );
echo $description.'<br>';
}
?>
</body>
</html>