manage_class.jsp
上传用户:sami52198
上传日期:2010-02-11
资源大小:5174k
文件大小:6k
源码类别:

电子政务应用

开发平台:

MultiPlatform

  1. <%@ page contentType="text/html;charset=gb2312"%>
  2. <%@ page import="java.util.*" %>
  3. <%@ include file="../pub/control.jsp"%>
  4. <%@ include file="../include/config.jsp"%>
  5. <%@ include file="../include/head.jsp"%>
  6. <html>
  7. <head>
  8. <title>新闻栏目维护</title>
  9. <link rel="stylesheet" href="../../../../css/style.css" type="text/css">
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  11. <script language="javascript">
  12. function sub()
  13.  {
  14.      if(document.form1.button_1.value=="新增")
  15.       {
  16.         document.form1.par.value="add";
  17.       }  
  18.      document.form1.submit();
  19.  }
  20. </script>
  21. </head>
  22. <%
  23.        String par = request.getParameter("par");
  24.        if(par!=null&&par.equals("add"))
  25.         {
  26.             manageclass.addClass();
  27.         }
  28.        Vector m_vct = manageclass.getNewClass(); //取一级栏目 
  29.         
  30. %>
  31. <body bgcolor="#eff3f7" topmargin="0"  leftmargin="0">
  32. </SCRIPT>
  33. <form name="form1" method="post"> 
  34. <input type="hidden" name="par">
  35. <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
  36. <tr> <td align="left" valign="middle" height="2"></td></tr> 
  37. <tr> 
  38. <td align="left" valign="top"> 
  39. <table align=center border=1 bordercolor=#095ab5 
  40.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  41.                   id=submenu1 width="90%">
  42.                 <tr valign=center BGCOLOR="#D0ECF9"> 
  43.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="7"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  44.                 </tr>
  45.                 <tbody>
  46.                   <tr valign=center> 
  47.                     <td align=left height=25 valign=MIDDLE 
  48.                         width="50%" colspan=3><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;栏目名称</font></td>
  49.                                           
  50.                     <td align=CENTER height=25 valign=MIDDLE 
  51.                         width="10%"><font color="#000000">顺序</font></td>                        
  52.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>修改</td>     
  53.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=3>删除</td>
  54.                   </tr>                  
  55.                   
  56. <%
  57.    if(m_vct!=null&&m_vct.size()>0)
  58.     {
  59.        for(int i=0;i<m_vct.size();i++)
  60.         {
  61.                  Vector t_vct = (Vector)m_vct.get(i);
  62.                  %>
  63.                   <tr valign=center BGCOLOR="#D0ECF9"> 
  64.                     <td align=left height=25 valign=MIDDLE width="50%" colspan=3 ><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;<%=t_vct.get(1)%></font></td>
  65.                                           
  66.                     <td align=CENTER height=25 valign=MIDDLE 
  67.                         width="10%" ><font color="#000000"><%=t_vct.get(2)%></font></td>                        
  68.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1 >修改</td>     
  69.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=3 >删除</td>
  70.                   </tr>  
  71.                  <%
  72.                 Vector subclass_vct =  manageclass.getNewsSubClass(t_vct.get(0).toString());
  73.                 if(subclass_vct!=null&&subclass_vct.size()>0)
  74.                  {
  75.                     for(int j=0;j<subclass_vct.size();j++)
  76.                      {
  77.                         Vector t1_vct = (Vector)subclass_vct.get(j);
  78.                         %>
  79.                         <tr valign=center> 
  80.                         <td align=left height=25 valign=MIDDLE width="50%" colspan=3 ><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=t1_vct.get(1)%></font></td>                                          
  81.                         <td align=CENTER height=25 valign=MIDDLE 
  82.                         width="10%"><font color="#000000"><%=t1_vct.get(2)%></font></td>                        
  83.                         <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>修改</td>     
  84.                         <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=3>删除</td>
  85.                         </tr>                         
  86.                         <%
  87.                      }   
  88.                  } 
  89.         }
  90.     }
  91. %>                    
  92.                   
  93.                   
  94.                   
  95.                   <tr valign=center> 
  96.                     <td align=center height=25 valign=middle COLSPAN="7">&nbsp;</td>
  97.                   </tr>                  
  98.                   
  99.                   
  100.                   <tr valign=center> 
  101.                     <td align=CENTER height=25 valign=MIDDLE 
  102.                         width="13%"><font color="#000000">栏目名称:</font></td>                        
  103.                     <td align=left height=25 valign=MIDDLE 
  104.                         width="20%"><font color="#000000">&nbsp;<INPUT 
  105.             NAME=name STYLE="width:110;background-color: #ffffff; FONT-SIZE: 12px;  border: 1 solid #000000" MAXLENGTH=10></font></td>                        
  106.                <td align=CENTER height=25 valign=MIDDLE 
  107.                         width="20%"><font color="#000000">所属栏目:</font></td>
  108.                      <td align=left height=25 valign=MIDDLE colspan="2">
  109.                      <font color="#000000">&nbsp;
  110.                      <select name=parentid>
  111.                      <option value="0">一级栏目</option>
  112. <%
  113.    if(m_vct!=null&&m_vct.size()>0)
  114.     {
  115.        for(int i=0;i<m_vct.size();i++)
  116.         {
  117.                  Vector t_vct = (Vector)m_vct.get(i);
  118.                  %>
  119.                      <option value="<%=t_vct.get(0)%>"><%=t_vct.get(1)%></option>
  120.                  <%
  121.         }
  122.     }
  123. %>                     
  124.                      </select>
  125.                      </font></td>                         
  126.                     <td align=CENTER height=25 valign=MIDDLE colspan="2">
  127.                     &nbsp;<input type="button" name="button_1" value="新增" onclick="sub()">
  128.                     </td>
  129.                   </tr>                  
  130.                   
  131.               </table>
  132.               <br> 
  133.               <p>&nbsp;&nbsp;&nbsp;&nbsp;
  134.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p></td></tr> 
  135. </table></td></tr> <tr> <td align="left" valign="top" background="../../../image/line_hor.jpg" height="1"> 
  136. </td></tr> </table></form>
  137. </body>
  138. </html>