| Server IP : 103.233.193.20 / Your IP : 216.73.216.169 Web Server : Apache/2 System : Linux host1.itclever.com 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 17:47:08 UTC 2024 x86_64 User : oriscomadm ( 1120) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/oriscomadm/domains/oriscom.com/private_html/m/ |
Upload File : |
<?php
session_start();
$user = $_SESSION['sess_user'];
$pass = $_SESSION['sess_pass'];
$customer_id = $_SESSION['sess_cus_id'];
?>
<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=2">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPS Tracking ORISCOM</title>
<link rel="stylesheet" href="css/server.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
<style type="text/css">
<!--
.style1 {color: #FF00FF}
div.banner {
margin: 0;
font-size: 80% /*smaller*/;
font-weight: bold;
line-height: 1.1;
text-align: center;
position: fixed;
top: 0;
left: auto;
width: 100%;
right: 0;
}
div.banner1 {
margin: 0;
font-size: 80% /*smaller*/;
font-weight: bold;
line-height: 1.1;
text-align: center;
position: fixed;
bottom:0;
left: auto;
width: 100%;
right: 0;
}
#apDiv1 {
position:absolute;
left:13px;
top:125px;
width:126px;
height:35px;
z-index:1;
}
body {
background-color: #333333;
}
body,td,th {
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
input[type=text] {
width: 100%;
box-sizing: border-box;
border: 1px solid #fff;
border-radius: 0px;
font-size: 16px;
background-color: white;
background-position: 5px 5px;
background-repeat: no-repeat;
padding: 6px 5px 10px 30px;
}
-->
</style>
</head>
<body>
<div class="banner">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="50" background="bg_button_login_h2.jpg" scope="col"> </th>
<th background="bg_button_login_h2.jpg" scope="col"><div align="center"><img src="logo_mobile_menu.png" width="128" height="50" /></div></th>
<th width="50" background="bg_button_login_h2.jpg" scope="col"><div align="right"><img src="menu.png" width="50" height="50" /></div></th>
</tr>
</table>
</div>
<form id="form1" name="form1" method="post" action="list_car.php?strSearch=Y">
<div class="banner1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="50" background="bg_button_login_f2.jpg" scope="col"><img src="search.jpg" width="50" height="50" /></th>
<th bgcolor="#FFFFFF" scope="col"><div align="center" class="button3">
<input type="text" name="search" id="search" />
</div></th>
<th width="50" background="bg_button_login_f2.jpg" scope="col"><input type="image" name="submit" id="submit" src="enter.jpg" width="50" height="50"></th>
</tr>
</table>
</div>
</form>
<p> </p><br />
<p>
<?php
$objConnect = mysql_connect("122.155.165.28:6318","root","FGNEOB") or die("Error Connect to Database");
$objDB = mysql_select_db("gpsonline");
mysql_query("set character set utf8");
mysql_query("SET character_set_results=utf8");
mysql_query("SET character_set_client=utf8");
mysql_query("SET character_set_connection=utf8");
if($strSearch=="Y")
{
$strSQL = "SELECT * FROM car WHERE customer_id = '$customer_id' and (gps_id like '%$search%' or car_id like '%$search%') order by gps_id ASC";
}
else
{
$strSQL = "SELECT * FROM car WHERE customer_id = '$customer_id' order by gps_id ASC";
}
$customer_list = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
while($info = mysql_fetch_array( $customer_list ))
{
?>
<ul>
<li><a href="#"><span class="button1_list">
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#E8E8E8">
<tr>
<td height="40"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="5%" rowspan="2" align="center" valign="baseline" scope="col"><div align="center"><img src="status/GreenStop.png" width="17" height="17" hspace="10" vspace="10" /></div></th>
<th width="30%" scope="col"><div align="left">ทะเบียนรถ : <?php echo $info['car_id']; ?></div></th>
<th width="30%" scope="col"><div align="left">รหัส GPS : <?php echo $info['gps_id']; ?></div></th>
<th width="20%" scope="col"><div align="left">ความเร็ว : <?php echo $info['gps_speed']; ?> Km/hr.</div></th>
<th width="15%" scope="col"> </th>
</tr>
<tr>
<td colspan="3"><div align="left"><?php echo $info['packet_arrived_time']; ?></div></td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</span></a></li>
</ul>
<?php
}
?></p>
<p>
<br /><br /><br />
</body>
</html>