manageView.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:4k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GB2312"%>
  2. <%@ page import="java.sql.*,java.lang.*"%>
  3. <jsp:useBean id="managerBean" class="MyFly.Bean.managerBean" scope="request"/>
  4. <jsp:useBean id="managerBeans" class="MyFly.Bean.managerBeans" scope="request"/>
  5. <STYLE type=text/css>
  6. BODY {
  7. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  8. }
  9. TABLE {
  10. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  11. }
  12. TD {
  13. FONT: 12px 宋体
  14. }
  15. IMG {
  16. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  17. }
  18. A {
  19. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  20. }
  21. A:hover {
  22. COLOR: #428eff; TEXT-DECORATION: underline
  23. }
  24. .sec_menu {
  25. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  26. }
  27. .menu_title {
  28. }
  29. .menu_title SPAN {
  30. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  31. }
  32. .menu_title2 {
  33. }
  34. .menu_title2 SPAN {
  35. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  36. }
  37. .style1 {color: #FF0000}
  38. </STYLE>
  39. <html>
  40. <head>
  41. <title>网站管理员管理</title>
  42. <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  43. </head>
  44. <body>
  45. <p>&nbsp;</p>
  46. <table width="595" height="2%" border="0" align="center" cellpadding="0" cellspacing="0">
  47.   <tr> 
  48.     <td height="33" align="center"><span class="style1">网站管理员管理</span></td>
  49.   </tr>
  50. </table>
  51. <table width="595" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  52.   <tr valign="middle" bgcolor="#799ae1"> 
  53.     <td width="220" height="29" align="center"><font color="#FFFFFF">管理员登陆名</font></td>
  54.     <td width="221" align="center"><font color="#FFFFFF">密码</font></td>
  55.     <td align="center"><font color="#FFFFFF">编辑</font></td>
  56.     <td align="center"><font color="#FFFFFF">删除</font></td>
  57.   </tr>
  58. <%
  59.                            managerBeans.getQuery("-1");
  60.   
  61.   for(int i=0; i<managerBeans.getItems(); i++)
  62.   {
  63. %>
  64.   <tr> 
  65.     <td height="20" align="center">&nbsp;<%=managerBeans.getName(i)%></td>
  66.     <td align="center">&nbsp;<%=managerBeans.getPassword(i)%></a></td>
  67. <td width="60" align="center"><a href="manageEdit.jsp?index=<%=managerBeans.getManagerID(i)%>"><img src="../images/admin/edit.gif" alt="编辑" width="19" height="18" border="0"></a></td>
  68.     
  69. <td width="60" align="center"><a href="manageDel.jsp?index=<%=managerBeans.getManagerID(i)%>"><img src="../images/admin/del.gif" alt="删除" width="16" height="16" border="0"></a></td>
  70.   </tr>
  71. <%
  72. }
  73. %>
  74. </table>
  75. <table width="595" height="7%" border="3" align="center" cellpadding="0" cellspacing="0" bordercolor="#ffffff">
  76.   <form action="manageAdd.jsp" method=post name="column" onSubmit = "">
  77.   <tr >
  78.       <td width="899" height="196" align="center"><p>&nbsp;</p>
  79.         <table width="100%" height="163" border="1" cellspacing="0">
  80.         <tr valign="middle">
  81.           <td width="435" height="33" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;添加新管理员</td>
  82.         </tr>
  83.         <tr valign="middle">
  84.           <td height="39" align="center"><font color="#000000">管理员名称</font>:
  85.             <input name="name" type="text" size="20" height="16"></td>
  86.         </tr>
  87.         <tr>
  88.           <td height="27"><div align="center"><font color="#000000">
  89.                 管理员密码:
  90.                       <input name="password" type="password" value="" size="20" height="16">
  91.                        
  92.         </font></div></td>
  93.           </tr>
  94.         <tr align="center">
  95.           <td><font color="#000000">
  96.           <input type="submit" name="Submit" value="添加">
  97. </font></td>
  98.         </tr>
  99.       </table>
  100.       </td>
  101.   </tr>
  102.   </form>
  103. </table>
  104. <p>&nbsp; </p>
  105. </body>
  106. </html>