📄 delesecondtitle.jsp
字号:
<%--
Document : deleSecondTitle
Created on : 2009-4-13, 15:06:54
Author : Study
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import ="java.util.List" %>
<%@page import ="FirstTitle.*" %>
<%@page import ="SecondTitle.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二级标题删除</title>
<style type="text/css">
<!--
body {
background-image: url(img/7.jpg);
}
-->
</style></head>
<body>
<%@include file="checklogin.jsp" %>
<h1 align="center" >二级标题</h1>
<p align="center">提示:请选择你要删除的二级标题所在的一级标题,然后选择要删除的二级标题,点击“删除”!</p>
<form name="form1" method="post" action="DeleSecondTitle">
<%
String strParentId = request.getParameter("parentId");
if(strParentId != null){
int parentId = Integer.parseInt(strParentId);
//根据新闻一级标题ID获取下属的新闻二级标题列表
List list2=new SecondManager().getAllSecondList(parentId);
%>
<table width="103%" border="0">
<%
if(list2 !=null && list2.size()!=0){
for(int i=0;i<list2.size();i++){
SecondLevelTitle sTitle=(SecondLevelTitle)list2.get(i);
%>
<%--循环部分 --%>
<tr>
<td width="34%"><div align="right">
<input type="checkbox" name="sTitleId" id="sTitleId" value="<%=sTitle.getId() %>">
</div></td>
<td> <%=sTitle.getTitleName() %></td>
<td width="28%"><input type="submit" name="button" id="button" value="删除"></td>
</tr>
<%--循环部分 --%>
<%
}
}
%>
</table>
<%
}
%>
</form>
<p align="center"> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -