admintzlistdfghwerth.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 608 行 · 第 1/2 页

ASP
608
字号

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
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>

<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-weight: bold}
.style5 {font-size: 12px}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style8 {color: #FF0000}
.style9 {color: #999999}
.style12 {color: #5AAE18; font-weight: bold; }
.style13 {color: #000000}

-->
</style>

</head>
<body>
  <div align="center">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><form name="form1" method="post" action="tzlisttrgytry356fortextquery.asp">
          <table width="96%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="32%" valign="middle">&nbsp;</td>
              <td width="47%" valign="middle"><div align="right">
                  <input name="q" type="text" id="q" value="<%=request("q")%>">
                  <span class="bg"><span class="bg style2"><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff>
                  <input name="submit" type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 24px" value=" 查 询 ">
              </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></span></span> </div></td>
              <td width="4%"><div align="right"><span class="style4"><img src="../../img/txl/16.gif" width="16" height="16"></span></div></td>
              <td width="7%"><span class="style4"><a href="writetz.asp"  class="style4">发布通知</a></span></td>
              <td width="2%"><span class="style4"><img src="../../img/txl/12.gif" width="16" height="16"></span></td>
              <td width="8%"><div align="center" class="style4"><a href="admintzlistdfghwerth.asp">通知管理</a> </div></td>
            </tr>
          </table>
      </form></td>
    </tr>
    </table>
    <% If Not r.EOF Or Not r.BOF Then %>
    <table width="98%" 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"><span class="style1"><span class="style1 style2">通 知 管 理</span></span></div></td>
        <td width="6" height="21" bgcolor="#5AAE18">&nbsp;</td>
      </tr>
    </table>
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#5AAE18">
      <tr>
        <td height="24" colspan="8" bgcolor="#FFFFFF"><% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
&nbsp;<A HREF="tzlisttrgytry356forquery.asp?t=<%=(Recordset1.Fields.Item("部门").Value)%>"><%=(Recordset1.Fields.Item("部门").Value)%></A>
        <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>
        <%if request("t")="" then%>
        <span class="style8"><span class="style9">(共</span></span><span class="style12"><%=(r_total)%></span><span class="style9">条通知)</span>
        <%end if%></td>
      </tr>
      <tr bgcolor="#FFFFFF">
        <td width="38%" height="21"><div align="left"><strong>&nbsp;标 题 </strong></div></td>
        <td width="6%"><div align="center"><strong><span class="style13">发布人</span></strong></div></td>
        <td width="7%"><div align="center"><strong>部 门</strong></div></td>
        <td width="15%"><div align="center"><strong>时 间</strong></div></td>
        <td width="8%"><div align="center"><strong>浏览</strong></div></td>
        <td width="6%"><div align="center" class="style6"><strong>状 态</strong></div></td>
        <td width="7%"><div align="center" class="style7"><strong>开 关</strong></div></td>
        <td width="13%"><div align="center"><strong>操 作</strong></div></td>
      </tr>
      <% 
While ((Repeat2__numRows <> 0) AND (NOT r.EOF)) 
%>
      <tr bgcolor="#FFFFFF" onMouseOver = "this.style.backgroundColor = '#EEEEEE'" onMouseOut = "this.style.backgroundColor = ''">
        <td>&nbsp;<img src="img/icon1.gif" width="8" height="10"><a href="tzcontentdrfgwdfgrtforzuozhe.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "id=" & r.Fields.Item("id").Value %>">
        <% if len(r("标题"))>25 then%>
        <%=(left(r("标题"),25)&"..")%>
        <%else%>
        <%=(r("标题"))%>
        <%end if%>
        </a>
            <%if r("最后更新日期")="2006-10-1" then  %>
            <%
				if DateDiff("d",r("入库日期"),now())<5 then %>
            <%response.Write("<img src=../../img/newgif.gif>")%>
    &nbsp; <%=(r.Fields.Item("入库日期").Value)%>
            <%end if%>
            <%end if%>
            <%if r("最后更新日期")="2006-10-1" then %>
            <%if DateDiff("d",r("入库日期"),now())>5 then %>
            <%=(r.Fields.Item("入库日期").Value)%>
            <%end if%>
            <%end if%>
            <%if r("最后更新日期")<>"2006-10-1" then %>
            <%if DateDiff("d",r("最后更新日期"),now())<5 then %>
            <span class="style8"><%=(r.Fields.Item("最后更新日期").Value)%>[更新]</span>
            <%end if%>
            <%end if%>
            <%if r("最后更新日期")<>"2006-10-1" then %>
            <%if DateDiff("d",r("最后更新日期"),now())>5 then %>
            <%=(r.Fields.Item("最后更新日期").Value)%>
            <%end if%>
            <%end if%></td>
        <td><div align="center"><%=(r.Fields.Item("发送人姓名").Value)%></div></td>
        <td><div align="center"><%=(r.Fields.Item("发送人部门").Value)%></div></td>
        <td><div align="center">
          <div align="center">
            <div align="center">
              <%if r("最后更新日期")="2006-10-1" then%>
              <%=(r.Fields.Item("入库时间").Value)%>
              <%else%>
              <span class="style8"><%=(r.Fields.Item("最后更新时间").Value)%></span>
              <%end if%>
            </div>
          </div>
        </div></td>
        <td><div align="center"><%=(r.Fields.Item("通知点击").Value)%>人,<%=(r.Fields.Item("通知阅读人次").Value)%>次</div></td>
        <td><div align="center" class="style5">
          <div align="center">
            <%if r("开关")="是" then %>
            <img src="../workreport/img/cs-1.gif" width="25" height="16"> <span class="style2">
            <%else%>
            <img src="../workreport/img/cs-3.gif" width="20" height="10"></span> <span class="style2">
            <%end if%>
            </span></div>
        </div></td>
        <td><div align="center">
          <%if r("开关")="关" then %>
          <a href="open.asp?id=<%=(r.Fields.Item("id").Value)%>">开通</a>
          <%else%>
          <a href="close.asp?id=<%=(r.Fields.Item("id").Value)%>">关闭</a>
          <%end if%>
        </div></td>
        <td><div align="center" class="style5"><A HREF="filesupadmin/modifytzasdrgftry45taergbvcvbnegh.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "id=" & r.Fields.Item("id").Value %>">修改</A> <a href="deltz.asp?id=<%=(r.Fields.Item("id").Value)%>" onClick="return confirm('您确定要删除 <%=r("标题")%> 吗?该过程将不可恢复。')">删除</a></div> 
        </td>
      </tr>
      <% 
  Repeat2__index=Repeat2__index+1
  Repeat2__numRows=Repeat2__numRows-1
  r.MoveNext()
Wend
%>
    </table>
    <br>
    <table width="36%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="72%">记录 <%=(r_first)%> 到 <%=(r_last)%> (总共 <%=(r_total)%>个通知) </td>
        <td width="28%"><div align="center"><img src="../../img/up.gif" width="17" height="12"><a href="javascript:history.go(-1)">返回上页</a></div></td>
      </tr>
    </table>
    <br>
    <br>
    <table border="0" width="30%" 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>
    <br>
    <% End If ' end Not r.EOF Or NOT r.BOF %>
  </div>
<p align="center">&nbsp;</p>
  <div align="center">
    <% If r.EOF And r.BOF Then %>
    <span class="style5">您暂未发布通知或已删除..</span><br>
    <img src="../../img/up.gif" width="17" height="12"><a href="javascript:history.go(-1)">返回上页</a>  <br>
    <% End If ' end r.EOF And r.BOF %>
  </div>

</body>
</html>
<%
r.Close()
Set r = Nothing
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

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