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

📄 affiche_view.asp

📁 关于网络渗透技术的详细讲解
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="function.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网站公告</title>
<link href="images/style.css" rel="stylesheet" type="text/css">
<style>
<!--
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}
a:link {
	color: #000000;
	text-decoration: underline;
}
a:visited {
	color: #000000;
	text-decoration: underline;
}
a:hover {
	color: #FF9900;
	text-decoration: none;
}
a:active {
	text-decoration: underline;
}
-->
</style>
</head>

<body leftMargin="0" topMargin="0" bgcolor="#ccccFF">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<%
if request.QueryString("id")="" then
	response.write"<script language=javascript>alert('该条公告并不存在');window.close();</Script>"
	response.end
end if
if myobj.ChkNum(request.querystring("id"))=false then
	response.write"<script language=javascript>alert('该条公告并不存在');window.close();</Script>"
	response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from affiche where id="&request.querystring("id")&"",conn,1,1
if rs.eof then
	call nr()
	response.write"<script language=javascript>alert('该条公告并不存在');window.close();</Script>"
	response.end
else
	aff_title=rs("a_title")
	aff_body=rs("a_body")
	aff_time=rs("a_time")
	aff_count=rs("see_count")
end if
rs.close
set rs=server.createobject("adodb.recordset")
rs.open "select * from affiche where a_type=1 and id="&request.querystring("id")&"",conn,1,3
rs("see_count")=rs("see_count")+1
rs.update
rs.close
%>
<table width="500" height="25" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#E7E7E7">
  <tr>
    <td bgcolor="#F7F7F7">公告标题:<%=aff_title%></td>
  </tr>
  <tr>
    <td bgcolor="#F7F7F7">发布时间:<%=aff_time%></td>
  </tr>
  <tr>
    <td bgcolor="#F7F7F7">浏览次数:<%=aff_count%></td>
  </tr>
  <tr>
    <td bgcolor="#F7F7F7">公告正文:</td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><table width="490" height="5" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td></td>
      </tr>
    </table>
      <table width="490" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><%=myobj.formatbody(aff_body)%></td>
        </tr>
      </table>
      <table width="490" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
<%
on error resume next
rs.close
set rs=nothing
conn.close
set conn=nothing
on error goto 0
%>

⌨️ 快捷键说明

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