⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/utility.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\r\n";
echo "<s";
echo "cript>\r\nfunction delete_usage(VU_ID)\r\n{\r\n msg='确认要删除该记录么?';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?VU_ID=\" + VU_ID;\r\n  window.location=URL;\r\n }\r\n}\r\n\r\n</script>\r\n\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td><img src=\"/images/manage/asset.gif\" align=\"absmiddle\">车辆维护管理\r\n    </";
echo "td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n  <td>\r\n  <input type=\"image\" src=\"/images/button/addrecord.gif\" onClick=\"location='/ikernel/?APP_ID=31&ID=LOGIN_USER_NAME&ID_VALUE=";
echo $LOGIN_USER_ID;
echo "';\" title=\"添加车辆维护记录\">\r\n  <input type=\"image\" src=\"/images/button/queryvindicate.gif\" onClick=\"location='/ikernel/?APP_ID=33';\" title=\"车辆维护记录查询\">\r\n  </td>\r\n  </tr>\r\n</table>\r\n<hr width=\"95%\" height=\"1\" align=\"left\" color=\"#ffffff\">\r\n\r\n  \r\n";
$connection = openconnection( );
$query = "SELECT a.VM_REQUEST_DATE,a.VM_REASON,a.VM_FEE,a.VM_PERSON,a.VM_REMARK,b.V_NUM ";
$query .= " FROM vehicle_maintenance a, vehicle b WHERE a.V_ID = b.V_ID";
$cursor = exequery( $connection, $query );
$VM_COUNT = 0;
$ADD_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$VM_COUNT;
	++$ADD_COUNT;
	$V_NUM = $ROW['V_NUM'];
	$VM_REQUEST_DATE = $ROW['VM_REQUEST_DATE'];
	$VM_REASON = $ROW['VM_REASON'];
	$VM_FEE = $ROW['VM_FEE'];
	$VM_PERSON = $ROW['VM_PERSON'];
	$VM_REMARK = $ROW['VM_REMARK'];
	if ( $ADD_COUNT == 1 )
	{
		echo "<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n";
	}
	if ( $VM_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo " <tr class=\"";
	echo $TableLine;
	echo "\">\r\n <td>";
	echo $V_NUM;
	echo "</td>\r\n <td>";
	echo $VM_REQUEST_DATE;
	echo "</td>\r\n  <td>";
	echo $VM_REASON;
	echo "</td>\r\n <td>";
	echo $VM_FEE;
	echo "</td>\r\n <td>";
	echo $VM_PERSON;
	echo "</td>\r\n <td>";
	echo $VM_REMARK;
	echo "</td>\r\n </tr>\r\n\r\n";
}
if ( $ADD_COUNT == 0 )
{
	message( "", "没有维护记录" );
	exit( );
}
else
{
	echo "<thead class=\"TableHeader\">\r\n     <td nowrap >车牌号</td>\r\n      <td nowrap >维护日期</td>\r\n      <td >维护原因</td>\r\n      <td >维护费用</td>\r\n      <td >经办人</td>\r\n      <td >备注</td>\r\n</thead>\r\n";
}
echo "</table>\r\n</body>\r\n\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -