| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 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/CAR - Copy/ |
Upload File : |
<?php
include("dbconfig.php");
include( "function.php" );
?>
<html>
<head>
<title> รายงานการใช้รถ</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<LINK href="style.css" rel=stylesheet>
<STYLE type=text/css>
a:link{color:black;text-decoration:none;font-family:ms sans serif;}
a:visited{color:black;text-decoration:none;font-family:ms sans serif;}
a:hover{color:red;text-decoration:none;font-family:ms sans serif;}
td{font-size:10pt;font-family:ms sans serif;}
</STYLE>
<script language="JavaScript1.2">
<!--
/*
Auto Maximize Window Script- By Nick Lowe (nicklowe@ukonline.co.uk)
*/
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layersdocument.getElementById) {
if (top.window.outerHeight<screen.availHeighttop.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
</head>
<body>
<STYLE type=text/css>A.no_de:hover {
TEXT-DECORATION: none
}
</STYLE>
<TABLE height=85 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-COLOR: #f0f7ff" colSpan=2></TD>
</TR>
<TR bgColor=#c7d2e7>
<TD class=thwbold width="90%" height=28><div align="center"><a
href=""><font color=#000000> รายงานสรุปผลการใช้รถยนต์ (ระยะทาง )</font></a></div></TD>
<TD width="10%" height=28 align=right vAlign=center bgColor=#c7d1e7 class=thsans><div align="right">
<A
href=""></A> <A href=""></A> <A
href=""></A> </div></TD>
</TR>
<TR>
<TD style="BACKGROUND-COLOR: black" colSpan=2></TD>
</TR>
<TR>
<TD style="BACKGROUND-COLOR: #f0f8ff" colSpan=2></TD>
</TR>
<TR vAlign=center bgColor=#216289>
<TD class=thwbold colSpan=2 height=21> <TABLE height="95%" cellSpacing=0 cellPadding=1 width="99%" align=center
border=0>
<TBODY>
<TR>
<TD width="10%" height="22"
align=middle><SPAN class=thsans2
id=n1><a href="index.php"><font color="#FFFFFF">หน้าแรก</font></a></SPAN></TD>
<TD
align=middle width="18%"><font color="#FFFFFF"> ผลการบริการแยกรายข้อ</font></TD>
<TD
align=middle width="17%"><font color="#FFFFFF"><SPAN
class=thsans2 id=n5>สรุปเฉพาะคน</SPAN></font></TD>
<TD width="12%"
align=middle><font color="#FFFFFF"> <span
class=thsans2 id=n5><a href="rep_driver1.php">ดูปริมาณการใช้รถ</a></span></font></TD>
<TD
align=middle width="16%"><font color="#FFFFFF"><SPAN
class=thsans2 id=n5></SPAN></font></TD>
<TD
align=middle width="13%"><font color="#FFFFFF"> </font></TD>
<TD class=thtahomasmall
align=middle width="14%"> </TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD style="BACKGROUND-COLOR: black; heigth: 1"
colSpan=2></TD>
</TR>
</TBODY>
</TABLE>
<form name="form1" method="post" >
<TABLE cellSpacing=0 cellPadding=3 width="98%" align=center border=0>
<TBODY>
<TR>
<TD height="126" vAlign=top><BR>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD class=thtahomasmall bgColor=#c7d2e7
height=5><div align="center">ดูรายละเอียดเฉพาะรถยนต์ คลิ๊กที่<font color="#FF0000">ทะเบียนรถยนต์</font></div></TD>
</TR>
<TR>
<TD height="46"
bgColor=#f0f8ff class=thtahomasmall
style="BORDER-RIGHT: #c7d2e7 1px solid; BORDER-TOP: #c7d2e7 1px solid; BORDER-LEFT: #c7d2e7 1px solid; BORDER-BOTTOM: #c7d2e7 1px solid"><table width="41%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td class=thtahomasmall bgColor=#c7d2ff width="45%"><div align="center">ทะเบียนรถยนต์</div></td>
<td width="55%" class=thtahomasmall bgColor=#c7d2ff><div align="center">เลขระยะทางสุดท้าย</div></td>
</tr>
<?php
mysql_select_db($__db__);
mysql_query(" SET NAMES 'tis620'; ");
$sql="select car_id as id,car_start,car_end from tran where car_id <> 'เลือกท' group by id order by car_id desc";
$result=mysql_query($sql);
while ($object = mysql_fetch_object($result))
{
$car_id = $object ->id;
if ($car_id == "0")
{
$car_id = "" ;
}
$car_start = $object ->car_start;
$car_end = $object ->car_end;
$sum = $car_end - $car_start
?>
<tr>
<td height="24">
<div align="center"><a href="rep_driver2.php?car_id=<? echo $car_id ; ?>"><? echo $car_id ; ?></a></div></td>
<td> <div align="center"><? echo $car_end ; ?></div></td>
</tr>
<?php
}
?>
</table></TD>
</TR>
</TBODY>
</TABLE> </TD>
</TR>
</TBODY>
</TABLE>
</form>
</body>
</html>