📄 add_notice.asp
字号:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.reload('login.asp')</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
end if
if request.QueryString("action")="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_notice",conn,1,3
rs.addnew
rs("newsname")=trim(request("newsname"))
rs("addname")=trim(request("addname"))
if request("html")="ubb" then
rs("newscontent")=trim(request("newscontent"))
else
rs("newscontent")=trim(request("newscontent"))
end if
rs("adddate")=now()
rs("viewcount")=0
rs.update
rs.close
set rs=nothing
response.write "<script language=javascript>alert('添加成功!');window.location.reload('add_notice.asp')</script>"
response.End
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<body><!--#include file="menu.asp"-->
<div align="center">
<table width="90%" border="0" cellspacing="1" bgcolor="#BCD7E0">
<tr>
<td background="../images/manage/line_all.gif"><div align="center"><font color="#000000">添加发货通知</font></div></td>
</tr>
<tr>
<td height="168" valign="top" bgcolor="#F8FCFD"><form name="form1" method="post" action="add_notice.asp?action=save">
<br>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#BCD7E0">
<tr>
<td width="17%" bgcolor="#F8FCFD" style="PADDING-LEFT: 6px" align="center">通知主题:</td>
<td width="81%" bgcolor="#F8FCFD" style="PADDING-LEFT: 6px"><input name="newsname" type="text" id="newsname"></td>
</tr>
<tr>
<td bgcolor="#F8FCFD" style="PADDING-LEFT: 6px" align="center">发 表 人:</td>
<td bgcolor="#F8FCFD" style="PADDING-LEFT: 6px"><input name="addname" type="text" id="addname"></td>
</tr>
<tr>
<td bgcolor="#F8FCFD" style="PADDING-LEFT: 6px" width="17%" align="center">通知内容:</td>
<td bgcolor="#F8FCFD" style="PADDING-LEFT: 6px">
<IFRAME ID="content" SRC="../edit/ewebeditor.asp?id=newscontent&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350" name="I1"></IFRAME>
<br>
<textarea name="newscontent" cols="76" rows="2" id="newscontent" style="display:none"></textarea></td>
</tr>
<tr>
<td height="28" colspan="2" bgcolor="#F8FCFD" style="PADDING-LEFT: 6px"><div align="center">
<input type="submit" name="Submit" value="提交发表">
</div></td>
</tr>
</table>
</form></td>
</tr>
</table>
</div>
<!--#include file="copyright.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -