qwb0614

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  187 随笔 :: 0 文章 :: 0 评论 :: 2048 阅读
复制代码
<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022/10/14
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<input type="button" value="新增" id="add"><br>
<hr>
<table border="1" cellspacing="0" width="100%">
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>学号</th>
        <th>类别</th>
        <th>院系</th>
        <th>电话</th>
        <th>健康码</th>
        <th>统计</th>
        <th>其他</th>

    </tr>

    <c:forEach items="${users}" var="us" varStatus="status">
        <%

        %>
        <tr align="center">
            <td>${status.count}</td>
            <td>${us.name}</td>
            <td>${us.xuehao}</td>
            <td>${us.leibie}</td>
            <td>${us.yuanxi}</td>
            <td>${us.dianhua}</td>

            <td>${us.jiankangma}</td>
            <td>
            <c:if test="${fn:contains(us.tongji,'1')}">
               10月30日去过人民医院。<br>
            </c:if>
            <c:if test="${fn:contains(us.tongji,'2')}">
                10月25日以来去过深泽县人民医院。<br>
            </c:if>
            <c:if test="${fn:contains(us.tongji,'3')}">
                10月16日以来去过深泽县庄泽村。<br>
            </c:if>
            <c:if test="${fn:contains(us.tongji,'4')}">
                10月29日以来去过黑龙江哈尔滨市或者黑河市。<br>
            </c:if>
            <c:if test="${fn:contains(us.tongji,'5')}">
                10月18日以来途径贵州遵义市;北京丰台、昌平。<br>
            </c:if>
            <c:if test="${fn:contains(us.tongji,'6')}">
                10月17日以来到过湖南长沙;青海海东市。<br>
            </c:if>
            </td>
<%--            <td>${us.tongji}</td>--%>
            <td>${us.qita}</td>
            <td><a href="/Java_test/SelectByXuehaoServlet?id=${us.id}">修改</a> <a href="/Java_test/DeleteServlet?id=${us.id}">删除</a></td>
        </tr>

    </c:forEach>


</table>
<script>
    document.getElementById("add").onclick=function (){
        location.href="/Java_test/addUser.jsp";
    }

</script>
</body>
</html>
复制代码

 

posted on   嘎嘎鸭1  阅读(4)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
点击右上角即可分享
微信分享提示