<%--
Created by IntelliJ IDEA.
User: Lenovo
Date: 2022/10/14
Time: 18:38
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>
</head>
<body>
<form action="/Java_test/UpdateServlet" method="post">
<input type="hidden"name="id" value="${user.id}">
<table align="center" border="1" cellspacing="0" width="500">
<tr>
<td><center>1.姓名:</center></td>
<td>
<label>
<input type="text" name="name" value="${user.name}" />
</label>
</td>
</tr>
<tr>
<td><center>2.学号:</center></td>
<td>
<label>
<input type="text" name="xuehao" maxlength="8" value="${user.xuehao}"/>
</label>
</td>
</tr>
<tr>
<td><center>3.学生类别:</center></td>
<td>
<label>
<c:if test="${user.leibie=='本科生'}">
<input type="radio" name="leibie" value="本科生" checked>本科生
<input type="radio" name="leibie" value="研究生" >研究生
</c:if>
<c:if test="${user.leibie=='研究生'}">
<input type="radio" name="leibie" value="本科生" >本科生
<input type="radio" name="leibie" value="研究生" checked>研究生
</c:if>
</label>
</td>
</tr>
<tr>
<td> <center>4.院系:</center></td>
<td>
<label>
<c:if test="${user.yuanxi=='土木学院'}">
<select name="yuanxi">
<option value="土木学院" selected>土木学院</option>
<option value="机械学院">机械学院</option>
<option value="交通学院">交通学院</option>
<option value="信息学院" >信息学院</option>
<option value="经管学院">经管学院</option>
</select>
</c:if>
<c:if test="${user.yuanxi=='机械学院'}">
<select name="yuanxi">
<option value="土木学院" >土木学院</option>
<option value="机械学院"selected>机械学院</option>
<option value="交通学院">交通学院</option>
<option value="信息学院" >信息学院</option>
<option value="经管学院">经管学院</option>
</select>
</c:if>
<c:if test="${user.yuanxi=='交通学院'}">
<select name="yuanxi">
<option value="土木学院" >土木学院</option>
<option value="机械学院">机械学院</option>
<option value="交通学院"selected>交通学院</option>
<option value="信息学院" >信息学院</option>
<option value="经管学院">经管学院</option>
</select>
</c:if>
<c:if test="${user.yuanxi=='信息学院'}">
<select name="yuanxi">
<option value="土木学院" >土木学院</option>
<option value="机械学院">机械学院</option>
<option value="交通学院">交通学院</option>
<option value="信息学院" selected>信息学院</option>
<option value="经管学院">经管学院</option>
</select>
</c:if>
<c:if test="${user.yuanxi=='经管学院'}">
<select name="yuanxi">
<option value="土木学院" >土木学院</option>
<option value="机械学院">机械学院</option>
<option value="交通学院">交通学院</option>
<option value="信息学院" >信息学院</option>
<option value="经管学院"selected>经管学院</option>
</select>
</c:if>
</label>
</td>
</tr>
<tr>
<td><center>5.联系电话:</center></td>
<td>
<label>
<input type="text" name="dianhua" value="${user.dianhua}" maxlength="11"/>
</label>
</td>
</tr>
<tr>
<td><center>6.健康码颜色:</center></td>
<td>
<label>
<c:if test="${user.jiankangma=='黄码'}">
<input type="radio" name="jiankangma" value="绿码">绿码
<input type="radio" name="jiankangma" value="黄码" checked>黄码
<input type="radio" name="jiankangma" value="红码">红码
</c:if>
<c:if test="${user.jiankangma=='绿码'}">
<input type="radio" name="jiankangma" value="绿码" checked>绿码
<input type="radio" name="jiankangma" value="黄码" >黄码
<input type="radio" name="jiankangma" value="红码">红码
</c:if>
<c:if test="${user.jiankangma=='红码'}">
<input type="radio" name="jiankangma" value="绿码">绿码
<input type="radio" name="jiankangma" value="黄码" >黄码
<input type="radio" name="jiankangma" value="红码" checked>红码
</c:if>
</label>
</td>
</tr>
<tr>
<td><center>7.行程统计</center></td>
<td>
<label>
<c:if test="${fn:contains(user.tongji,'1')}">
<input type="checkbox" name="tongji" value="1" checked/>10月30日去过人民医院。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'1')==false}">
<input type="checkbox" name="tongji" value="1" />10月30日去过人民医院。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'2')}">
<input type="checkbox" name="tongji" value="2" checked/>10月25日以来去过深泽县人民医院。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'2')==false}">
<input type="checkbox" name="tongji" value="2" />10月25日以来去过深泽县人民医院。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'3')}">
<input type="checkbox" name="tongji" value="3" checked/>10月16日以来去过深泽县庄泽村。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'3')==false}">
<input type="checkbox" name="tongji" value="3" />10月16日以来去过深泽县庄泽村。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'4')}">
<input type="checkbox" name="tongji" value="4" checked/>10月29日以来去过黑龙江哈尔滨市或者黑河市。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'4')==false}">
<input type="checkbox" name="tongji" value="4" />10月29日以来去过黑龙江哈尔滨市或者黑河市。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'5')}">
<input type="checkbox" name="tongji" value="5" checked/>10月18日以来途径贵州遵义市;北京丰台、昌平。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'5')==false}">
<input type="checkbox" name="tongji" value="5" />10月18日以来途径贵州遵义市;北京丰台、昌平。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'6')}">
<input type="checkbox" name="tongji" value="6" checked/>10月17日以来到过湖南长沙;青海海东市。<br>
</c:if>
<c:if test="${fn:contains(user.tongji,'6')==false}">
<input type="checkbox" name="tongji" value="6" />10月17日以来到过湖南长沙;青海海东市。<br>
</c:if>
</label>
</td>
</tr>
<tr>
<td><center>8.其他涉疫信<br>息需要填报的</center></td>
<td>
<label>
<textarea rows="5" cols="20" name="qita" >${user.qita}</textarea>
</label>
</td>
</tr>
<tr align="center">
<td colspan="2">
<input type="submit" value="提交" />
<input type="button" value="取消" id="no"/>
</td>
</tr>
</table>
<script>
document.getElementById("no").onclick=function (){
location.href="/Java_test/SelectAllServlet";
}
</script>
</form>
</body>
</html>