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

电子政务应用

开发平台:

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.         
  49.         }
  50.         
  51.        int curpage = request.getParameter("jumpPage")==null?1:Integer.parseInt(request.getParameter("jumpPage"));   
  52.          
  53.        //Vector m_vct = pageCtl.getcurData(mangeuser.getListUser(),10,curpage);  //取公告列表  //分页查询
  54.        Vector m_vct =  mangeuser.getListUser();  //未分页
  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 valign=center > 
  72.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="8"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  73.                 </tr>  
  74. <tr> 
  75. <td align="left" valign="top"> 
  76. <table align=center border=1 bordercolor=#095ab5 
  77.                   bordercolordark=#ffffff cellpadding=0 cellspacing=0 
  78.                   id=submenu1 width="90%">
  79.                 <tr valign=center BGCOLOR="#D0ECF9"> 
  80.                   <td align=CENTER height=25 valign=MIDDLE COLSPAN="9"><B><FONT SIZE="2">&nbsp;</FONT></B></td>
  81.                 </tr>
  82.                 <tbody>
  83.                   <tr valign=center> 
  84.                     <td align=left height=25 valign=MIDDLE 
  85.                          colspan=3><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;用户ID</font></td>                                          
  86.                     <td align=CENTER height=25 valign=MIDDLE 
  87.                         width="10%"><font color="#000000">用户昵称</font></td>
  88.                     <td align=CENTER height=25 valign=MIDDLE 
  89.                         width="10%"><font color="#000000">Email</font></td>                        
  90.                         <td align=CENTER height=25 valign=MIDDLE 
  91.                         width="10%"><font color="#000000">注册日期</font></td> 
  92.                         <td align=CENTER height=25 valign=MIDDLE 
  93.                         width="10%"><font color="#000000">最后登录时间</font></td>                                            
  94.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>状态</td>
  95.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>
  96.                     选择<input type="checkbox" name="allsel" value="all">
  97.                     </td>
  98.                   </tr>                  
  99.                   
  100. <%
  101.    if(m_vct!=null&&m_vct.size()>0)
  102.     {
  103.        for(int i=0;i<m_vct.size();i++)
  104.         {
  105.             Vector t_vct = (Vector)m_vct.get(i);
  106.             String status = (String)t_vct.get(5);
  107.             %>
  108.                   <tr valign=center> 
  109.                     <td align=left height=25 valign=MIDDLE width="10%"
  110.                         colspan=3><font color="#000000"><a href="#"><%=t_vct.get(1)%></a></font></td>                                          
  111.                     <td align=CENTER height=25 valign=MIDDLE 
  112.                         ><font color="#000000"><%=t_vct.get(2)%></font></td>
  113. <td align=CENTER height=25 valign=MIDDLE 
  114.                         width="15%"><font color="#000000"><%=t_vct.get(3)%></font></td>                        
  115.                         <td align=CENTER height=25 valign=MIDDLE 
  116.                         width="15%"><font color="#000000"><%=t_vct.get(6)%></font></td>      
  117.                         <td align=CENTER height=25 valign=MIDDLE 
  118.                         width="15%"><font color="#000000"><%=t_vct.get(4)==null?t_vct.get(6):t_vct.get(4)%></font></td>                                       
  119.                     
  120.                    <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1>&nbsp;
  121.                    <%
  122.                       if(status.equals("00"))
  123.                        {
  124.                           %>正常<%
  125.                        }
  126.                       else
  127.                        {
  128.                            %>注销<% 
  129.                        } 
  130.                    %>
  131.                    </td>
  132.                     <td width="10%" height=25 align=CENTER valign=MIDDLE colspan=1><input type="checkbox" name="id" value="<%=t_vct.get(0)%>"></td>
  133.                   </tr>               
  134.             <%
  135.         }
  136.     }
  137. %>    
  138.                 
  139.                   
  140.                   
  141.                   
  142.                   <tr valign=center> 
  143.                     <td align=center height=25 valign=middle COLSPAN="9">&nbsp;</td>
  144.                   </tr>   
  145.                                           <%
  146. if(pageCtl.getmaxPage()>1)
  147. {
  148.   %>
  149.                   <tr valign=top> 
  150.                     <td align=center height=16 valign="top" COLSPAN="9">
  151. <table>   
  152. <form name="PageForm"  action="manage_bulletin.jsp" method="post">
  153.           <tr>
  154. <td colspan="9" width="100%" align="left" valign="top"> 
  155. <div align="center"><br>&nbsp;&nbsp;
  156. <%if(pageCtl.getcurPage()==1){ out.print(" 首页 上一页");   }else{  %>
  157. <A HREF="javascript:gotoPage(1)">首页</A>
  158. <A HREF="javascript:gotoPage(<%=pageCtl.getcurPage()-1%>)">上一页</A>
  159. <%}%>
  160. <%if(pageCtl.getcurPage()==pageCtl.getmaxPage()){ out.print("下一页 尾页");
  161.    }else{  %>   
  162. <A HREF="javascript:gotoPage(<%=pageCtl.getcurPage()+1%>)">下一页</A>
  163. <A HREF="javascript:gotoPage(<%=pageCtl.getmaxPage()%>)">尾页</A>
  164. <%}%>
  165. 转到第<SELECT name="jumpPage" onchange="Jumping()">
  166.      <% for(int j=1;j<=pageCtl.getmaxPage();j++)  {
  167.      if (j== pageCtl.getcurPage()){
  168.      %>
  169.      <OPTION selected value=<%=j%>><%=j%></OPTION>
  170.      <%}else{%>
  171.      <OPTION value=<%=j%>><%=j%></OPTION>
  172.      <%}}%>   
  173.      </SELECT>页
  174.     </div>
  175. </td>
  176. </tr>
  177. </form> 
  178. </td>
  179.  </table>                    
  180.                     </td>
  181.                   </tr> 
  182.                    <tr valign=center> 
  183.                     <td align=center height=25 valign=middle COLSPAN="9">&nbsp;</td>
  184.                   </tr>     
  185. <% }%>                   
  186.                   
  187.               </table>
  188.               
  189.               <br> 
  190.               <p>&nbsp;&nbsp;&nbsp;&nbsp;
  191.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  192.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  193.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  194.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  195.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  196.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  197.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  198.               &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> 
  199. </table></td></tr>
  200.                 
  201.                                         
  202. </table>                  
  203. </td>
  204. </tr> 
  205. <tr> <td align="left" valign="top" background="../../../image/line_hor.jpg" height="1"> 
  206. </td></tr> </table>
  207. </form>
  208. </body>
  209. </html>