manage_class_sort.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.      
  15.      document.form1.par.value="update";     
  16.      document.form1.submit();
  17.  }
  18. </script>
  19. </head>
  20. <%
  21.        String par = request.getParameter("par");
  22.        String aid = "test"; //session.getAttribute("aid").toString();
  23.        if(par!=null&&par.equals("update"))
  24.         {
  25.             manageclass.updateClassSort();
  26.         }
  27.        Vector m_vct = manageclass.getShopClass(); //取一级分类
  28.         
  29. %>
  30. <body bgcolor="#eff3f7" topmargin="0"  leftmargin="0">
  31. </SCRIPT>
  32. <form name="form1" method="post"> 
  33. <input type="hidden" name="par">
  34. <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
  35. <tr> <td align="left" valign="middle" height="2"></td></tr> 
  36. <tr> 
  37. <td align="left" valign="top"> 
  38. <table align=center border=1 bordercolor=#095ab5 
  39.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  40.                   id=submenu1 width="90%">
  41.                 <tr valign=center BGCOLOR="#D0ECF9"> 
  42.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="8"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  43.                 </tr>
  44.                 <tbody>
  45.                   <tr valign=center> 
  46.                     <td align=left height=25 valign=MIDDLE 
  47.                         width="50%" colspan=3><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;栏目名称</font></td>
  48.                                           
  49.                     <td align=CENTER height=25 valign=MIDDLE 
  50.                         width="10%"><font color="#000000">顺序</font></td>                        
  51.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>修改</td>     
  52.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=3>删除</td>
  53.                   </tr>                  
  54.                   
  55. <%
  56.    if(m_vct!=null&&m_vct.size()>0)
  57.     {
  58.        for(int i=0;i<m_vct.size();i++)
  59.         {
  60.                  Vector t_vct = (Vector)m_vct.get(i);
  61.                  %>
  62.                  <input type="hidden" name="id" value="<%=t_vct.get(0)%>">
  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"><input type="text" name="sort" value="<%=t_vct.get(2)%>" size=4></input></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.getShopSubClass(t_vct.get(0).toString());
  73.                 if(subclass_vct!=null&&subclass_vct.size()>0)
  74.                  {
  75.                   
  76.                     for(int j=0;j<subclass_vct.size();j++)
  77.                      {
  78.                         Vector t1_vct = (Vector)subclass_vct.get(j);
  79.                         %>
  80.                         <input type="hidden" name="id" value="<%=t1_vct.get(0)%>">
  81.                         <tr valign=center> 
  82.                         <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>                                          
  83.                         <td align=CENTER height=25 valign=MIDDLE 
  84.                         width="10%"><font color="#000000"><input type="text" name="sort" value="<%=t1_vct.get(2)%>" size=4></input></font></td>                        
  85.                         <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>修改</td>     
  86.                         <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=3>删除</td>
  87.                         </tr>                         
  88.                         <%
  89.                      }   
  90.                  } 
  91.         }
  92.     }
  93. %>                    
  94.                   
  95.                   
  96.                   
  97.                   <tr valign=center> 
  98.                     <td align=center height=25 valign=middle COLSPAN="8">&nbsp;<input type="button" name="button_1" value="更新" onclick="sub()"></td>
  99.                   </tr>                   
  100.                   
  101.               </table>
  102.               <br> 
  103.               <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  104.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  105.               </p></td></tr> 
  106. </table></td></tr> <tr> <td align="left" valign="top" background="../../../image/line_hor.jpg" height="1"> 
  107. </td></tr> </table></form>
  108. </body>
  109. </html>