📄 shopnews_add.asp
字号:
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0 class=page>
<TBODY>
<TR> <td><!--#include file="top.asp"-->
<%
if session("user_id")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('非法操作!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
else
%>
<SCRIPT language=JavaScript>
function CheckInput(){
if(input.name.value==''){
alert("新闻名称不能为空!");
input.name.focus();
return false;
}
if(input.content.value==''){
alert("新闻描述不能为空!");
input.content.focus();
return false;
}
return true;
}
</SCRIPT>
<TABLE width=760 border=0 align=center cellSpacing=0 cellPadding=0 >
<TBODY>
<TR>
<td width=176 valign=top>
<!--#include file="center.asp"--></td><td bgcolor="#dfdfdf" width="1"></td>
<TD align="center" vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="570" border=0 class=page>
<TBODY>
<TR>
<TD bgColor=#EFEFEF height=21> <TABLE width="100%" border=0>
<TBODY>
<TR>
<TD align=middle width=25>
<img border="0" src="images/news.gif" width="15" height="15"></TD>
<TD>发布新闻</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align="center"> <form action="shopnews_save.asp" method="post" name="input" id="input" onsubmit=return(CheckInput())>
<table width="98%" border="0" align="center">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>新闻名称</td>
<td><input name="name" type="text" id="name" size="20" maxlength="30">
<font color="#FF0000">*</font> 不超过30个字符</td>
</tr>
<tr>
<td>新闻描述:</td>
<td><textarea name="content" cols="45" rows="6" id="content"></textarea>
<font color="#FF0000">*</font> 不超过1000个字符</td>
</tr>
<tr align="center">
<td colspan="2"> <input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"> <%
Randomize '初始代随机数种子
num1=rnd() '产生随机数num1
num1=int(26*num1)+65 '修改num1的范围以使其是A-Z范围的Ascii码,以防表单名出错
session("antry")="test"&chr(num1) '产生随机字符串
%> <input name="temp" type="hidden" id="temp" value="<%=session("antry")%>">
</td>
</tr>
</table>
</form></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<%end if%>
<!--#include file="bottom.asp"--></TD>
</TR>
</TBODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -