tzcontentdrfgwdfgrtoksss.asp

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

ASP
209
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%
Dim Recordset1__varid
Recordset1__varid = "302"
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.入库时间,文件信息info.邮件编号  FROM infoall,文件信息info  WHERE (infoall.id=" + Replace(Recordset1__varid, "'", "''") + " and infoall.信息属性='通知'and 文件信息info.信息属性来源='通知')"
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 = "1"
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, "'", "''") + ""
Recordset3.CursorType = 0
Recordset3.CursorLocation = 2
Recordset3.LockType = 1
Recordset3.Open()

Recordset3_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>
</head>

<body>
<div align="center">
  <table width="500" border="0" cellpadding="2" cellspacing="1" bgcolor="#0066CC">
    <tr>
      <td><div align="center"><span class="style1">通知</span></div></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td><p align="center"><%=(Recordset1.Fields.Item("标题").Value)%></p>
      <p align="left"><%= HTMLEncode(Recordset1.Fields.Item("内容").Value)%></p>
        <p align="right">&nbsp;</p>
      <p align="left">                                <%=(Recordset1.Fields.Item("发送人姓名").Value)%><br>
        <% if not Recordset3.eof or not Recordset3.bof then %>
        <A HREF="downfujianfiless.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>">下载附件</A>
        <%else%>
本通知无公文..
<%end if%>
<br>
      </p>
      <p align="right"><%=(Recordset1.Fields.Item("入库时间").Value)%></p></td>
    </tr>
  </table>
  <br>
  <br>
  <a href="tzlisttrgytry356.asp">返回
</a></div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
Recordset3.Close()
Set Recordset3 = Nothing
%>

⌨️ 快捷键说明

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