bs_book_add.asp

来自「此系统都是基于ASP+ACCESS技术开发的电子商务平台,属于全自动化、全智能的」· ASP 代码 · 共 85 行

ASP
85
字号
<!--#include file="bsconfig.asp"-->
<!--#include file="Inc/articleCHAR.INC"-->
<%
'=================================
'
'   冠龙科技 公司(企业)网站管理系统
'    Apollo  postxml@yahoo.com.cn 
'        www.xnhost.cn
'
'  copyright(c)2006 LkStar
'
'=================================
%>
<%
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 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 "Bs_Book.asp"
end if

%>
<!-- #include file="Inc/Head.asp" -->
<BR>
<table cellpadding="2" cellspacing="1" border="0" width="560" align="center" class="a2">
	<tr>
		<td class="a1" height="25" align="center"><strong>发布管理员公告</strong></td>
	</tr>
	<tr class="a4">
		<td align="center">
      <br>
      <table width="550" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <form method="POST" action="Bs_Book_Add.asp?no=eshop">
						<input type=hidden readonly name="Name"   value="管理员">
						<td><div align="center"> 
							<table width="80%" border="0" cellspacing="2" cellpadding="3">
								<tr bgcolor="#C0C0C0"> 
									<td width="8%" height="25" bgcolor="#C0C0C0"> <div align="center">标&nbsp;&nbsp;题</div></td>
									<td width="62%" bgcolor="#C0C0C0"><input type="text" name="title" size="45"></td>
								</tr>
								<tr bgcolor="#E3E3E3"> 
									<td height="22" bgcolor="#E3E3E3"> <div align="center">内&nbsp;&nbsp;容</div></td>
									<td bgcolor="#E3E3E3"><textarea rows="8" name="Content" cols="45"></textarea></td>
								</tr>
								<tr bgcolor="#C0C0C0"> 
									<td height="25" colspan="2"> 
										<div align="center">是否支持html <input type="checkbox" name="html" value="on"> <input type="submit" value="提交公告" name="B1"> <input type="reset" value="全部重写" name="B2"></div></td>
								</tr>
							</table>
						</div></td>
					</form>
        </tr>
      </table>
      <br>
		</td>
	</tr>
</table>
<BR>
<%htmlend%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?