📄 news_add.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="75%" border="1">
<tr>
<td> </td>
<td><input name="newstitle" type="text" id="newstitle"></td>
</tr>
<tr>
<td> </td>
<td><textarea name="newscontent" rows="4" id="newscontent"></textarea></td>
</tr>
<tr>
<td> </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 + -