?? insertstyle.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.victor.domain.NewsTypeActionForm"%>
<html>
<head>
<title>添加新聞的詳細類別</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body{
margin-left:0px;
margin-top:0px;
}
td{
font-size:9pt;
}
.style1 {
color: #FF9900;
font-weight: bold;
}
-->
</style></head>
<script language="JavaScript">
function RgTest(){
if(document.form.style.value==""){
window.alert("請輸入詳細類別:");
document.form.style.focus();
return false;
}
if(document.form.newsType.value==""){
window.alert("請選擇新聞類型:");
document.form.newsType.focus();
return false;
}
return true;
}
</script>
<body>
<table width="568" height="419" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF">
<p><br>
<br>
<br>
<span class="style1">添加新聞的詳細類別</span></p>
<form name="form" method="post" action="insertStyleAction.do" onSubmit="return RgTest()">
<table width="281" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
<tr>
<td width="101" height="24"align="center" bgcolor="#0099cc">添加詳細類別:</td>
<td width="169" bgcolor="#ffffff"><input type="text" name="style"></td>
</tr>
<tr>
<td align="center"height="24" bgcolor="#0099cc">新聞類型:</td>
<td bgcolor="#ffffff"><select name="newsType">
<option value="">請選擇</option>
<%List list=(List)request.getAttribute("type");%>
<% for(int i=0;i<list.size();i++){
NewsTypeActionForm type=(NewsTypeActionForm)list.get(i);
%>
<option value="<%=type.getTypeName()%>"><%=type.getTypeName()%></option>
<%}%> </select></td>
</tr>
</table>
<br>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit" value="重置">
</form> </td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -