?? submit.php
字號:
<?php
include_once( "inc/auth.php" );
include_once( "inc/check_type.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\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\" width=\"22\" height=\"18\"><span class=\"big3\"> 車輛使用信息修改</span>\r\n </td>\r\n </tr>\r\n</table>\t\r\n\r\n";
if ( $VU_END != "" )
{
$TIME_OK = is_date_time( $VU_END );
if ( !$TIME_OK )
{
message( "錯誤", "結束時間格式不對,應形如 1999-1-2 09:30:00" );
button_back( );
exit( );
}
}
if ( $VU_START != "" && $VU_END != "" && $VU_END < $VU_START )
{
message( "錯誤", "起始日期不能小于結束日期!" );
button_back( );
exit( );
}
if ( $VU_MILEAGE != "" && !is_numeric( $VU_MILEAGE ) )
{
message( "錯誤", "里程應為數字!" );
button_back( );
exit( );
}
$query = "update VEHICLE_USAGE set VU_END='".$VU_END."',VU_DESTINATION='{$VU_DESTINATION}',VU_MILEAGE='{$VU_MILEAGE}',VU_REMARK='{$VU_REMARK}' where VU_ID={$VU_ID}";
exequery( $connection, $query );
message( "提示", "修改成功!" );
echo "<br><br>\r\n<center>\r\n <input type=\"button\" value=\"關閉\" class=\"BigButton\" onClick=\"window.close();\" title=\"關閉窗口\">\r\n</center>\r\n</body>\r\n</html>";
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -