?? voteinsert.jsp
字號:
<%@ page contentType="text/html; charset=gbK" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbK">
<title>添加新聞人物的信息</title>
<style type="text/css">
<!--
body {
margin-top:0px;
margin-left:0px;
}
td{font-size:9pt;}
-->
</style>
</head>
<script language="JavaScript">
function RgTest(){
if(document.form.name.value==""){
window.alert("請輸入人物名稱!");
document.form.name.focus();
return false;
}
if(document.form.address.value==""){
window.alert("請輸入人物籍貫!");
document.form.address.focus();
return false;
}
if(document.form.country.value==""){
window.alert("請輸入人物年齡!");
document.form.country.focus();
return false;
}
if(document.form.jop.value==""){
window.alert("請輸入人物工作!");
document.form.jop.focus();
return false;
}
if(document.form.remark.value==""){
window.alert("請輸入人物簡單介紹!");
document.form.remark.focus();
return false;
}
return true;
}
</script>
<body>
<table width="568" height="419" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
<tr>
<td bgcolor="#FFFFFF" align="center" valign="top">
<br>
<br>
<br>
<p><strong style="color:#FF9900">添加新聞人物信息</strong></p>
<form action="../../../voteInsertAction.do" onSubmit="return RgTest()" method="post" enctype="multipart/form-data" name="form">
<table width="391" border="0" cellspacing="1" cellpadding="2" bgcolor="#052754">
<tr height="24">
<td width="70" align="center" bgcolor="#0099cc"> 人物名稱 </td>
<td width="310" bgcolor="#ffffff"><input name="name" type="text" size="26"> </td>
</tr>
<tr>
<td bgcolor="#0099cc" align="center"> 人物籍貫 </td>
<td bgcolor="#ffffff"><input name="address" type="text" size="15"></td>
</tr>
<tr>
<td bgcolor="#0099cc" align="center"> 人物年齡 </td>
<td bgcolor="#ffffff"><input name="country" type="text" size="15"></td>
</tr>
<tr>
<td bgcolor="#0099cc" align="center"> 人物工作 </td>
<td bgcolor="#ffffff"><input name="jop" type="text" size="40"></td>
</tr>
<tr>
<td height="80" bgcolor="#0099cc" align="center"> 簡單介紹</td>
<td bgcolor="#ffffff"><textarea name="remark" cols="42" rows="8"></textarea></td>
</tr>
</table>
<br>
<input type="submit" name="Submit2" value="提交">
<input name="Submit" type="reset" value="重置">
</form></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -