sport_gl.jsp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <base href="<%=basePath%>">
  11. <title>My JSP 'updateuser.jsp' starting page</title>
  12. <meta http-equiv="pragma" content="no-cache">
  13. <meta http-equiv="cache-control" content="no-cache">
  14. <meta http-equiv="expires" content="0">
  15. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  16. <meta http-equiv="description" content="This is my page">
  17. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.css">
  18. <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.1.0.min.js"></script>
  19. <script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
  20. </head>
  21. <body>
  22. <body>
  23. <div class="panel-body" style="padding-bottom:0px;">
  24. <h2>管理运动界面</h2>
  25. <table id="tb_departments" class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th align="center">序号</th>
  29. <th align="center">编号</th>
  30. <th align="center">运动项目</th>
  31. <th align="center">性别</th>
  32. <th align="center">运动场地</th>
  33. <th>操作</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <c:forEach items="${list}" var="sc" varStatus="num">
  38. <tr> <td>${num.count}</td>
  39. <td>${sc.id}</td>
  40. <td>${sc.sport_name}</td>
  41. <td>${sc.sport_sex}</td>
  42. <td>${sc.sport_area}</td>
  43. <td align="center"><a href="SportServlet?method=edit_sport&id=${sc.id}" class="btn btn-info btn-sm">编辑</a>
  44. <a href="SportServlet?method=delete_sport&id=${sc.id}" class="btn btn-danger btn-sm" onclick="return window.confirm('确认要删除?')">删除</a></td>
  45. </tr>
  46. </c:forEach>
  47. </tbody>
  48. </table>
  49. </div>
  50. </body>
  51. </html>