📄 newsedit.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<%
dim newsid
newsid=request.QueryString("id")
if request.QueryString("action")="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news where newsid="&newsid,conn,1,3
rs("newsname")=trim(request("newsname"))
rs("addname")=trim(request("addname"))
if request("html")="ubb" then
rs("newscontent")=trim(request("newscontent"))
else
rs("newscontent")=ubbcode(trim(request("newscontent")))
end if
rs("adddate")=now()
rs.update
rs.close
set rs=nothing
response.write "<script language=javascript>alert('更改成功!');history.go(-1);</script>"
response.End
end if
%>
<html>
<head>
<title><%=webname%>--新闻快讯</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../include/css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535}
body{font-size:9pt;line-height:120%}
a:link { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:hover { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news where newsid="&newsid,conn,1,1%> <TABLE WIDTH="90%" BORDER="0" ALIGN="center" CELLPADDING="1" CELLSPACING="1" BGCOLOR=<%=bgclr1%>>
<TR> <TD> <DIV ALIGN="center"><FONT COLOR="#FFFFFF"><%=webname%>--新闻快讯</FONT></DIV></TD></TR>
<TR> <TD HEIGHT="168" VALIGN="top" BGCOLOR=<%=bgclr4%>> <FORM NAME="form1" METHOD="post" ACTION="newsedit.asp?action=save&id=<%=newsid%>">
<BR> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="1" CELLSPACING="1" BGCOLOR=<%=bgclr2%>>
<TR> <TD WIDTH="18%" BGCOLOR=<%=bgclr4%> STYLE="PADDING-LEFT: 6px">新闻主题:</TD><TD WIDTH="82%" BGCOLOR=<%=bgclr4%> STYLE="PADDING-LEFT: 6px">
<%=trim(rs("newsname"))%> </TD></TR> <TR> <TD BGCOLOR=<%=bgclr4%> STYLE="PADDING-LEFT: 6px">发
表 人:</TD><TD BGCOLOR=<%=bgclr4%> STYLE="PADDING-LEFT: 6px"> <%=trim(rs("addname"))%></TD></TR>
<TR> <TD BGCOLOR=<%=bgclr4%> STYLE="PADDING-LEFT: 6px">新闻内容:</TD><TD BGCOLOR=<%=bgclr4%> STYLE="PADDING-LEFT: 6px"><%=trim(rs("newscontent"))%>
</TD></TR> </TABLE></FORM></TD></TR> </TABLE><br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -