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

电子政务应用

开发平台:

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.  
  22. function subdel()
  23.  {
  24.      if(confirm("是否确定删除所选新闻?"))
  25.       {
  26.          document.form1.par.value="auditing";       
  27.          document.form1.op.value="del"; 
  28.          document.form1.submit();
  29.       }   
  30. function addsub()
  31.  {    
  32.      document.form1.par.value="add";  
  33.      document.form1.submit();
  34.  }
  35. function query()
  36.  {    
  37.      document.form1.par.value="query";            
  38.      document.form1.submit();
  39.  } 
  40. </script>
  41. </head>
  42. <%
  43.        String par = request.getParameter("par");
  44.        String aid = "hjx";//(String)session.getAttribute("aid");
  45.        
  46.        if(par!=null&&par.equals("add"))
  47.         {
  48.           managebulletin.addBulletin(aid);
  49.         }
  50.         
  51.        int curpage = request.getParameter("jumpPage")==null?1:Integer.parseInt(request.getParameter("jumpPage"));   
  52.          
  53.        Vector m_vct = pageCtl.getcurData(managebulletin.getListBulletin(),10,curpage);  //取公告列表
  54.         
  55. %>
  56. <body bgcolor="#eff3f7" topmargin="0"  leftmargin="0">
  57. <IFRAME id=CalFrame style="DISPLAY: none; Z-INDEX: 100; WIDTH: 148px; POSITION: absolute; HEIGHT: 194px; left: 10px; top: 353px" 
  58. marginWidth=0 
  59. marginHeight=0 
  60. src="../../../../html/calendar.htm"
  61. frameBorder=0 
  62. noResize 
  63. scrolling=no>
  64. </IFRAME> 
  65. <SCRIPT event=onclick() for=document>
  66. <!--
  67. document.all.CalFrame.style.display="none";
  68. //-->
  69. </SCRIPT>
  70. <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
  71. <!--tr>
  72. <td align="left" valign="middle" height="2">
  73. <table align=center border=1 bordercolor=#095ab5 
  74.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  75.                   id=submenu1 width="90%">
  76.                   <tr valign=center>
  77.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">名    称:</FONT></B></td>
  78.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" width="25%">                  
  79.                   <FONT SIZE="2">
  80.                   <input type="text" name="name">
  81.                   </FONT>
  82.                   </td>
  83.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">状    态:</FONT></B></td>
  84.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" width="25%">
  85.                   <FONT SIZE="2">
  86.                   <select name="status">
  87.                   <option value="10">初始</option>
  88.                   <option value="all">不限</option>                  
  89.                   <option value="00">已发布</option>
  90.                   </select>
  91.                   </FONT>
  92.                   </td>
  93.                 </tr>       
  94.                 
  95.                 <tr valign=center>
  96.                   <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>
  97.                 </tr>                                            
  98. </table>                  
  99. </td>
  100. </tr--> 
  101. <tr valign=center > 
  102.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="8"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  103.                 </tr>  
  104. <tr> 
  105. <td align="left" valign="top"> 
  106. <table align=center border=1 bordercolor=#095ab5 
  107.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  108.                   id=submenu1 width="90%">
  109.                 <tr valign=center BGCOLOR="#D0ECF9"> 
  110.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="8"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  111.                 </tr>
  112.                 <tbody>
  113.                   <tr valign=center> 
  114.                     <td align=left height=25 valign=MIDDLE 
  115.                          colspan=3><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;公告标题</font></td>                                          
  116.                     <td align=CENTER height=25 valign=MIDDLE 
  117.                         width="10%"><font color="#000000">发布人</font></td>
  118.                         <td align=CENTER height=25 valign=MIDDLE 
  119.                         width="10%"><font color="#000000">有效日期</font></td>                   
  120.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>状态</td>
  121.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>
  122.                     选择<input type="checkbox" name="allsel" value="all">
  123.                     </td>
  124.                   </tr>                  
  125.                   
  126. <%
  127.    if(m_vct!=null&&m_vct.size()>0)
  128.     {
  129.        for(int i=0;i<m_vct.size();i++)
  130.         {
  131.             Vector t_vct = (Vector)m_vct.get(i);
  132.             String status = (String)t_vct.get(5);
  133.             %>
  134.                   <tr valign=center> 
  135.                     <td align=left height=25 valign=MIDDLE 
  136.                         colspan=3><font color="#000000"><a href="#"><%=t_vct.get(1)%></a></font></td>                                          
  137.                     <td align=CENTER height=25 valign=MIDDLE 
  138.                         width="10%"><font color="#000000"><%=t_vct.get(2)%></font></td>
  139.                         <td align=CENTER height=25 valign=MIDDLE 
  140.                         width="20%"><font color="#000000"><%=t_vct.get(3)%>至<%=t_vct.get(4)%></font></td>                   
  141.                     
  142.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>&nbsp;
  143.                    <%
  144.                       if(status.equals("00"))
  145.                        {
  146.                           %>已发布<%
  147.                        }
  148.                       else
  149.                        {
  150.                            %>未发布<% 
  151.                        } 
  152.                    %>
  153.                    </td>
  154.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1><input type="checkbox" name="id" value="<%=t_vct.get(0)%>"></td>
  155.                   </tr>               
  156.             <%
  157.         }
  158.     }
  159. %>    
  160.                 
  161.                   
  162.                   
  163.                   
  164.                   <tr valign=center> 
  165.                     <td align=center height=25 valign=middle COLSPAN="9">&nbsp;</td>
  166.                   </tr>   
  167.                                           <%
  168. if(pageCtl.getmaxPage()>1)
  169. {
  170.   %>
  171.                   <tr valign=top> 
  172.                     <td align=center height=16 valign="top" COLSPAN="9">
  173. <table>   
  174. <form name="PageForm"  action="manage_bulletin.jsp" method="post">
  175.           <tr>
  176. <td colspan="9" width="100%" align="left" valign="top"> 
  177. <div align="center"><br>&nbsp;&nbsp;
  178. <%if(pageCtl.getcurPage()==1){ out.print(" 首页 上一页");   }else{  %>
  179. <A HREF="javascript:gotoPage(1)">首页</A>
  180. <A HREF="javascript:gotoPage(<%=pageCtl.getcurPage()-1%>)">上一页</A>
  181. <%}%>
  182. <%if(pageCtl.getcurPage()==pageCtl.getmaxPage()){ out.print("下一页 尾页");
  183.    }else{  %>   
  184. <A HREF="javascript:gotoPage(<%=pageCtl.getcurPage()+1%>)">下一页</A>
  185. <A HREF="javascript:gotoPage(<%=pageCtl.getmaxPage()%>)">尾页</A>
  186. <%}%>
  187. 转到第<SELECT name="jumpPage" onchange="Jumping()">
  188.      <% for(int j=1;j<=pageCtl.getmaxPage();j++)  {
  189.      if (j== pageCtl.getcurPage()){
  190.      %>
  191.      <OPTION selected value=<%=j%>><%=j%></OPTION>
  192.      <%}else{%>
  193.      <OPTION value=<%=j%>><%=j%></OPTION>
  194.      <%}}%>   
  195.      </SELECT>页
  196.     </div>
  197. </td>
  198. </tr>
  199. </form> 
  200. </td>
  201.  </table>                    
  202.                     </td>
  203.                   </tr> 
  204.                    <tr valign=center> 
  205.                     <td align=center height=25 valign=middle COLSPAN="9">&nbsp;</td>
  206.                   </tr>     
  207. <% }%>                   
  208.                   
  209.               </table>
  210.               
  211.               <br> 
  212.               <p>&nbsp;&nbsp;&nbsp;&nbsp;
  213.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  214.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  215.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  216.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  217.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  218.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  219.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  220.               &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> 
  221. </table></td></tr>
  222. <form name="form1" method="post"> 
  223. <input type="hidden" name="par">
  224. <input type="hidden" name="op"><!--操作---> 
  225. <tr>
  226. <td align="left" valign="middle" height="2">&nbsp;</td>
  227. </tr> 
  228. <tr>
  229. <td align="left" valign="middle" height="2">&nbsp;</td>
  230. </tr> 
  231. <tr>
  232. <td align="left" valign="middle" height="2">
  233. <table align=center border=1 bordercolor=#095ab5 
  234.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  235.                   id=submenu1 width="90%">
  236.                   <tr valign=center>
  237.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">公告标题:</FONT></B></td>
  238.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" width="25%">                  
  239.                   <FONT SIZE="2">
  240.                   <input type="text" name="title">
  241.                   </FONT>
  242.                   </td>
  243.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">状    态:</FONT></B></td>
  244.                   <td align=left height=25 valign=MIDDLE COLSPAN="" width="25%">&nbsp;&nbsp;
  245.                   <FONT SIZE="2">
  246.                   <select name="status">
  247.                   <option value="00">已发布</option>
  248.                   <option value="10">未发始</option>
  249.                   </select>
  250.                   </FONT>
  251.                   </td>
  252.                 </tr>  
  253.                   <tr valign=center>
  254.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="1" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">有 效 期:</FONT></B></td>
  255.                   <td align=left height=25 valign=MIDDLE COLSPAN="3" width="25%">&nbsp;&nbsp;                   
  256.                   <FONT SIZE="2">
  257.                   <input type="text" name="low_valid_date"> 
  258.                    <A  onclick=event.cancelBubble=true;  href="javascript:ShowCalendar(document.form1.dimg3,document.form1.low_valid_date,null,0,330)"> 
  259.                     <img id=dimg3 src="../../../../image/public/images/button.gif" width="34" height="21" align="middle" border=0> 
  260.                     </A>
  261.                   
  262.                   至 <input type="text" name="hight_valid_date">
  263.                   <A  onclick=event.cancelBubble=true;  href="javascript:ShowCalendar(document.form1.dimg4,document.form1.hight_valid_date,null,0,330)"> 
  264.                     <img id=dimg4 src="../../../../image/public/images/button.gif" width="34" height="21" align="middle" border=0> 
  265.                     </A>
  266.                   </FONT>
  267.                   </td>                  
  268.                 </tr>                 
  269.                   <tr valign=center>
  270.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2">公告内容:</FONT></B></td>
  271.                   <td align=left height=25 valign=MIDDLE width="25%" colspan="3">&nbsp;&nbsp;                  
  272.                   <FONT SIZE="2">
  273.                   <textarea name="content" cols="65" rows="20" maxlength="4000" maxchar=4000></textarea>
  274.                   </FONT>
  275.                   </td>
  276.                   
  277.                 </tr>                     
  278.                 
  279.                 <tr valign=center>
  280.                   <td align=center height=25 valign=MIDDLE COLSPAN="4" BGCOLOR="#D0ECF9" width="25%"><B><FONT SIZE="2"><input type="button" value="添 加" onclick="addsub()"></input></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</B></td>
  281.                 </tr>                                            
  282. </table>                  
  283. </td>
  284. </tr> 
  285. <tr> <td align="left" valign="top" background="../../../image/line_hor.jpg" height="1"> 
  286. </td></tr> </table>
  287. </form>
  288. </body>
  289. </html>