score_gl.jsp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 align="center">成绩</th>
  34. <th align="center">时间</th>
  35. <th>操作</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. <c:forEach items="${list}" var="sc" varStatus="num">
  40. <tr> <td>${num.count}</td>
  41. <td>${sc.id}</td>
  42. <td>${sc.name}</td>
  43. <td>${sc.sex}</td>
  44. <td>${sc.xm_name}</td>
  45. <td>${sc.xm_cj}</td>
  46. <td>${sc.time}</td>
  47. <td align="center"><a href="SportServlet?method=edit_score&id=${sc.id}" class="btn btn-info btn-sm">编辑</a>
  48. <a href="SportServlet?method=delete_score&id=${sc.id}" class="btn btn-danger btn-sm" onclick="return window.confirm('确认要删除?')">删除</a></td>
  49. </tr>
  50. </c:forEach>
  51. </tbody>
  52. </table>
  53. </div>
  54. </body>
  55. </html>