⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addcata0.jsp

📁 jsp学习源码 jsp学习源码 jsp学习源码 jsp学习源码 jsp学习源码 jsp学习源码 jsp学习源码 jsp学习源码 jsp学习源码
💻 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>
<title>添加一级目录</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="../style/style.css">
</head>

<body>
<%if(request.getParameter("act")!=null && request.getParameter("act").equals("add")){ %>
<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<cata0List.size();i++){
			Cata cata0all= (Cata)cata0List.elementAt(i);
			%>
          <tr>
            <td width="33%" align="center"><%=cata0all.getcata_id()%> </td>
            <td width="33%" align="center"><%=cata0all.getcata_name()%> </td>
            <td width="34%" align="center"><%=cata0all.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="addcata0ok.jsp">
              <p>新目录名:<input type="text" name="cata0_name" size="20"> </p>
              <p><input type="hidden" value="提交" name="add">
              <input border="0" src="../img/button-ok.gif" name="Submit" type="image" class="button" width="64" height="21">&nbsp;
              <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("act")!=null && request.getParameter("act").equals("edit")){ %>
<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<cata0List.size();i++){
			Cata cata0all= (Cata)cata0List.elementAt(i);
			%>
          <tr>
            <td width="33%" align="center"><%=cata0all.getcata_id()%> </td>
            <td width="33%" align="center"><%=cata0all.getcata_name()%> </td>
            <td width="34%" align="center"><%=cata0all.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="addcata0ok.jsp">
              <p>目录序号:<input type="int" name="cata0_id" size="20"><br>
              新目录名:<input type="text" name="cata0_name" size="20"> </p>
              <p><input type="hidden" value="提交" name="edit">
              <input border="0" src="../img/button-ok.gif" name="Submit" type="image" class="button">&nbsp;
              <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{throw new Exception();}%>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -