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