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

📄 documentfilelist.asp

📁 OFFICE办公自动化
💻 ASP
字号:
<%
'功能:待归档公文列表
%>

<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->

<%
'------------------------------------------------设置参数
LoginID=trim(session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
maxmessage=15 '每页显示记录数
currentpage=request("page") '当前页码
Search=request("Search") '上次查询条件

'------------------------------------------------
'------------------------------------------------取记录
'分页取记录 (返回rs对象)
'rs.recordcount 为记录总数
'rs.PageSize 为本页记录数
'
table="tbioaOffice_Document" '表名

'接受查询参数


'查寻条件
if Search="" then
	Search="WHERE "
	Search=Search & "1=1"'可查看所有人录入的记录
	'Search=Search & "userid="&LoginID'只能查看自己录入的记录
	Search=Search & " and step='gd' "
END if
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from " & table & " " & Search & " order by DocumentID desc"
'response.write sql
rs.open sql,oConn,1,1
Showpage=SearchPaging(rs,maxmessage,currentpage,Search)
%>

<html>
<head>
<title>待归档公文</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel='stylesheet' type='text/css' href='../css/main.css'>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<SCRIPT language=javascript>
function WindowOpen(strURL){
  DocumentWin = window.open(strURL,"","toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
  DocumentWin.focus();
}
</SCRIPT>
</head>
<body bgcolor="#ffffff">
<%=Showpage%>
<br>
<%
if rs.RecordCount=0 then
	response.write "<BR><BR>暂时为空!"
else
%>
<table border=0 cellspacing='1' cellpadding='2' width=100% align=center class=tab>
<tr class="tdTop">
  <td align=center nowrap class="td1">编号</td>
  <td align=center nowrap class="td1">主题</td>
  <td align=center nowrap class="td1">作者</td>
  <td align=center nowrap class="td1">类型</td>
  <td align=center nowrap class="td1">日期</td>
  <td colspan="2" align=center nowrap class="td1">操作</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"
%>
<tr>
  <td class="<%=td_class%>"><%=rs("DocumentID")%>&nbsp;</td>
  <td class="<%=td_class%>"><%=rs("Subject")%>&nbsp;</td>
  <td class="<%=td_class%>"><%=GetUserName(rs("Author"))%>&nbsp;</td>
  <td class="<%=td_class%>"><%=rs("FileType")%>&nbsp;</td>
  <td class="<%=td_class%>"><%=CDate(rs("FileDate"))%>&nbsp;</td>
  <td width="20"  nowrap class="<%=td_class%>"><input name="button3" type=button onClick="javascript:location.href='DocumentFileGd.asp?RecordID=<%=rs("RecordID")%>';" value="归档" <% if rs("Status")="EDIT" then Response.write "disabled" %> class="button0" onmouseout=className="button0" onmouseover=className="button1"></td>
</tr>
<%
rs.MoveNext
next
%>
</table>
<%
end if
rs.close
%>

</body>
</html>
<%'释放对象变量
oConn.close
set oConn=nothing
%> 

⌨️ 快捷键说明

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