📄 browse.asp
字号:
<!--#include file="../includes/keepHouse.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>WebOffice</title>
<%
call insureID()
%>
</head>
<body>
<center>
<table border="0" width="100%" height="50" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"></td>
</tr>
</table>
<%
dim Counter
dim COMPANY_NAME
dim DEPT_ID
dim DEPARTMENT
if session("POSITION_ID")<3 then
DEPT_ID=request("DEPT_ID")
DEPARTMENT=request("DEPARTMENT")
if DEPT_ID="" or DEPARTMENT="" then
call trigErr()
end if
else
DEPT_ID=session("DEPT_ID")
DEPARTMENT=session("DEPARTMENT")
end if
sql="SELECT Clients.CLIENT_ID, Clients.COMPANY_NAME, Clients.SUBMITED, " _
&"Clients.CONFIRMED, Personnel.PERSON_NAME, Personnel.PERSONNEL_ID, Department.DEPARTMENT " _
&"FROM Clients INNER JOIN Personnel " _
&"ON Clients.PERSONNEL_ID = Personnel.PERSONNEL_ID INNER JOIN Department " _
&"ON Personnel.DEPT_ID = Department.DEPT_ID " _
&"WHERE Department.DEPT_ID = "&DEPT_ID
call openDB()
rs.open sql,conn,1,1
%>
<table border="0" width="75%" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" bgcolor="#0000FF" height="35" align=left><img border="0" src="../images/back.gif"></td>
<td width="65%" bgcolor="#0000FF" height="35" align=center><b><font color="#FFFFFF"><%=DEPARTMENT%>部门客户清单</font></b></td>
<td width="5%" bgcolor="#0000FF" height="35" align=right><img border="0" src="../images/Close2.gif"></td>
</tr>
</table>
<table border="1" width="75%" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
<tr >
<td width="30%" align=center>客户名</td>
<td width="20%" align=center>是否已提交</td>
<td width="10%" align=center>是否已审核</td>
<td width="15%" align=center>添加人</td>
</tr>
<%
if rs.eof then
response.write "<tr><td width=""75%"" colspan=4 bgcolor=""#FCFCFC"" align=center>"
response.write "本部门暂时没有任何客户信息!"
response.write "</td></tr>"
end if
Counter=0
while not rs.eof
COMPANY_NAME=rs("COMPANY_NAME")
COMPANY_NAME=replaceBack(COMPANY_NAME)
if rs("SUBMITED")=0 then
if session("PERSONNEL_ID")=rs("PERSONNEL_ID") then
response.write "<tr align=center>"
response.write "<td width=""30%""><a href=Read.asp?CLIENT_ID=" _
&rs("CLIENT_ID")&"&Submited=UnSubmit&Confirmed=UnConfirmed"">" _
&rs("COMPANY_NAME")&"</a></td>"
response.write "<td width=""20%"">未提交</td>"
response.write "<td width=""10%"">未审核</td>"
response.write "<td width=""15%"">"&COMPANY_NAME&"</td>"
response.write "</tr>"
end if
rs.movenext
else
if rs("CONFIRMED")=0 then
if session("PERSONNEL_ID")=rs("PERSONNEL_ID") or session("POSITION_ID")=4 then
Counter=Counter+1
response.write "<tr align=center>"
response.write "<td width=""30%""><a href=Read.asp?CLIENT_ID=" _
&rs("CLIENT_ID")&"&Submited=Submited&Confirmed=UnConfirmed"">" _
&COMPANY_NAME&"</a></td>"
response.write "<td width=""20%"">已提交</td>"
response.write "<td width=""10%"">未审核</td>"
response.write "<td width=""15%"">"&rs("PERSON_NAME")&"</td>"
response.write "</tr>"
end if
rs.movenext
else
response.write "<tr align=center>"
response.write "<td width=""30%""><a href=Read.asp?CLIENT_ID=" _
&rs("CLIENT_ID")&"&Submited=Submited&Confirmed=Confirmed"">" _
&COMPANY_NAME&"</a></td>"
response.write "<td width=""20%"">已提交</td>"
response.write "<td width=""10%"">已审核</td>"
response.write "<td width=""15%"">"&rs("PERSON_NAME")&"</td>"
response.write "</tr>"
rs.movenext
end if
end if
wend
call closeDB()
%>
<tr>
<td width="75%" height="50" colspan="4" bgcolor="#EFEFEF" align=center>
[<a href="javaScript:history.back()">返回</a>]
<%
if session("POSITION_ID")>3 then
response.write " [<a href=""Add.asp"">添加</a>]"
end if
if session("POSITION_ID")=4 and Counter>0 then
response.write " [<a href=""Confirm.asp"">审核</a>]"
end if
%>
</td>
</tr>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -