📄 updatenews.jsp~16~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<html>
<head>
<title>添加新闻</title>
</head>
<script language="JavaScript">
function RgTest(){
if(document.form.newTitle.value==""){
window.alert("请输入新闻标题:");
document.form.newTitle.focus();
return false;
}
if(document.form.newContent.value==""){
window.alert("请输入新闻内容:");
document.form.newContent.focus();
return false;
}
if(document.form.newsType.value==""){
window.alert("请选择类型:");
document.form.newsType.focus();
return false;
}
if(document.form.newsStyle.value==""){
window.alert("请选择详细类型:");
document.form.newsStyle.focus();
return false;
}
return true;
}
</script>
<%List list=();%>
<body bgcolor="#ffffc0">
<div align="center" >
<p>添加新闻</p>
<form name="form" method="post" action="" onSubmit="return RgTest()">
<table width="327" border="3" cellspacing="3" cellpadding="3">
<tr>
<td width="84">新闻标题</td>
<td width="212"><input type="text" name="newTitle"></td>
</tr>
<tr>
<td height="304">新闻内容</td>
<td><textarea name="newContent"></textarea></td>
</tr>
<tr>
<td width="84">类型</td>
<td width="212"><input name="newsType" type="hidden" value=""></td>
</tr>
<tr>
<td>详细类别</td>
<td><input name="newsStyle" type="hidden" value=""></td>
</tr>
</table>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit" value="重置">
</form>
<p> </p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -