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

📄 tzenews.asp

📁 本oa系统内部短信.手机短信.文件传输.公文收发.邮件服务.共享下载.内部论坛等功能
💻 ASP
字号:
<%  
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<!--#include file="../../Connections/oavbsconn.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 *  FROM 新闻动态  where id=" + Replace(Recordset1__varid, "'", "''") + "  "
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__varid
Recordset4__varid = "22"
If (Request("ID")  <> "") Then 
  Recordset4__varid = Request("ID") 
End If
%>
<%
Dim Recordset4
Dim Recordset4_numRows

Set Recordset4 = Server.CreateObject("ADODB.Recordset")
Recordset4.ActiveConnection = MM_oavbsconn_STRING
Recordset4.Source = "SELECT count(id) as jiaoxueyiduid  FROM 信息已读记录  WHERE 信息编号=" + Replace(Recordset4__varid, "'", "''") + " "
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">
<!--
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">
<!--
.style20 {	color: #FFFFFF;
	font-weight: bold;
}
.style21 {font-size: 12px}
-->
</style>
</head>

<body><table width="200" height="10" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
<div align="center"></div>
<div align="center">  <table width="96%" 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="style20">新 闻 动 态</span></div></td>
      <td width="6" height="21"><img src="../../img/bbs/rightlin1.gif" width="6" height="21"></td>
    </tr>
  </table>
  <table width="96%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
    <tr>
      <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="1" style="word-break:break-all;Width:fixed">
        <tr bgcolor="#FFFFFF">
          <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
            <tr>
              <td height="6"></td>
            </tr>
            <tr>
              <td><div align="center"><%=(Recordset1.Fields.Item("主题").Value)%><br>
                             <span class="style21">
        <%if Recordset1("最后更新日期")="2006-10-1" then%>
发布时间:<%=(Recordset1.Fields.Item("时间").Value)%>
<%else%>
最后更新:<%=(Recordset1.Fields.Item("最后更新时间").Value)%>
<%end if%>
  点击:<%=(Recordset4.Fields.Item("jiaoxueyiduid").Value)%></span></div></td>
            </tr>
            <tr>
              <td><hr width="96%" size="1" color="#5AAE18"></td>
            </tr>
          </table>
            <p align="left"><%= (Recordset1.Fields.Item("内容").Value)%></p>
              <p align="right">&nbsp;</p>
              <p align="left"> <br>
                                                 <span class="style21">发布人:<%=(Recordset1.Fields.Item("提交人姓名").Value)%>    <br>
                                                           <%=(Recordset1.Fields.Item("时间").Value)%></span></p>
            </td>
        </tr>
      </table></td>
    </tr>
  </table></p>
  <a href="javascript:history.go(-1)">返回 </a></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 + -