【JSP开源代码栏目提醒】:网学会员为需要JSP开源代码的朋友们搜集整理了updateStyle.jsp相关资料,希望对各位网友有所帮助!
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.victor.domain.NewsTypeActionForm"%>
<%@ page import="com.victor.domain.NewsStyleActionForm"%>
<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>
<%List listStyle=(List)request.getAttribute("listStyle");%>
<%for (int i=0;i<listStyle.size();i++){
NewsStyleActionForm style=(NewsStyleActionForm)listStyle.get(i);
%>
<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 ><strong style="color:#FF9900"> 添加新闻的详细类别</strong></p>
<form name="form" method="post" action="updateStyleAction.do?styleID=<%=style.getStyleID()%>" onSubmit="return RgTest()">
<table width="249" border="0" cellpadding="2" cellspacing="1" bgcolor="#052754">
<tr>
<td width="70" align="center" bgcolor="#0099cc">详细类别:</td>
<td width="175" bgcolor="#ffffff"><input type="text" name="style" value="<%=style.getStyleName()%>"></td>
</tr>
<%}%>
<tr>
<td align="center" bgcolor="#0099cc">新闻类型:</td>
<td bgcolor="#ffffff"><select name="newsType">
<option value="">请选择</option>
<%List list=(List)request.getAttribute("listType");%>
<% 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>