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/select.jsp

70 lines
2.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%--
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" %>
<%@ 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" %>
<html>
<head>
<title>Title</title>
<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>
</head>
<body>
<%
C_TeacherSearchStudent searchStudent=new C_TeacherSearchStudent();
List<Map<String,String>> list=new ArrayList<>();
pageContext.setAttribute("list",list);
User user=(User)session.getAttribute("user");
String type=user.getType();
pageContext.setAttribute("type",type);
%>
<div class="updated">
<div class="select-frame">
<div class="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"></div>
</div>
</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">
<div class="list-child">
<div class="name"><span class="the-name">${z.姓名}</span></div>
<div class="other-msgs">
<c:forEach items="${z}" var="msg" begin="1">
<div class="one-msg">${msg.key}${msg.value}</div>
</c:forEach>
</div>
<button class="select-it" value="${z.学号}">选择</button>
</div>
</c:forEach>
</div>
</div>
</div>
</body>
</html>