score_tt.jsp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. </tr>
  32. </thead>
  33. <tbody>
  34. <c:forEach items="${list}" var="sc" varStatus="num">
  35. <tr> <td>第${num.count}名</td>
  36. <td><a href="SportServlet?method=score_detail&id=${sc.name}" >${sc.name}</a></td>
  37. <td>${sc.xm_name}</td>
  38. </tr>
  39. </c:forEach>
  40. </tbody>
  41. </table>
  42. </div>
  43. </body>
  44. </html>