1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>后台</title>
- <script type="text/javascript" src="js/jquery.js"></script>
- <link rel="stylesheet" href="css/add.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="screen" />
- </head>
- <body>
- <div class="table-responsive">
- <table class="table table-bordered">
- <caption>账号管理</caption>
- <thead>
- <tr>
- <th>编号</th>
- <th>账号</th>
- <th>密码</th>
- <th>邮箱</th>
- <th>权限</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${listuser}" var="a" varStatus="status">
- <tr class="
- <c:if test="${status.index%1==0}">active</c:if>
- <c:if test="${status.index%2==0}">success</c:if>
- <c:if test="${status.index%3==0}">warning</c:if>
- <c:if test="${status.index%4==0}">danger</c:if>
- ">
- <td>${a.id}</td>
- <td>${a.name}</td>
- <td>${a.pwd}</td>
- <td>${a.email}</td>
- <td>
- <c:if test="${a.state==0}">管理员</c:if>
- <c:if test="${a.state==1}">普通用户</c:if>
- </td>
-
- <td>
- <form action="user?type=5" method="post" id="delform">
- <input type="hidden" value="${a.id}" name="id" >
- <c:if test="${user.state==0}">
- <a href="javascript:$('#delform').submit();">删除</a>
- <a href="javascript:location.href='user?type=7&id=${a.id}';">修改</a>
- </c:if>
- <c:if test="${user.state==1 && user.id==a.id}">
- <a href="javascript:location.href='user?type=7&id=${a.id}';">修改</a>
- </c:if>
- </form>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </div>
- </body>
- </html>
|