⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news_add.asp

📁 一个较好的网上购物系统 是基于ASP的多用户网上商城
💻 ASP
字号:
<%
if session("admin")<>"smallstick" then
response.redirect "login.asp"
response.end
end if
%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻添加</title>
<SCRIPT language=JavaScript>
function CheckInput(){

	if(input.newstitle.value==''){
		alert("新闻标题不能为空!");
		input.newstitle.focus();
		return false;
	}

	if(input.newscontent.value==''){
		alert("新闻内容不能为空!");
		input.newscontent.focus();
		return false;
}
	
	return true;
}
</SCRIPT>
</head>
<body>
<form action="news_save.asp" method="post" name="input" id="input" onsubmit=return(CheckInput())>
  <table width="100%" border="1" bordercolorlight="#FFFFFF" bordercolor="#8DD082">
    <tr> 
      <td width="93"><font color="#008000">新闻标题:</font></td>
      <td><input name="newstitle" type="text" id="newstitle"></td>
    </tr>
    <tr> 
      <td width="93"><font color="#008000">新闻内容</font></td>
      <td><textarea name="newscontent" rows="9" id="newscontent" cols="40"></textarea></td>
    </tr>
    <tr> 
      <td width="93"> </td>
      <td><input type="submit" name="Submit" value="提交">
        <input type="reset" name="Submit2" value="重置"></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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