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

📄 tzcontedteail.asp

📁 绿叶oa系统办公自动化 2008.工作日志管理,文件管理
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/Connections/oavbsconn.asp" -->
<!--#include virtual="/Connections/ifr/ifrasp.asp" -->

<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="/index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
  If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
         (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
    MM_grantAccess = true
  End If
End If
If Not MM_grantAccess Then
  MM_qsChar = "?"
  If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  MM_referrer = Request.ServerVariables("URL")
  if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
  Response.Redirect(MM_authFailedURL)
End If
%>
<%
Dim Recordset1__varid
Recordset1__varid = "525"
If (request.querystring("id")      <> "") Then 
  Recordset1__varid = request.querystring("id")     
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT infoall.id,infoall.标题,infoall.内容,infoall.发送人姓名,infoall.入库时间  FROM infoall  WHERE (infoall.id=" + Replace(Recordset1__varid, "'", "''") + " and infoall.信息属性='通知')"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Recordset2__MMColParam
Recordset2__MMColParam = "172"
If (Request.QueryString("ID")  <> "") Then 
  Recordset2__MMColParam = Request.QueryString("ID") 
End If
%>
<%
Dim Recordset2__varuser
Recordset2__varuser = "sq"
If (Session("userssdfgfhtrh")  <> "") Then 
  Recordset2__varuser = Session("userssdfgfhtrh") 
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT *  FROM 信息已读记录  WHERE 信息编号 = " + Replace(Recordset2__MMColParam, "'", "''") + " and 信息已读人帐号='" + Replace(Recordset2__varuser, "'", "''") + "'"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 3
Recordset2.LockType = 3
Recordset2.Open()
if Recordset2.eof then
Recordset2.addnew
Recordset2("信息编号")=request.querystring("ID")
Recordset2("信息已读人帐号")=Session("userssdfgfhtrh")
Recordset2("信息已读人姓名")=Session("names")
Recordset2("信息属性")="通知"
Recordset2.update
Recordset2_numRows = 0
end if
%>
<%
Dim Recordset3__varid
Recordset3__varid = "454"
If (request.querystring("id")  <> "") Then 
  Recordset3__varid = request.querystring("id") 
End If
%>
<%
Dim Recordset3
Dim Recordset3_numRows

Set Recordset3 = Server.CreateObject("ADODB.Recordset")
Recordset3.ActiveConnection = MM_oavbsconn_STRING
Recordset3.Source = "SELECT 文件信息info.文件名,文件信息info.文件名,文件路径,文件大小,文件上传时间,邮件编号,infoall.id  FROM 文件信息info inner join  infoall on 文件信息info.邮件编号=infoall.id  WHERE 信息属性='通知'and infoall.id=" + Replace(Recordset3__varid, "'", "''") + " and 文件信息info.信息属性来源='通知'"
Recordset3.CursorType = 0
Recordset3.CursorLocation = 2
Recordset3.LockType = 1
Recordset3.Open()

Recordset3_numRows = 0
%>
<%
Dim Recordset4__varbumen
Recordset4__varbumen = "1"
If (Request.Querystring("部门")       <> "") Then 
  Recordset4__varbumen = Request.Querystring("部门")      
End If
%>
<%
Dim Recordset4
Dim Recordset4_numRows

Set Recordset4 = Server.CreateObject("ADODB.Recordset")
Recordset4.ActiveConnection = MM_oavbsconn_STRING
Recordset4.Source = "SELECT infoall.id,infoall.标题,infoall.内容,infoall.发送人姓名,infoall.入库日期,发送人部门,入库时间  FROM infoall  WHERE infoall.信息属性 = '通知' and 发送人部门='" + Replace(Recordset4__varbumen, "'", "''") + "'  ORDER BY infoall.id desc,infoall.最后更新时间 desc"
Recordset4.CursorType = 0
Recordset4.CursorLocation = 2
Recordset4.LockType = 1
Recordset4.Open()

Recordset4_numRows = 0
%>
<%
Dim MM_paramName 
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

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
%>
<html>
<head>
<%
function HTMLEncode(fString)

	fString = replace(fString, ">", "&gt;")
	fString = replace(fString, "<", "&lt;")
	fString = Replace(fString, CHR(13), "")
	fString = replace(fString,chr(32),"&nbsp;")
	fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
	fString = Replace(fString, CHR(10), "<BR>")
	HTMLEncode = fString

end function
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>通知详情</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="/css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {color: #FF0000}
-->
</style>
</head>

<body>
<div align="center">
  <% If Not Recordset4.EOF Or Not Recordset4.BOF Then %>
  <div align="center">
    <table width="70%" border="0" cellpadding="2" cellspacing="1" bgcolor="#399CA0">
      <tr>
        <td bgcolor="#399CA0"><div align="center"><span class="style1">通知</span></div></td>
      </tr>
      <tr bgcolor="#FFFFFF">
        <td><p align="center"><%=(Recordset4.Fields.Item("标题").Value)%></p>
          <p align="left"><%= HTMLEncode(Recordset4.Fields.Item("内容").Value)%></p>
          <p align="right">&nbsp;</p>
          <p align="left"> <br>                          
            发布人:<%=(Recordset4.Fields.Item("发送人姓名").Value)%>    <br>
          </p>
        <p align="right"><%=(Recordset4.Fields.Item("入库时间").Value)%></p></td>
      </tr>
    </table>
  </div>
  <% End If ' end Not Recordset4.EOF Or NOT Recordset4.BOF %>

  <p align="center">      <br>
    <% If Recordset4.EOF And Recordset4.BOF Then %>
    <img src="/toall/jfoanet/img/45.gif" width="28" height="24">很抱歉,<span class="style2"><%=Request.Querystring("部门")%></span> 暂无通知..
    <% End If ' end Recordset4.EOF And Recordset4.BOF %>
<br>
  <a href="javascript:history.go(-1)">返回 </a>  <br>
  </p>
  <p>&nbsp;</p>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
Recordset3.Close()
Set Recordset3 = Nothing
%>
<%
Recordset4.Close()
Set Recordset4 = Nothing
%>

⌨️ 快捷键说明

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