📄 talk.asp
字号:
<!--#include file="articleconn.asp"-->
<!--#include file="security.asp"-->
<%if session("flag")>1 then
response.write "<br><p align=center>您的操作权限不够!</p>"
response.end
end if
%>
<%
if request.form("talk")="" and request.form("talk1")="" then
set rs=server.createobject("adodb.recordset")
sql="select * from talk where id=22"
rs.open sql,conn,1,1
talk=replace(rs("talk"),"<br>",vbcrlf)
talk=replace(talk," "," ")
end if
if request.form("talk")<>"" then
set rs=server.createobject("adodb.recordset")
sql="select * from talk where id=22"
rs.open sql,conn,1,3
talk=request.form("talk")
rs("talk")=replace(talk,vbcrlf,"<br>")
rs.update
response.redirect "talk.asp"
end if
%>
<html><!--#include file="../checkpost.asp"-->
<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 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>修改公告</title>
</head>
<style type=text/css>
body { background:#799AE1; margin:0px; font:9pt 宋体; }
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover { color:#428EFF;text-decoration:underline; }
.sec_menu { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title { }
.menu_title span { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2 { }
.menu_title2 span { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<body bgcolor="#D6EF7E">
<p align="center"> </p>
<p align="center"><font size="3"><a href="talk.asp">修改首页公告</a>
<a href="talk1.asp">修改分类公告</a></font></p>
<form method="POST" action="talk.asp">
<p align="center">
<textarea rows="18" name="talk" cols="79" style="border-style: solid; border-width: 1"><%=talk%></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 + -