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

电子政务应用

开发平台:

MultiPlatform

  1. <%@ page contentType="text/html;charset=gb2312"%>
  2. <%@ page errorPage="errorPage.jsp" session="true" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ include file="../pub/control.jsp"%>
  5. <%@ include file="../include/config.jsp"%>
  6. <%@ include file="../include/head.jsp"%>
  7. <html>
  8. <head>
  9. <title>新闻栏目维护</title>
  10. <link rel="stylesheet" href="../../../../css/style.css" type="text/css">
  11. <script language=javascript src="../../../../js/date.js"></script>
  12. <SCRIPT language=JavaScript src="../../../../js/JSDateFunction.js"></SCRIPT>
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  14. <script language="javascript">
  15. function sub()
  16.  {    
  17.      document.form1.par.value="auditing";       
  18.      document.form1.op.value="pass"; 
  19.      document.form1.submit();
  20.  }
  21. function subdel()
  22.  {
  23.      if(confirm("是否确定删除所选新闻?"))
  24.       {
  25.          document.form1.par.value="auditing";       
  26.          document.form1.op.value="del"; 
  27.          document.form1.submit();
  28.       }   
  29.  } 
  30. function query()
  31.  {    
  32.      document.form1.par.value="query";            
  33.      document.form1.submit();
  34.  } 
  35. </script>
  36. <script language="javascript">
  37. var arrayboardID=new Array();
  38. var arrayboardName=new Array();
  39. var arrayboardParentID=new Array();
  40. <%
  41. Vector type_vct = manageclass.getAllType();
  42. for(int i=0; i<type_vct.size(); i++)
  43. {
  44.     Vector atype_vct =(Vector)type_vct.get(i);
  45.     %>
  46.     arrayboardID[<%=i%>]=<%=atype_vct.get(0)%>; arrayboardName[<%=i%>]='<%=atype_vct.get(1)%>'; arrayboardParentID[<%=i%>]='<%=atype_vct.get(2)%>';
  47.     <%
  48. }
  49. %>
  50. function changeBoardParent()
  51. {
  52. /**
  53. *@设置一级拦目
  54. */    
  55.    setBoard(document.form1.new_type.value);
  56. }
  57. function setBoard(province)
  58. {
  59. /**
  60. *@设置二级拦目
  61. */
  62. document.form1.new_sub_type.options.length=0;
  63. var count=0;
  64. document.form1.new_sub_type.add(document.createElement('OPTION'));
  65. document.form1.new_sub_type.options[count].text="不限";
  66. document.form1.new_sub_type.options[count].value="all";
  67. count++; 
  68. if(province!="all"){
  69. for(var i=0; i<arrayboardParentID.length; ++i)
  70. {
  71.     if(arrayboardParentID[i]==province)
  72.     {
  73.          document.form1.new_sub_type.add(document.createElement('OPTION'));
  74.          document.form1.new_sub_type.options[count].text=arrayboardName[i];
  75.          document.form1.new_sub_type.options[count].value=arrayboardID[i];
  76.          count++;
  77.     }
  78. }
  79.     }   
  80. }
  81. //-->
  82. </script>
  83. </head>
  84. <%
  85.        String par = request.getParameter("par");
  86.        
  87.        if(par!=null&&par.equals("auditing"))
  88.         {
  89.             manageauditing.updateNewSta();
  90.         }
  91.         
  92.        int curpage = request.getParameter("jumpPage")==null?1:Integer.parseInt(request.getParameter("jumpPage"));   
  93.        //out.println(manageauditing.getNewList());  
  94.        //Vector m_vct = pageCtl.getcurData(manageauditing.getNewList(),20,curpage);  //取新闻列表 
  95.        Vector m_vct =manageauditing.getNewList();  //取新闻列表 
  96.        // out.println(m_vct.toString());  
  97.         
  98. %>
  99. <body bgcolor="#eff3f7" topmargin="0"  leftmargin="0">
  100. <IFRAME id=CalFrame style="DISPLAY: none; Z-INDEX: 100; WIDTH: 148px; POSITION: absolute; HEIGHT: 194px; left: 10px; top: 353px" 
  101. marginWidth=0 
  102. marginHeight=0 
  103. src="../../../../html/calendar.htm"
  104. frameBorder=0 
  105. noResize 
  106. scrolling=no>
  107. </IFRAME> 
  108. <SCRIPT event=onclick() for=document>
  109. <!--
  110. document.all.CalFrame.style.display="none";
  111. //-->
  112. </SCRIPT>
  113. <form name="form1" method="post"> 
  114. <input type="hidden" name="par">
  115. <input type="hidden" name="op"><!--操作--->
  116. <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
  117. <tr>
  118. <td align="left" valign="middle" height="2">
  119. <table align=center border=1 bordercolor=#095ab5 
  120.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  121.                   id=submenu1 width="90%">
  122.                   <tr valign=center>
  123.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">名&nbsp;&nbsp;&nbsp;&nbsp;称:</FONT></B></td>
  124.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" width="25%">                  
  125.                   <FONT SIZE="2">
  126.                   <input type="text" name="name">
  127.                   </FONT>
  128.                   </td>
  129.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">状&nbsp;&nbsp;&nbsp;&nbsp;态:</FONT></B></td>
  130.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" width="25%">
  131.                   <FONT SIZE="2">
  132.                   <select name="status">
  133.                   <option value="10">初始</option>
  134.                   <option value="all">不限</option>                  
  135.                   <option value="00">已发布</option>
  136.                   </select>
  137.                   </FONT>
  138.                   </td>
  139.                 </tr>   
  140.                   <tr valign=center>
  141.                   <td align=center height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">发布时间:</FONT></B></td>
  142.                   <td align=left height=25 valign=MIDDLE COLSPAN="3" width="25%">&nbsp;&nbsp;                 
  143.                   <FONT SIZE="2">
  144.                   <input type="text" name="start_date"> 
  145.                    <A  onclick=event.cancelBubble=true;  href="javascript:ShowCalendar(document.form1.dimg3,document.form1.start_date,null,0,330)"> 
  146.                     <img id=dimg3 src="../../../../image/public/images/button.gif" width="34" height="21" align="middle" border=0> 
  147.                     </A>
  148.                   
  149.                   至 <input type="text" name="end_date">
  150.                    <A  onclick=event.cancelBubble=true;  href="javascript:ShowCalendar(document.form1.dimg4,document.form1.end_date,null,0,330)"> 
  151.                     <img id=dimg4 src="../../../../image/public/images/button.gif" width="34" height="21" align="middle" border=0> 
  152.                     </A>                  
  153.                   </FONT>
  154.                   </td>
  155.                 </tr> 
  156.                 
  157.                   <tr valign=center>
  158.                   <td align=center height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">所属栏目:</FONT></B></td>
  159.                   <td align=left height=25 valign=MIDDLE COLSPAN="3" width="25%">&nbsp;&nbsp;                 
  160.                   <FONT SIZE="2">
  161.                   <select name=new_type onChange=changeBoardParent()>               
  162.                   <option value="all">不限</option>
  163. <%
  164.    Vector new_type = manageclass.getNewClass();
  165.     if(new_type!=null && new_type.size()>0)
  166.      {
  167.           for(int i=0;i<new_type.size();i++)
  168.            {
  169.              Vector t_vct = (Vector)new_type.get(i);
  170.              %>
  171.               <option value="<%=t_vct.get(0)%>"><%=t_vct.get(1)%></option>
  172.              <% 
  173.            }
  174.      }
  175. %>                  
  176.                   </select>
  177.                   <select name=new_sub_type>               
  178.                   <option value="all">不限</option>
  179.                   </select>
  180.                   </FONT>
  181.                   </td>
  182.                 </tr>                 
  183.                     
  184.                 
  185.                 <tr valign=center>
  186.                   <td align=center height=25 valign=MIDDLE COLSPAN="4" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2"><input type="button" value="查 询" onclick="query()"></input></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</B></td>
  187.                 </tr>                                            
  188. </table>                  
  189. </td>
  190. </tr> 
  191. <tr valign=center > 
  192.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="8"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  193.                 </tr>  
  194. <tr> 
  195. <td align="left" valign="top"> 
  196. <table align=center border=1 bordercolor=#095ab5 
  197.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  198.                   id=submenu1 width="90%">
  199.                 <tr valign=center BGCOLOR="#D0ECF9"> 
  200.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="8"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  201.                 </tr>
  202.                 <tbody>
  203.                   <tr valign=center> 
  204.                     <td align=left height=25 valign=MIDDLE 
  205.                         width="25%" colspan=3><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;新闻名称</font></td>                                          
  206.                     <td align=CENTER height=25 valign=MIDDLE 
  207.                         width="25%"><font color="#000000">所属栏目</font></td>
  208.                         <td align=CENTER height=25 valign=MIDDLE 
  209.                         width="10%"><font color="#000000">顺序</font></td>
  210.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>作者</td>     
  211.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>状态</td>
  212.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>选择</td>
  213.                   </tr>                  
  214.                   
  215. <%
  216.    if(m_vct!=null&&m_vct.size()>0)
  217.     {
  218.        for(int i=0;i<m_vct.size();i++)
  219.         {
  220.             Vector t_vct = (Vector)m_vct.get(i);
  221.             %>
  222.                   <tr valign=center> 
  223.                     <td align=left height=25 valign=MIDDLE 
  224.                         width="25%" colspan=3><font color="#000000"><a href="#"><%=t_vct.get(1)%></a></font></td>                                          
  225.                     <td align=CENTER height=25 valign=MIDDLE 
  226.                         width="25%"><font color="#000000"><%=t_vct.get(7)%>--><%=t_vct.get(9)%></font></td>
  227.                         <td align=CENTER height=25 valign=MIDDLE 
  228.                         width="10%"><font color="#000000"><input type="text" name="sort" value="<%=t_vct.get(3)%>" size="4"></font></td>
  229.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1><%=t_vct.get(2)%></td>     
  230.                     
  231.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>&nbsp;
  232.                    <%
  233.                    
  234.                         if(t_vct.get(5).equals("00"))
  235.                          {
  236.                            %>
  237.                              已发布
  238.                            <%
  239.                          }
  240.                         if(t_vct.get(5).equals("10"))
  241.                          {
  242.                            %>
  243.                              初始
  244.                            <%
  245.                          }                         
  246.                         if(t_vct.get(5).equals("20"))
  247.                          {
  248.                            %>
  249.                              已删除
  250.                            <%
  251.                          }                                                  
  252.                          
  253.                    %>                   
  254.                    </td>
  255.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1><input type="checkbox" name="id" value="<%=t_vct.get(0)%>"></td>
  256.                   </tr>               
  257.             <%
  258.         }
  259.     }
  260. %>                    
  261.                   
  262.  </form>                 
  263.                   
  264.                   <tr valign=center> 
  265.                     <td align=center height=25 valign=middle COLSPAN="9">&nbsp;</td>
  266.                   </tr>   
  267.                                           <%
  268. if(pageCtl.getmaxPage()>1)
  269. {
  270.   %>
  271.                   <tr valign=top> 
  272.                     <td align=center height=16 valign="top" COLSPAN="9">
  273. <table>   
  274. <form name="PageForm"  action="manage_newauditing.jsp" method="post">
  275.           <tr>
  276. <td colspan="9" width="100%" align="left" valign="top"> 
  277. <div align="center"><br>&nbsp;&nbsp;
  278. <%if(pageCtl.getcurPage()==1){ out.print(" 首页 上一页");   }else{  %>
  279. <A HREF="javascript:gotoPage(1)">首页</A>
  280. <A HREF="javascript:gotoPage(<%=pageCtl.getcurPage()-1%>)">上一页</A>
  281. <%}%>
  282. <%if(pageCtl.getcurPage()==pageCtl.getmaxPage()){ out.print("下一页 尾页");
  283.    }else{  %>   
  284. <A HREF="javascript:gotoPage(<%=pageCtl.getcurPage()+1%>)">下一页</A>
  285. <A HREF="javascript:gotoPage(<%=pageCtl.getmaxPage()%>)">尾页</A>
  286. <%}%>
  287. 转到第<SELECT name="jumpPage" onchange="Jumping()">
  288.      <% for(int j=1;j<=pageCtl.getmaxPage();j++)  {
  289.      if (j== pageCtl.getcurPage()){
  290.      %>
  291.      <OPTION selected value=<%=j%>><%=j%></OPTION>
  292.      <%}else{%>
  293.      <OPTION value=<%=j%>><%=j%></OPTION>
  294.      <%}}%>   
  295.      </SELECT>页
  296.     </div>
  297. </td>
  298. </tr>
  299. </form> 
  300. </td>
  301.  </table>                    
  302.                     </td>
  303.                   </tr> 
  304.                    <tr valign=center> 
  305.                     <td align=center height=25 valign=middle COLSPAN="9">&nbsp;</td>
  306.                   </tr>     
  307. <% }%>                   
  308.                   
  309.               </table>
  310.               <br> 
  311.               <p>&nbsp;&nbsp;&nbsp;&nbsp;
  312.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  313.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  314.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  315.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  316.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  317.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  318.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  319.               &nbsp;&nbsp;&nbsp;<input type="button" name="button_1" value="批准" onclick="sub()">&nbsp;<input type="button" name="button_1" value="删除" onclick="subdel()">&nbsp;&nbsp;</p></td></tr> 
  320. </table></td></tr> <tr> <td align="left" valign="top" background="../../../image/line_hor.jpg" height="1"> 
  321. </td></tr> </table>
  322. </body>
  323. </html>