📄 viewaffiche.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/ubbcode.asp" -->
<%if not isnumeric(request("id")) and request("id")<>"" then
Response.Redirect"info.asp?info=ID必须是数字"
response.end
end if
if request("id")="0" or request("id")="" then
Response.Redirect"info.asp?info=对不起,您输入错误的ID"
response.end
end if%>
<%set rs=server.createobject("adodb.recordset")
sql="select * from affiche where afficheid="&request.querystring("id")
rs.open sql,conn,1,3
rs("AfficheHots")=rs("AfficheHots")+1
rs.update
if rs.eof and rs.bof then
Response.Redirect"info.asp?info=对不起,没有找到相关公告!"
response.end
end if
%>
<html>
<head>
<TITLE>公告 - <%=rs("affichename")%>-<%=SystemWebSite%></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta name="keywords" content="<%=SystemSearchKey%>">
<meta name="author" content="<%=SystemSearchKey%>">
<meta name="description" content="<%=SystemSearchKey%>">
<LINK href="style.css" rel="stylesheet" type="text/css">
</head>
<BODY>
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center">
<tr>
<td bgcolor="#FFFFFF" class="tt7" valign="top">
<div align="center"><b><%=rs("affichename")%> </b> <%=year(rs("affichetime"))%>-<%=month(rs("affichetime"))%>-<%=day(rs("affichetime"))%></div><hr size="1" width="98%">
<% response.Write ubbcode((rs("affichecontent"))) %> </td>
</tr>
<tr align="center">
<td ><input name="close" type="button" class="button2" onClick="window.close()" value="关闭本窗口"></td>
</tr>
</table>
<%
rs.close
set rs=nothing
%>
</BODY>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -