shoubumnetypesdfhsgf.asp
来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 610 行 · 第 1/2 页
ASP
610 行
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links
Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev
Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam
MM_keepMove = MM_keepBoth
MM_moveParam = "index"
' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
MM_moveParam = "offset"
If (MM_keepMove <> "") Then
MM_paramList = Split(MM_keepMove, "&")
MM_keepMove = ""
For MM_paramIndex = 0 To UBound(MM_paramList)
MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
End If
Next
If (MM_keepMove <> "") Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If
' set the strings for the move to links
If (MM_keepMove <> "") Then
MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&"
End If
MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
MM_moveFirst = MM_urlStr & "0"
MM_moveLast = MM_urlStr & "-1"
MM_moveNext = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
MM_movePrev = MM_urlStr & "0"
Else
MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<%
function HTMLEncode(fString)
fString = replace(fString, ">", ">")
fString = replace(fString, "<", "<")
fString = Replace(fString, CHR(13), "")
fString = replace(fString,chr(32)," ")
fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
fString = Replace(fString, CHR(10), "<BR>")
HTMLEncode = fString
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style15 {color: #000000}
.style16 {
color: #FFFFFF;
font-size: 13px;
}
.style17 {font-size: 12px}
.style20 {font-size: 14px}
.style21 {
color: #5AAE18;
font-weight: bold;
}
.style22 {color: #FF0000}
-->
</style>
</head>
<body>
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6" height="21"><img src="../../img/bbs/leftlin1.gif" width="6" height="21"></td>
<td width="936" bgcolor="#5AAE18"><div align="center">
<div align="center" class="style1"><span class="style3 style2 style1 style16"><strong>部 门 日 志</strong></span></div>
<span class="style1"></span></div></td>
<td width="6" height="21"><img src="../../img/bbs/rightlin1.gif" width="6" height="21"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#5AAE18">
<tr>
<td bgcolor="#FFFFFF"><%
While ((Repeat2__numRows <> 0) AND (NOT Recordset2.EOF))
%>
<A HREF="shoubumnetypesdfhsgf.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "部门=" & Recordset2.Fields.Item("部门").Value %>"><%=(Recordset2.Fields.Item("部门").Value)%></A>
<%
Repeat2__index=Repeat2__index+1
Repeat2__numRows=Repeat2__numRows-1
Recordset2.MoveNext()
Wend
%>
<a href="showrizhibiaotiandneirongdg.asp">日志列表</a> </td>
</tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<div align="center">
<% If Not r.EOF Or Not r.BOF Then %>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6" height="21"><img src="../../img/bbs/leftlin1.gif" width="6" height="21"></td>
<td width="936" bgcolor="#5AAE18"><div align="center">
<div align="center" class="style1"><span class="style3 style2 style1 style16"><strong><%=request("部门")%> 日志列 表</strong></span></div>
<span class="style1"></span></div></td>
<td width="6" height="21"><img src="../../img/bbs/rightlin1.gif" width="6" height="21"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#5AAE18">
<%
While ((Repeat1__numRows <> 0) AND (NOT r.EOF))
%>
<tr bgcolor="#C6EBDE">
<td width="70" bgcolor="#C6EBDE"><div align="right"><span class="style14 style17">标 题:</span></div></td>
<td bgcolor="#C6EBDE"><span class="style10"><%=(r.Fields.Item("标题").Value)%> <span class="style8 style15"><span class="style1 style17">日志日期:<span class="style20"><span class="style17"><span class="style15"><%=(r.Fields.Item("日期").Value)%></span></span></span></span></span></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="70" valign="top"><div align="right"><span class="style14 style17">内 容:</span></div></td>
<td width="891" class="style3" style="word-break:break-all;Width:fixed"><%=(r.Fields.Item("内容").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right"><span class="style1 style17">发送人:</span></div></td>
<td><div align="right" class="style8 style15">
<div align="left"><strong><strong><span class="style17"> </span></strong></strong>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"><span class="style1 style17"><%=(r.Fields.Item("姓名").Value)%> </span></td>
<td width="16%"><span class="style1 style17">部门:<%=(r.Fields.Item("部门").Value)%></span></td>
<td width="69%"><span class="style1 style17"><span class="style17">
<%if r("最后更新日期")<>"2006-10-1" then%>
<span class="style21">最后更新:<%=(r.Fields.Item("最后更新时间").Value)%></span>
<%end if%>
提交时间:<%=(r.Fields.Item("时间").Value)%> </span></span></td>
</tr>
</table>
<span class="style1 style17"><span class="style17">
</span></span><span class="style1 style17"><span class="style17">
</span></span><span class="style1 style17"><span class="style17">
</span></span></div>
</div></td>
</tr>
<tr bgcolor="#FFFFFF"><%rp=r("批阅内容")%>
<%if rp<>"" then%>
<td><div align="right">批 阅:</div></td>
<td><%=rp%><br>
<br>
批阅人:<%=(r.Fields.Item("批阅人姓名").Value)%> 部门:<%=(r.Fields.Item("批阅人部门").Value)%>
<%if r("批阅更新时间")<>"2006-10-1" then%>
<span class="style21">更新时间:<%=(r.Fields.Item("批阅更新时间").Value)%></span>
<%end if%>
时间:<%=(r.Fields.Item("批阅时间").Value)%></td>
</tr><%end if%>
<tr bgcolor="#FFFFFF">
<td><div align="right">批 阅:</div></td>
<td>
<%if rp<>"" then %>
<img src="../../img/pen1.gif" width="24" height="21">
<%else%>
<img src="../../img/pen.gif" width="24" height="21">
<%end if%>
<a href="piyue/addpiyue.asp?id=<%=(r.Fields.Item("id").Value)%>">
<%if rp<>"" then %>
修改批阅
<%else%>
撰写批阅
<%end if%>
</a>
<%if rp<>"" then %>
<a href="piyue/del.asp?id=<%=(r.Fields.Item("ID").Value)%>">删除批阅</a>
<%end if%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
r.MoveNext()
Wend
%>
</table>
<p class="style17"> 记录 <%=(r_first)%> 到 <%=(r_last)%> (总共 <%=(r_total)%> )</p>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="31%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一页</a>
<% End If ' end Not MM_atTotal %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后一页</a>
<% End If ' end Not MM_atTotal %>
</td>
</tr>
</table>
<table width="13%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="javascript:history.go(-1)"><img src="/toall/gw/img/gif/back.gif" width="37" height="45" border="0"></a></td>
</tr>
</table>
<% End If ' end Not r.EOF Or NOT r.BOF %>
</div>
<% If r.EOF And r.BOF Then %>
<p class="style14 style17"><span class="style22"><%=request("部门")%></span>暂无日志</p>
<table width="13%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style14"><a href="javascript:history.go(-1)"><img src="/toall/gw/img/gif/back.gif" width="37" height="45" border="0"></a></td>
</tr>
</table>
<% End If ' end r.EOF And r.BOF %>
</div>
</body>
</html>
<%
r.Close()
Set r = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?