12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
-
- <title>My JSP 'updateuser.jsp' starting page</title>
-
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.css">
- <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.1.0.min.js"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
- </head>
-
- <body>
- <body>
- <div class="panel-body" style="padding-bottom:0px;">
- <h2>管理运动界面</h2>
- <table id="tb_departments" class="table table-bordered">
- <thead>
- <tr>
- <th align="center">序号</th>
- <th align="center">编号</th>
- <th align="center">运动项目</th>
- <th align="center">性别</th>
- <th align="center">运动场地</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${list}" var="sc" varStatus="num">
- <tr> <td>${num.count}</td>
- <td>${sc.id}</td>
- <td>${sc.sport_name}</td>
- <td>${sc.sport_sex}</td>
- <td>${sc.sport_area}</td>
- <td align="center"><a href="SportServlet?method=edit_sport&id=${sc.id}" class="btn btn-info btn-sm">编辑</a>
- <a href="SportServlet?method=delete_sport&id=${sc.id}" class="btn btn-danger btn-sm" onclick="return window.confirm('确认要删除?')">删除</a></td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </div>
- </body>
- </html>
|