📄 browse.asp
字号:
<!--#include file="../includes/db.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公自动化系统</title>
<%
call insureID()
%>
<style type="text/css">
<!--
.style1 {
color: #000000;
font-weight: bold;
}
-->
</style>
</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 Dept_name
if session("Position_id")<3 then
Dept_id=request("Dept_id")
Dept_name=request("Dept_name")
if Dept_id="" or Dept_name="" then
call trigErr()
end if
else
Dept_id=session("Dept_id")
Dept_name=session("Dept_name")
end if
sql="SELECT Clients_info.Client_id, Clients_info.Company_name, Clients_info.Submited, " _
&"Clients_info.Confirmed, Users_info.Name, Users_info.User_id, Dept.Dept_name " _
&"FROM Clients_info INNER JOIN Users_info " _
&"ON Clients_info.User_id = Users_info.User_id INNER JOIN Dept " _
&"ON Users_info.Dept_id = Users_info.Dept_id " _
&"WHERE Dept.Dept_id= "&Dept_id
call openDB()
rs.open sql,conn,1,1
%>
<table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5A8BCE">
<tr>
<td height="35" align=left bgcolor="#E6F7FF"><div align="center" class="style1"><%=Dept_name%>部门客户清单</div></td>
</tr>
</table>
<table width="75%" border="0" cellpadding="4" cellspacing="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#5A8BCE">
<tr bgcolor="#FCFCFC" >
<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 bgcolor=""#FCFCFC""><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("User_id")=rs("User_id") then
response.write "<tr align=center bgcolor=""#FCFCFC"">"
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("User_id")=rs("User_id") or session("POSITION_ID")=4 then
Counter=Counter+1
response.write "<tr align=center bgcolor=""#FCFCFC"">"
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("Name")&"</td>"
response.write "</tr>"
end if
rs.movenext
else
response.write "<tr align=center bgcolor=""#FCFCFC"">"
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("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 + -