You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gdms/web/home/select.jsp

83 lines
3.0 KiB

6 years ago
<%--
Created by IntelliJ IDEA.
User: lenovo
Date: 2019/1/11
Time: 11:13
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.Date" pageEncoding="UTF-8" %>
<%@ page import="core.user.User" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="core.process.C_TeacherSearchStudent" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
6 years ago
<html>
<head>
<title>Title</title>
6 years ago
<script type="text/javascript" src="../jsFile/jquery-3.3.1.js"></script>
<link type="text/css" rel="stylesheet" href="../cssFile/select-style.css">
<script type="text/javascript" src="../jsFile/search.js"></script>
6 years ago
</head>
<body>
<%
Map<String,String> map1=new HashMap<String,String>();
Map<String,String> map2=new HashMap<>();
map1.put("姓名","hehcu");
map1.put("学号","201630126050");
map1.put("电话","18711191679");
map1.put("状态","选择");
map2.put("姓名","laoshi");
map2.put("学号","54646546");
map2.put("电话","18711191679");
map2.put("状态","已选");
List<Map<String,String>> list=new ArrayList<>();
list.add(map1);
list.add(map2);
pageContext.setAttribute("list",list);
User user=(User)session.getAttribute("user");
String type=user.getType();
pageContext.setAttribute("type",type);
%>
6 years ago
<div class="updated">
<div class="select-frame">
<div class="fill-top-blank">
<div class="model-info">
<c:if test="${type=='teacher'}">
${"选择学生"}
</c:if>
<c:if test="${type=='student'}">
${"选择老师"}
</c:if>
</div>
<div class="search-frame">
<input class="search-input" type="text" name="id" value="" placeholder="输入学号查找">
<div class="search-button ${type}"></div>
</div>
6 years ago
</div>
<div class="count-select">
<div class="selected-info">已选学生</div>
<div class="select-blank"></div>
<div class="selected-bottom"></div>
</div>
<div class="list-frame bar-change">
<c:forEach items="${list}" var="z">
6 years ago
<div class="list-child">
<div class="name"><span class="the-name">${z.姓名}</span></div>
6 years ago
<div class="other-msgs">
<c:forEach items="${z}" var="msg" begin="1" end="${fn:length(z)-2}">
<div class="one-msg">${msg.key}${msg.value}</div>
</c:forEach>
6 years ago
</div>
<button class="select-it ${type} <c:if test="${z.状态=='已选'}">on</c:if>" value="${z.学号}">
${z.状态}</button>
6 years ago
</div>
</c:forEach>
6 years ago
</div>
</div>
</div>
</body>
</html>