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

电子政务应用

开发平台:

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="update";
  17.       }  
  18.      document.form1.submit();
  19.  }
  20. </script>
  21. </head>
  22. <%
  23.        String par = request.getParameter("par");
  24.        if(par!=null&&par.equals("update"))
  25.         {
  26.            manageclass.updateClassSort();
  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="4"><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.                   </tr>                  
  53.                   
  54. <%
  55.    if(m_vct!=null&&m_vct.size()>0)
  56.     {
  57.        for(int i=0;i<m_vct.size();i++)
  58.         {
  59.                  Vector t_vct = (Vector)m_vct.get(i);
  60.                  %>
  61.                  <input type="hidden" name="id" value="<%=t_vct.get(0)%>"> 
  62.                   <tr valign=center BGCOLOR="#D0ECF9"> 
  63.                     <td align=left height=25 valign=MIDDLE width="50%" colspan=3 ><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;<%=t_vct.get(1)%></font></td>
  64.                                           
  65.                     <td align=CENTER height=25 valign=MIDDLE 
  66.                         width="10%" ><font color="#000000"><input type="text" value="<%=t_vct.get(2)%>" size="4" name="sort"></input></font></td>                        
  67.                   </tr>  
  68.                  <%
  69.                 Vector subclass_vct =  manageclass.getNewsSubClass(t_vct.get(0).toString());
  70.                 if(subclass_vct!=null&&subclass_vct.size()>0)
  71.                  {
  72.                     for(int j=0;j<subclass_vct.size();j++)
  73.                      {
  74.                         Vector t1_vct = (Vector)subclass_vct.get(j);
  75.                         %>
  76.                         <input type="hidden" name="id" value="<%=t1_vct.get(0)%>"> 
  77.                         <tr valign=center> 
  78.                         <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>                                          
  79.                         <td align=CENTER height=25 valign=MIDDLE 
  80.                         width="10%"><font color="#000000"><input type="text" value="<%=t1_vct.get(2)%>" size="4" name="sort"></input></font></td>                        
  81.                         </tr>                         
  82.                         <%
  83.                      }   
  84.                  } 
  85.         }
  86.     }
  87. %>                    
  88.                   
  89.                   
  90.                   
  91.                   <tr valign=center> 
  92.                     <td align=center height=25 valign=middle COLSPAN="7">&nbsp;</td>
  93.                   </tr>                  
  94.                   
  95.                   
  96.                   <tr valign=center> 
  97.                     <td align=CENTER height=25 valign=MIDDLE colspan="5">
  98.                     &nbsp;<input type="button" name="button_1" value="更新" onclick="sub()">
  99.                     </td>
  100.                   </tr>                  
  101.                   
  102.               </table>
  103.               <br> 
  104.               <p>&nbsp;&nbsp;&nbsp;&nbsp;
  105.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>