diff --git a/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301/storage_v2/_src_/schema/testsql._Fc3qw.meta b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301/storage_v2/_src_/schema/testsql._Fc3qw.meta new file mode 100644 index 0000000..d645fb8 --- /dev/null +++ b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301/storage_v2/_src_/schema/testsql._Fc3qw.meta @@ -0,0 +1,2 @@ +#n:testsql +! [null, 0, null, null, -2147483648, -2147483648] diff --git a/web/cssFile/images/search1.png b/web/cssFile/images/search1.png new file mode 100644 index 0000000..9bd08bf Binary files /dev/null and b/web/cssFile/images/search1.png differ diff --git a/web/cssFile/images/search1.sai2 b/web/cssFile/images/search1.sai2 new file mode 100644 index 0000000..648da7a Binary files /dev/null and b/web/cssFile/images/search1.sai2 differ diff --git a/web/cssFile/images/search2.png b/web/cssFile/images/search2.png new file mode 100644 index 0000000..29fa8e3 Binary files /dev/null and b/web/cssFile/images/search2.png differ diff --git a/web/cssFile/images/search2.sai2 b/web/cssFile/images/search2.sai2 new file mode 100644 index 0000000..6ba357a Binary files /dev/null and b/web/cssFile/images/search2.sai2 differ diff --git a/web/cssFile/images/select.png b/web/cssFile/images/select.png new file mode 100644 index 0000000..5277e2b Binary files /dev/null and b/web/cssFile/images/select.png differ diff --git a/web/cssFile/select-style.css b/web/cssFile/select-style.css new file mode 100644 index 0000000..468972a --- /dev/null +++ b/web/cssFile/select-style.css @@ -0,0 +1,162 @@ +button{ + cursor: pointer; +} +.select-frame{ + position: relative; + width: 100%; + height: 100%; +} +a{ + text-decoration: none; +} +.search-frame{ + position: absolute; + width: 350px; + height: 50px; + top:40px; + right: 60px; + background-color: rgba(0, 0, 0, 0.14); + border-radius: 5px; +} +.search-button{ + float: left; + background: url("images/search1.png"); + cursor: pointer; + border-radius: 5px; + width: 55px; + height: 40px; + margin: 5px 0; +} +.search-button:hover{ + background: url("images/search2.png"); +} +.search-input{ + overflow: hidden; + padding: 0 0 0 10px; + margin: 5px 5px; + border-radius: 5px; + border: 0px; + float: left; + width: 280px; + height: 40px; + background: rgba(255, 255, 255, 0.85); +} +.search-input:hover{ + background: rgb(255, 255, 255); +} +.list-frame .list-child{ + margin: 10px 5px; + height: 120px; + width: 98%; + color: white; + border-radius: 10px; + box-shadow:4px 2px 5px rgba(0, 0, 0, 0.24); + border: 1px solid rgba(0, 0, 0, 0.2); +} +.list-child:hover{ + background: rgba(0, 0, 0, 0.06); +} +.list-frame{ + overflow-y: scroll; + right: 60px; + top: 100px; + position: absolute; + max-height: 700px; + width: 600px; +} +.select-it{ + box-shadow:0px 2px 4px rgba(0, 0, 0, 0.22); + color: white; + float: right; + border-radius: 5px; + height: 40px; + width: 80px; + background-color: #1f1d1c; + margin: 40px 2px 40px 2px; + border: 0px; + transition: all 0.3s; +} +.select-it:hover{ + width: 100px; +} +.name{ + background-color: #d1373d; + float: left; + height: 60px; + border-radius: 0px 5px 5px 0px; + width: 100px; + margin: 30px 0px; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.27); +} +.the-name{ + display: block; + height: 30px; + width: 80px; + margin: 15px 0px 15px 12px; + font-size: 18px; + color: white; + vertical-align: middle; +} +.count-select{ + cursor: pointer; + position: absolute; + width: 200px; + top: 100px; + left: 100px; + transition: all 0.3s; +} +.count-select:hover{ + top: 80px; +} +.select-blank{ + display: none; +} +.count-select:hover .select-blank{ + display: block; + transition: height 1s; + height: 400px; + background-color: #252323; + width: 95%; + margin:0px 5px; +} +.count-select .selected-info{ + width: 100%; + color: white; + font-size: 20px; + line-height: 50px; + text-align: center; + background-color: #d1373d; + border-radius: 5px 5px 0px 0px; + height: 60px; + border-bottom:1px solid rgba(0, 0, 0, 0.17); + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.27); +} +.count-select .selected-bottom{ + border-top:1px solid rgba(228, 118, 118, 0.31); + transition: all 1s; + width: 100%; + height: 60px; + background-color: #d1373d; + border-radius: 0px 0px 5px 5px; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.27); +} +.other-msgs{ + font-size: 10px; + float: left; + width: 350px; + height: 100px; + margin: 10px 0 10px 15px; +} +.other-msgs .one-msg{ + float:left; + padding-left: 10px; + margin: 2px 2px; + width: 45%; + height:16px; + background-color: rgba(0, 0, 0, 0.78); + border-radius: 10px; + transition: all 0.3s; +} +.one-msg:hover{ + background-color: rgba(39, 39, 39, 0.78); +} \ No newline at end of file diff --git a/web/get_time.jsp b/web/get_time.jsp new file mode 100644 index 0000000..7187282 --- /dev/null +++ b/web/get_time.jsp @@ -0,0 +1,31 @@ +<%-- + Created by IntelliJ IDEA. + User: lenovo + Date: 2019/1/10 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.Date" import="java.io.*,java.util.*" %> + + + Title + + +
<% + // 设置每隔5秒自动刷新 + response.setIntHeader("Refresh", 5); + // 获取当前时间 + Calendar calendar = new GregorianCalendar(); + String am_pm; + int hour = calendar.get(Calendar.HOUR); + int minute = calendar.get(Calendar.MINUTE); + int second = calendar.get(Calendar.SECOND); + if(calendar.get(Calendar.AM_PM) == 0) + am_pm = "AM"; + else + am_pm = "PM"; + String CT = hour+":"+ minute +":"+ second +" "+ am_pm; + out.println("当前时间: " + CT + "\n"); +%>
+ + diff --git a/web/jsFile/search.js b/web/jsFile/search.js new file mode 100644 index 0000000..44a9243 --- /dev/null +++ b/web/jsFile/search.js @@ -0,0 +1,35 @@ +$(document).ready(function () { + $(document).off('click',searchmsg).on('click','.search-button',searchmsg); + $(document).off('keydown',searchmsg).on('keydown','.search-input',KDsearchmsg); + $(document).off('click',select_one).on('click','.select-it',select_one); +}) +function searchmsg(e) { + if($('.search-input').val()=='') + { + e.preventDefault(); + alert('请输入学号'); + } + else { + var id=$('.search-input').val(); + var rqDate={"id":id}; + var Url1='result_list.jsp'; + $('.list-frame').load(Url1,rqDate); + } +} +function KDsearchmsg(e) { + if(e.keyCode==13) + { + searchmsg(e); + } +} +function select_one() { + var id=$('.select-it').val(); + var selectDate={"id":id}; + var Url2='select'; + $.post(Url2,selectDate,function (data ,status) { + if(status==200) + { + alert('操作成功'); + } + }) +} \ No newline at end of file diff --git a/web/result_list.jsp b/web/result_list.jsp new file mode 100644 index 0000000..2f349fa --- /dev/null +++ b/web/result_list.jsp @@ -0,0 +1,27 @@ +<%-- + Created by IntelliJ IDEA. + User: lenovo + Date: 2019/1/11 + Time: 19:57 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> + +<%String a=request.getParameter("id"); +String b[][]=new String[3][3]; +for(int i=0;i<3;i++) + for(int j=0;j<3;j++) + b[i][j]="hello"; +%> +<%%> +
+
<%=a%>
+
+ <%for(int k=0;k电话号码:"+b[k][n]+"
"); + %> +
电话号码:18711191679
+
+ + diff --git a/web/select.jsp b/web/select.jsp new file mode 100644 index 0000000..d214f7b --- /dev/null +++ b/web/select.jsp @@ -0,0 +1,65 @@ +<%-- + 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" %> + + + Title + + + + + +
+
+
+ +
+
+
+
已选学生
+
+
+
+
+
+
李先生
+
+
电话号码:18711191679
+
邮箱:823169880@qq.com
+
年级:2016
+
专业:软件工程
+
电话号码:18711191679
+
邮箱:823169880@qq.com
+
年级:2016
+
专业:软件工程
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +