📄 updatestyle.jsp~2~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ 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>
</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 bgcolor="#ffffc0">
<div align="center" >
<p>添加新闻的详细类别
</p>
<p> </p>
<form name="form" method="post" action="" onSubmit="return RgTest()">
<table width="455" border="3" cellspacing="3" cellpadding="3">
<tr>
<td width="122">详细类别:</td>
<td width="302"><input type="text" name="style" value="<%=style.getStyleName()%>"></td>
</tr>
<%}%>
<tr>
<td>新闻类型:</td>
<td><select name="newsType">
<option>请选择</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>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit" value="重置">
</form>
<p> </p>
</div>
<h1> </h1>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -