reply.asp

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

ASP
167
字号
<%@LANGUAGE="VBSCRIPT"%>
<%Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"%>
<%
' *** 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
%><!--#include file="../../Connections/oavbsconn.asp" -->
<!--#include file="../fengge/config.asp" -->
<%
Dim r__varid
r__varid = "1"
If (request("id")    <> "") Then 
  r__varid = request("id")   
End If
%>
<%
Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT id,标题,内容  FROM bssdsghgdjne6tynjhdnhfsthe65  WHERE id=" + Replace(r__varid, "'", "''") + " and 允许回帖='是'  ORDER BY ID ASC"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 1
r.Open()
r_numRows = 0
%>
<%if r.eof and r.bof then
r.Close()
Set r = Nothing%>

<script>
{
alert("本主题已屏蔽回帖。");history.go(-1)
}
</script>
<%response.end()
end if%>
<%
Dim webtiles
Dim webtiles_numRows

Set webtiles = Server.CreateObject("ADODB.Recordset")
webtiles.ActiveConnection = MM_oavbsconn_STRING
webtiles.Source = "SELECT 页面名称  FROM webtitles  WHERE 模块名称 = '论坛' and 描述='回复帖子'"
webtiles.CursorType = 0
webtiles.CursorLocation = 2
webtiles.LockType = 1
webtiles.Open()

webtiles_numRows = 0
%><%Function LoseHtml(ContentStr)
 Dim ClsTempLoseStr,regEx
 ClsTempLoseStr = Cstr(ContentStr)
 Set regEx = New RegExp
 regEx.Pattern = "<\/*[^<>]*>"
 regEx.IgnoreCase = True
 regEx.Global = True
 ClsTempLoseStr = regEx.Replace(ClsTempLoseStr,"")
 LoseHtml = ClsTempLoseStr
End function
%>
<styl
<html>
<head>
<style type="text/css">
<!--
.style6 {font-size: 12px}
-->
</style>
<link href="../../css/input.css" rel="stylesheet" type="text/css">
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style7 {
	color: #FFFFFF;
	font-weight: bold;
}
.style8 {
	color: #054B0D;
	font-weight: bold;
}
-->
</style>
<body>
<div align="center">
<div align="center">
<div class="RoundedCorner"> 
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1"><%=(webtiles.Fields.Item("页面名称").Value)%></span>
</div>
  
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="<%=secaiid%>">
    <tr>
      <td bgcolor="#FFFFFF"><form name="form1" method="post" action="rplypost.asp">
        <table width="99%" border="0" cellpadding="2" cellspacing="0">
          <tr bgcolor="#FFFFFF">
            <td height="11" colspan="2"></td>
            </tr>
          <tr bgcolor="#FFFFFF">
            <td height="27"><div align="right">主 题:</div></td>
            <td bgcolor="#FFFFFF"><span class="style8"><%=(r.Fields.Item("标题").Value)%></span></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="8" colspan="2"><div align="right"></div></td>
            </tr>
          <tr bgcolor="#FFFFFF">
            <td width="68"><div align="right"><br>
                  回 复:</div></td>
            <td width="682" bgcolor="#FFFFFF"><div align="left">
              <input name="content" type="hidden" id="content">
                  <iframe ID="content" src="../htmledit/ewebeditor.asp?id=content&style=standard" frameborder="0" scrolling="no" width="600" HEIGHT="380"></iframe>
            </div></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td><div align="right">原 帖:</div></td>
            <td bgcolor="#FFFFFF"><p>
              <textarea name="textarea" cols="60" rows="7" readonly="true"><%=LoseHtml(r.Fields.Item("内容").Value)%></textarea>
            </p>
              </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="12" colspan="2"><input name="id" type="hidden" id="id" value="<%=(r.Fields.Item("id").Value)%>">
              <input name="bt" type="hidden" id="bt" value="<%=(r.Fields.Item("标题").Value)%>">
              <input name="c" type="hidden" id="c" value="<%=request("c")%>"></td>
            </tr>
          <tr bgcolor="#FFFFFF">
            <td>&nbsp;</td>
            <td bgcolor="#FFFFFF"><div align="left">
                <input name="提交" type=submit style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 回 帖 " >
  
 <input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 重 填 " > 
 <input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px"   onClick="javascript:history.go(-1)" value= " 取 消 " >
          </tr>
        </table>
      </form></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</div>
</body            
></html>
<%
r.Close()
Set r = Nothing
%>
<%
webtiles.Close()
Set webtiles = Nothing
%>

⌨️ 快捷键说明

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