?? not_using.php
字號:
<?
include_once 'inc/auth.php';
include_once 'inc/utility_all.php';
echo '
<html>
<head>
<title>未使用車輛</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/vehicle.gif" HEIGHT="20">';
echo '<s';
echo 'pan class="big3"> 未使用車輛</span>
</td>
</tr>
</table>
';
$query = 'SELECT * from VEHICLE where USEING_FLAG=\'0\'';
$cursor = exequery ($connection, $query);
$V_COUNT = 0;
while ($ROW = mysql_fetch_array ($cursor))
{
++$V_COUNT;
$V_ID = $ROW['V_ID'];
$V_MODEL = $ROW['V_MODEL'];
$V_NUM = $ROW['V_NUM'];
$V_DRIVER = $ROW['V_DRIVER'];
$V_TYPE = $ROW['V_TYPE'];
$V_TYPE_DESC = get_code_name ($V_TYPE, 'VEHICLE_TYPE');
if (($V_COUNT == 1))
{
echo '<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
<tr class="TableHeader">
<td nowrap align="center">廠牌型號</td>
<td nowrap align="center">車牌號</td>
<td nowrap align="center">司機</td>
<td nowrap align="center">類型</td>
<td nowrap align="center">操作</td>
</tr>
';
}
echo ' <tr class="TableData">
<td nowrap align="center">';
echo $V_MODEL;
echo '</td>
<td nowrap align="center">';
echo $V_NUM;
echo '</td>
<td nowrap align="center">';
echo $V_DRIVER;
echo '</td>
<td nowrap align="center">';
echo $V_TYPE_DESC;
echo '</td>
<td nowrap align="center" width="25%">
<a href="javascript:;" onClick="window.open(\'../vehicle_detail.php?V_ID=';
echo $V_ID;
echo '\',\'\',\'height=360,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left=250,left=280,top=160,resizable=yes\');">詳細信息</a>
<a href="javascript:;" onClick="window.open(\'../order_detail.php?V_ID=';
echo $V_ID;
echo '\',\'\',\'height=400,width=700,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left=250,top=170,resizable=yes\');">預定情況</a>
</td>
</tr>
';
}
if ((0 < $V_COUNT))
{
echo ' </table>
';
}
else
{
message ('', '無未使用的車輛');
}
echo '
</body>
</html>
';
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -