📄 bulletin.asp
字号:
<!--#include file="conn.asp" -->
<%
if request.form("bulletin")="" then
set rs=server.createobject("adodb.recordset")
sql="select * from bulletin"
rs.open sql,conn,1,1
bulletin=replace(rs("info"),"<br>",vbcrlf)
bulletin=replace(bulletin," "," ")
end if
if request.form("bulletin")<>"" then
set rs=server.createobject("adodb.recordset")
sql="select * from bulletin"
rs.open sql,conn,1,3
bulletin=request.form("bulletin")
rs("info")=replace(bulletin,vbcrlf,"<br>")
rs.update
response.redirect "bulletin.asp"
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>修改公告</title>
</head>
<LINK href="images/forum_admin.css" type=text/css rel=stylesheet>
<body bgcolor="#D6EF7E">
<TABLE class=tableBorder height=1 cellSpacing=1 cellPadding=5 width="100%"
align=center border=0>
<TBODY>
<TR>
<TH height=25 style="background-image: url('images/admin_bg_1.gif')"> <b><font style="font-size: 9pt">公 告 发 布 及 修 改</font></span></b></TH></TR></tbody></table>
<p align="center"> </p>
<form method="POST" action="bulletin.asp">
<p align="center">
<textarea rows="18" name="bulletin" cols="79" style="border-style: solid; border-width: 1"><%=bulletin%></textarea><br>
<input type="submit" value="修改"></p>
</form>
<p align="center"> </p>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -