📄 hover_book_add.asp
字号:
<!--#include file="toptable.asp"-->
<!--#include file="Inc/articleCHAR.INC"-->
<%
'=================================
' 良精科技企业管理系统
' QQ在线客服:65961930 82993936
' 咨询定购Tel:010-81991660
' asp3721@hotmail.com
' www.liangjing.net
' copyright(c)2001-2008 HoverCms 2007特别版
'=================================
%>
<%
if Request.QueryString("no")="eshop" then
If request.form("title")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入标题,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("content")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入留言内容,请返回检查!!"");history.go(-1);</script>")
response.end
end if
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from Hover_book "
rs.open sql,conn,1,3
rs.addnew
if request.form("html")="on" then
rs("content")=request.form("content")
else
rs("content")=htmlencode2(request.form("content"))
end if
rs("name")=request.form("name")
rs("title")=request.form("title")
rs("time")=date()
rs.update
rs.close
response.redirect "Hover_Book.asp"
end if
%>
<!-- #include file="Inc/Head.asp" -->
<BR>
<table cellpadding="3" cellspacing="1" border="0" width="97%" align="center" class="tableBorder">
<form method="POST" action="Hover_Book_Add.asp?no=eshop">
<input type=hidden readonly name="Name" value="管理员"><tr>
<td class="title" height="25" colspan="2" align="center"><strong>发布管理员公告</strong></td>
</tr>
<tr >
<td height="25" colspan="2" class="title2" >选择您需要更改的公告。</td>
</tr>
<tr bgcolor="#C0C0C0">
<td width="34%" height="25" align="right" bgcolor="#C0C0C0" class="table">标 题</td>
<td width="66%" bgcolor="#C0C0C0" class="table"><input type="text" name="title" size="45"></td>
</tr>
<tr bgcolor="#E3E3E3">
<td height="22" align="right" bgcolor="#E3E3E3" class="table">内 容</td>
<td bgcolor="#E3E3E3" class="table"><textarea rows="8" name="Content" cols="69"></textarea></td>
</tr>
<tr bgcolor="#C0C0C0">
<td height="25" colspan="2" align="center" class="table">是否支持html
<input type="checkbox" name="html" value="on">
<input name="B1" type="submit" class="btn" value="提交公告">
<input name="B2" type="reset" class="btn" value="全部重写"></td>
</tr>
</form></table>
<BR>
<%htmlend%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -