📄 usercar_edit.asp
字号:
<!--#include file="../inc/NoCatch.asp"-->
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<%
'response.buffer=false
'------------------------------------------------设置参数
LoginID=trim(Session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
maxmessage=15 '每页显示记录数
currentpage=request("page") '当前页码
Search=request("Search") '上次查询条件
status=Request("status") : if status="" then status=0 '排序字段
'------------------------------------------------
'分页取记录 (返回rs对象)
'rs.recordcount 为记录总数
'rs.PageSize 为本页记录数
'
set rs=Server.CreateObject("ADODB.RecordSet")
sql="SELECT tbioa_UserCar.*, tbioaUser.Name AS User_Name, tbioaDepartment.Name AS Department_Name FROM tbioa_UserCar INNER JOIN tbioaUser ON tbioa_UserCar.User_ID = tbioaUser.ID INNER JOIN tbioaDepartment ON tbioa_UserCar.Use_Depar_ID = tbioaDepartment.ID Where tbioa_UserCar.PartMan_ID = "&LoginID&" And Stau_IsOK < 1 Order By Stau_IsOK"
'response.write sql
rs.open sql,oConn,1,1
Showpage=Paging(rs,maxmessage,currentpage,"status="&status&"&Search="&Server.URLEncode(Search))
'------------------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>用车申请</title>
</head>
<body topmargin="10" leftmargin="10">
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<td><img border="0" src="../images/icon_menu.gif" align="left">审批用车申请 </td>
</tr>
</table>
<hr width="100%" size=1 color="#000000">
<%=Showpage%>
<%if rs.eof then%>
<center>暂无相关信息!</center>
<%else%>
<table width="100%" cellspacing="1" cellpadding="2" class="tab">
<tr>
<td class="tdTop" nowrap>申请人</td>
<td class="tdTop" nowrap>申请时间</td>
<td class="tdTop" nowrap>用车时间</td>
<td class="tdTop" nowrap>用车联系人</td>
<td class="tdTop" nowrap>当前状态</td>
<td class="tdTop" nowrap>操作</td>
</tr>
<%for i = 0 to rs.PageSize-1
If rs.EOF Then Exit For
if i mod 2 = 0 then td_class="td1" else td_class="td2"
' if status="qxe" then td_class="td6"
' if status="qxe" and rs("qxe")>date then td_class="td5"
%>
<tr>
<td class="<%=td_class%>"><CENTER><%=HtmlOut(rs("User_Name"))%></CENTER></td>
<td class="<%=td_class%>"><CENTER><%=HtmlOut(rs("GetFr_Date"))%></CENTER></td>
<td class="<%=td_class%>"><CENTER><%=HtmlOut(rs("Use_Date"))%></CENTER></td>
<td class="<%=td_class%>"><CENTER><%=HtmlOut(rs("Use_Man"))%></CENTER></td>
<td class="<%=td_class%>"><CENTER><%
Select Case Rs("Stau_IsOK")
Case 0
Response.Write "<font color=orange>等待部门审批</font>"
Case 1
If Rs("PartMan_OK") = 0 Then
Response.Write "<font color=green>等待驾驶员确认</font>"
Else
Response.Write "<font color=red>审批未通过</font>"
End If
Case 2
If Rs("Driver_OK") = 0 Then
Response.Write "<font color=green>驾驶员已确认</font>"
Else
Response.Write "<font color=red>驾驶员不确认</font>"
End If
End Select
%></CENTER></td>
<td class="<%=td_class%>"><CENTER>
<a href="UserCar_View.asp?ID=<%=Rs("ID")%>">查看</a>
<a href="UserCar_View_Edit.asp?ID=<%=Rs("ID")%>&Page=<%=currentpage%>">批复</a>
</CENTER></td>
</tr>
<%
rs.MoveNext
next
%>
</table>
<%end if%>
</body>
</html>
<%'释放对象变量
rs.close
oConn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -