📄 not_using.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>未使用车辆</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/vehicle.gif\" HEIGHT=\"20\"><span class=\"big3\"> 未使用车辆</span>\r\n </td>\r\n </tr>\r\n</table>\r\n";
$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 class=\"TableList\" width=\"95%\">\r\n <tr class=\"TableHeader\">\r\n <td nowrap align=\"center\">厂牌型号</td>\r\n <td nowrap align=\"center\">车牌号</td>\r\n <td nowrap align=\"center\">司机</td>\r\n <td nowrap align=\"center\">类型</td>\r\n <td nowrap align=\"center\">操作</td>\r\n </tr>\r\n";
}
echo " <tr class=\"TableData\">\r\n <td nowrap align=\"center\">";
echo $V_MODEL;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $V_NUM;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $V_DRIVER;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $V_TYPE_DESC;
echo "</td>\r\n <td nowrap align=\"center\" width=\"25%\">\r\n <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> \r\n <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> \r\n </td>\r\n </tr>\r\n";
}
if ( 0 < $V_COUNT )
{
echo " </table>\r\n";
}
else
{
message( "", "无未使用的车辆" );
}
echo "\r\n</body>\r\n\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -