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

📄 liblist.asp

📁 档案管理系统
💻 ASP
字号:
<!--#include file="docdb.inc"-->
<%
	if "" & request.QueryString("docclass") = "" then
		 response.Write "<form name=""form1"" method=""get"" action=""liblist.asp"">" & vbCr
          response.Write "请选择档案库" & vbCr
          response.Write "<select name=""docclass"">" & vbCr
		  writeDocClsListOption ""
		 response.Write "</select>" & vbCr
          response.Write "<input type=""submit"" name=""Submit"" value=""进入"">" & vbCr
        response.Write "</form>" & vbCr
	else
	dim strDocCls
	dim adoRS
	dim strQuery
	strDocCls = "" & Trim(request.QueryString("docclass"))
	if isWritableForDocCls(strDocCls) <> 1 then
		raiseErr "您无权管理此档案库"
	end if
	strQuery = "select * from libinfo where state=0"
	set adoRS=server.createobject("ADODB.Recordset")
	adoRS.Open strQuery, getConnection(), , , adCmdText
	
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" src="../include/tools.js"></script>
</head>

<body>
<h3 align="center">本档案库中借阅申请列表</h3>
<table width="95%" border="1">
  <tr> 
    <td><div align="center">档案名称</div></td>
    <td><div align="center">借阅人</div></td>
    <td><div align="center">操作</div></td>
  </tr>
  <%
  	while not adoRS.EOF
		if getDocClsById(adoRS("document")) = strDocCls then
  %>
    <tr> 
    <td><div align="center"><%=getDocNameById(adoRS("document"))%></div></td>
    <td><div align="center"><%=adoRS("borrower")%></div></td>
    <td><div align="center"> <a href="libinfo.asp?id=<%=adoRS("id")%>">察看</a> 
      </div></td>
  </tr>
  <%
  		end if
  adoRS.MoveNext
  Wend
  %>
</table>


<%
	adoRS.Close
	set adoRS = nothing
	dim adoRS2
	dim strQuery2
	strQuery2 = "select * from libinfo where state=1"
	set adoRS2=server.createobject("ADODB.Recordset")
	adoRS2.Open strQuery2, getConnection(), , , adCmdText
%>
<h3 align="center">本档案库中已借出列表</h3>
<table width="95%" border="1">
  <tr> 
    <td><div align="center">档案名称</div></td>
    <td><div align="center">借阅人</div></td>
    <td><div align="center">操作</div></td>
  </tr>
  <%
  	while not adoRS2.EOF
		if getDocClsById(adoRS2("document")) = strDocCls then
  %>
    <tr> 
    <td><div align="center"><%=getDocNameById(adoRS2("document"))%></div></td>
    <td><div align="center"><%=adoRS2("borrower")%></div></td>
    <td><div align="center"> <a href="libinfo.asp?id=<%=adoRS2("id")%>">察看</a> 
      </div></td>
  </tr>
  <%
  		end if
  adoRS2.MoveNext
  Wend
  %>
</table>
</body>
</html>
<%
	adoRS2.Close
	set adoRS2 = nothing
	end if
%>

⌨️ 快捷键说明

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