admin_manager.jsp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:5k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <html>
  4. <head>
  5. <title>网站用户设置</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=gb2312">
  7. <meta http-equiv="Content-Language" Content="zh-CN">
  8. <meta name="Keywords" Content="">
  9. <meta name="Description" Content="">
  10. <link type="text/css" rel="stylesheet" href="/yf_article/Style/Style.css">
  11. <Script Language="JavaScript" src="Include/Function.js"></Script>
  12. <Script Language="JavaScript" src="Include/PopText.js"></Script>
  13. <script type="text/javascript">
  14. function validate(){
  15. if(document.Admin_Manager.Username.value==""){
  16. alert("账号不能空!");
  17. return false;
  18. }if(document.Admin_Manager.Password.value==""){
  19. alert("密码不能空!");
  20. return false;
  21. }
  22. }
  23. </script>
  24. </head>
  25. <body leftmargin="10" topmargin="10" bgcolor="#FFFFFF">
  26. <form name="Admin_Manager" method="post" action="admin.do?method=admin_manage" onsubmit="return validate();">
  27. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="142" bgcolor="#CEEFE7">
  28.  <tr>
  29.   <td width="600" height="30" background="Images/Admin_T_Bg1.gif" align="center" colspan="4"><font class="BlackS12"><b>网 站 用 户 管 理</b></font></td>
  30.  </tr>
  31.  <tr>
  32.   <td width="600" height="10" bgcolor="#FFFFFF" colspan="4"></td>
  33.  </tr>
  34.  <tr>
  35.   <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">用户账号</font></td>
  36.   <td width="218" height="28" bgcolor="#FFFFFF">&nbsp;<input type="text" name="Username" Maxlength="20" value="" class="Admin_InputText" style="width:170;background-color:#EAFBF5;"></td>
  37.   <td width="218" height="28" bgcolor="#FFFFFF">&nbsp;<font class="BlackS12"><input type="radio" name="operate" value="add" id="LabelMa_OptionA" checked="true"><label for="LabelMa_OptionA">创建账号</label>&nbsp;&nbsp;</font></td>
  38.  </tr>
  39.  <tr>
  40.   <td width="80" height="28" bgcolor="#FFFFFF" align="center"><font class="BlackS12">登录密码</font></td>
  41.   <td width="218" height="28" bgcolor="#FFFFFF">&nbsp;<input type="password" name="Password" Maxlength="20" size="20" value class="Admin_InputText" style="width:170;background-color:#EAFBF5;"></td>
  42.   <td width="218" height="28" bgcolor="#FFFFFF">&nbsp;<font class="BlackS12"><input type="radio" name="operate" value="update" id="LabelMa_Purview1"><label for="LabelMa_OptionE">修改密码</label>&nbsp;&nbsp;</font></td>
  43.  </tr>
  44.  <tr>
  45.   <td width="80" height="38" bgcolor="#FFFFFF"></td>
  46.   <td width="518" height="38" bgcolor="#FFFFFF" colspan="3">&nbsp;<input type="hidden" name="GuComm" value="AdMo"><input type="submit" name="Submit" value="" class="Admin_Button_ok">&nbsp;<input type="Reset" value="" name="Admin_Button_Reset" class="Admin_Button_Reset">&nbsp;</td>
  47.  </tr>
  48. </table>
  49. </form>
  50. <br>
  51. <form name="" method="post" action="admin.do?method=delete">
  52. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600" height="10" bgcolor="#CEEFE7">
  53.  <tr>
  54.   <td width="41" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">编号</font></td>
  55.   <td width="38" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">选择</font></td>
  56.   <td width="140" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">用户账号</font></td>
  57.   <td width="76" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">创建日期</font></td>
  58.   <td width="76" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">最后登录</font></td>
  59.   <td width="108" height="26" bgcolor="#EAFBF5" align="center"><font class="BlackS12">最后登录IP地址</font></td>
  60.  </tr>
  61. <c:forEach items="${admin_list}" var="admin">
  62. <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EAFBF5'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
  63.   <td width="41" height="26" align="center"><font class="BlackS12">${admin.id }</font></td>
  64.   <td width="38" height="26" align="center"><input type="checkbox" name="ManagerID" value="${admin.id }"></td>
  65.   <td width="140" height="26">&nbsp;<font class="BlackV12">${admin.username }</font></td>
  66.   <td width="76" height="26" align="center"><font class="BlackS12">${admin.add_date }</font></td>
  67.   <td width="68" height="26" align="center"><font class="BlackS12">${admin.last_login_date }</font></td>
  68.   <td width="76" height="26" align="center"><font class="BlackS12">${admin.last_login_ip }</font></td>
  69.  </tr>
  70. </c:forEach>
  71. <tr>
  72.   <td width="600" height="38" bgcolor="#FFFFFF" colspan="8" align="right"><input type="hidden" name="GuComm" value="De"><input type="submit" name="Submit" value="" class="Admin_Button_Delete">&nbsp;</td>
  73.  </tr>
  74. </table>
  75. </form>
  76. <br>
  77. </body> 
  78. </html>