📄 doclist.asp
字号:
<!--#include file="docdb.inc"-->
<%
if "" & request.QueryString("docclass") = "" then
response.Write "<form name=""form1"" method=""get"" action=""doclist.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
strDocCls = "" & Trim(request.QueryString("docclass"))
if isWritableForDocCls(strDocCls) <> 1 then
raiseErr "您无权管理此档案库"
end if
set adoRS = getDocRS(0,"","","","",strDocCls,"")
%>
<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>
<table width="95%" border="1">
<tr>
<td width="190"><div align="center">档案名称</div></td>
<td width="110"><div align="center">机构</div></td>
<td width="86"><div align="center">年度</div></td>
<td width="333"><div align="center">操作</div></td>
</tr>
<%
while not adoRS.EOF
%>
<tr>
<td><div align="center"><%=adoRS("name")%></div></td>
<td><div align="center"><%=adoRS("dept")%></div></td>
<td><div align="center"><%=adoRS("docyear")%></div></td>
<td><div align="center"> <a href="javascript:doWhenConfirm('确定要删除档案<%=adoRS("name")%>吗?','action.asp?op=deldoc&id=<%=adoRS("id")%>')">删除</a>
<a href="docinfo.asp?id=<%=adoRS("id")%>">归档</a><br>
<form name="form1" method="get" action="action.asp">
存到档案库
<select name="todocclass">
<%
writeDocClsListOption ""
%>
</select>
<input type="hidden" name="op" value="changedocclass">
<input type="hidden" name="docid" value="<%=adoRS("id")%>">
<input type="submit" name="Submit" value="执行">
</form>
</div></td>
</tr>
<%
adoRS.MoveNext
Wend
%>
</table>
<p><a href="adddoc.asp?docclass=<%=strDocCls%>">在<%=strDocCls%>档案库中增加档案</a></p>
</body>
</html>
<%
adoRS.Close
set adoRS = nothing
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -