admin1.jsp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%
  5. if(request.getSession().getAttribute("user")==null){
  6. response.sendRedirect("main.jsp");
  7. }
  8. %>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  13. <title>后台</title>
  14. <script type="text/javascript" src="js/jquery.js"></script>
  15. <link rel="stylesheet" href="css/add.css" type="text/css" media="screen" />
  16. <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="screen" />
  17. </head>
  18. <body>
  19. <c:if test="${user.state==1}">
  20. 您的权限不够!
  21. </c:if>
  22. <c:if test="${user.state==0}">
  23. <div class="div_from_aoto" style="width: 500px;">
  24. <FORM action="user?type=3" method="post">
  25. <DIV class="control-group">
  26. <LABEL class="laber_from">权限</LABEL>
  27. <DIV class="controls" >
  28. <SELECT class="input_select" name="state">
  29. <OPTION value="1">普通用户</OPTION>
  30. <OPTION value="0" selected="selected">超级管理</OPTION>
  31. </SELECT>
  32. </DIV>
  33. </DIV>
  34. <DIV class="control-group">
  35. <label class="laber_from">姓名</label>
  36. <DIV class="controls" ><INPUT class="input_from" name="name" type=text placeholder=" 请输入姓名" required><P class=help-block></P></DIV>
  37. </DIV>
  38. <DIV class="control-group">
  39. <LABEL class="laber_from">密码</LABEL>
  40. <DIV class="controls" ><INPUT class="input_from" name="pwd" type=text placeholder=" 请输入密码" required><P class=help-block></P></DIV>
  41. </DIV>
  42. <DIV class="control-group">
  43. <label class="laber_from">邮箱</label>
  44. <DIV class="controls" ><INPUT class="input_from" name="email" type=text placeholder=" 请输入邮箱" required><P class=help-block></P></DIV>
  45. </DIV>
  46. <DIV class="control-group">
  47. <LABEL class="laber_from" ></LABEL>
  48. <DIV class="controls" ><button type="submit" class="btn btn-primary" style="width:120px;" >确认注册</button></DIV>
  49. </DIV>
  50. </FORM>
  51. </div>
  52. </c:if>
  53. </body>
  54. </html>