📄 addcata2.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page language="java" import="java.util.*,popten.web.*" %>
<%@ page errorPage="error.jsp" %>
<%@ include file="chelogin2.jsp"%>
<%Cata cata0 = new Cata();
Vector cata0List = cata0.Cata0All();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="../style/style.css">
<title>一级目录</title>
</head>
<body>
<%if(request.getParameter("step")!=null && request.getParameter("step").equals("1")){%>
<!--选择一级目录开始-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="525" class="td5" align="center">
<img border="0" src="../img/null.gif" width="2" height="2"><b>一级目录</b></td>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center" height="200"> <form action="addcata2.jsp" method="get" name="form1">
<p>
<select name="cata0_id" id="cata0_id">
<option>一级目录</option>
<%for(int i=0;i<cata0List.size();i++){
Cata cata0all= (Cata)cata0List.elementAt(i);
%>
<option value="<%=cata0all.getcata_id()%>"><%=cata0all.getcata_name()%></option>
<%}%>
</select>
</p>
<p><input type="hidden" name="step" value="2">
<input type="hidden" name="act" value="<%=request.getParameter("act")%>">
<input border="0" src="../img/button-ok.gif" name="Submit" type="image" class="button">
<img src="../img/button-back.gif" name="Submit" class="button" onclick="javascript:history.go(-1)">
</p>
</form>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table>
<!--选择一级目录结束-->
<%}
else if(request.getParameter("step")!=null && request.getParameter("step").equals("2")){
Vector cata1List = cata0.Cata1All(request.getParameter("cata0_id"));%>
<!--选择二级目录开始-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="525" class="td5" align="center">
<img border="0" src="../img/null.gif" width="2" height="2"><b>二级目录</b></td>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center" height="200"> <form action="addcata2.jsp" method="get" name="form1">
<p>
<select name="cata1_id" id="cata1_id">
<option>二级目录</option>
<%for(int i=0;i<cata1List.size();i++){
Cata cata1all= (Cata)cata1List.elementAt(i);
%>
<option value="<%=cata1all.getcata_id()%>"><%=cata1all.getcata_name()%></option>
<%}%>
</select>
</p>
<p><input type="hidden" name="step" value="3">
<input type="hidden" name="act" value="<%=request.getParameter("act")%>">
<input border="0" src="../img/button-ok.gif" name="Submit" type="image" class="button">
<img src="../img/button-back.gif" name="Submit" class="button" onclick="javascript:history.go(-1)">
</p>
</form>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table>
<!--选择二级目录结束-->
<%}
else if(request.getParameter("step")!=null && request.getParameter("step").equals("3") && request.getParameter("act")!=null && request.getParameter("act").equals("add")){
Vector cata2List = cata0.Cata2All(request.getParameter("cata1_id"));
%>
<!--添加三级目录开始-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="525" class="td5" align="center">
<img border="0" src="../img/null.gif" width="2" height="2"><b>添加三级目录</b></td>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center" height="200">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%" bordercolor="#DEEEFF">
<tr>
<td width="33%" align="center">序号</td>
<td width="33%" align="center">目录名</td>
<td width="34%" align="center">文章数</td>
</tr>
<%for(int i=0;i<cata2List.size();i++){
Cata cata2all= (Cata)cata2List.elementAt(i);
%>
<tr>
<td width="33%" align="center"><%=cata2all.getcata_id()%></td>
<td width="33%" align="center"><%=cata2all.getcata_name()%></td>
<td width="34%" align="center"><%=cata2all.getcata_coun()%></td>
</tr>
<%}%>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<tr>
<td width="100%" align="center"> <form name="form1" method="post" action="addcata2ok.jsp">
<p>新目录名:<input type="text" name="cata2_name" size="20"> </p>
<p><input type="hidden" value="提交" name="add">
<input type=hidden name=cata1_id value="<%=request.getParameter("cata1_id")%>">
<input border="0" src="../img/button-ok.gif" name="Submit" type="image" class="button" width="64" height="21">
<img src="../img/button-back.gif" name="Submit" class="button" onclick="javascript:history.go(-1)" width="64" height="21">
</p>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<!--添加三级目录结束-->
<!--修改三级目录开始-->
<%}
else if(request.getParameter("step")!=null && request.getParameter("step").equals("3") && request.getParameter("act")!=null && request.getParameter("act").equals("edit")){
Vector cata2List = cata0.Cata2All(request.getParameter("cata1_id"));%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="525" class="td5" align="center">
<img border="0" src="../img/null.gif" width="2" height="2"><b>修改三级目录</b></td>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center" height="200">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%" bordercolor="#DEEEFF">
<tr>
<td width="33%" align="center">序号</td>
<td width="33%" align="center">目录名</td>
<td width="34%" align="center">文章数</td>
</tr>
<%for(int i=0;i<cata2List.size();i++){
Cata cata2all= (Cata)cata2List.elementAt(i);
%>
<tr>
<td width="33%" align="center"><%=cata2all.getcata_id()%></td>
<td width="33%" align="center"><%=cata2all.getcata_name()%></td>
<td width="34%" align="center"><%=cata2all.getcata_coun()%></td>
</tr>
<%}%>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<tr>
<td width="100%" align="center"><form name="form1" method="post" action="addcata2ok.jsp">
<p>目录序号:<input type="int" name="cata2_id" size="20"><br>
新目录名:<input type="text" name="cata2_name" size="20"></p>
<p><input type="hidden" value="提交" name="edit">
<input type=hidden name=cata0_id value="<%=request.getParameter("cata1_id")%>">
<input border="0" src="../img/button-ok.gif" name="Submit" type="image" class="button">
<img src="../img/button-back.gif" name="Submit" class="button" onclick="javascript:history.go(-1)">
</p>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<!--修改三级级目录结束-->
<%}
else{throw new Exception();}%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -