en_teach_paper.jsp
5.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SunVote Class Paper Management</title>
<!-- Bootstrap -->
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="../static/ace/css/datepicker.css" />
<link href="../static/css/teach.css" rel="stylesheet">
<link href="../static/css/paper.css?t=1" rel="stylesheet">
</head>
<body>
<div class="head_box">
<div class="box_header">
<div class="head_box_l">
<p>
<span class="right_b"></span>SunVote Class Paper Management
</p>
</div>
<div class="head_box_r">
<input class="date-picker" type="text" placeholder="Start Date" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/>
<input type="text" class="date-picker" placeholder="End Date" name="lastEnd" id="lastEnd" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/>
<select name="dealer_id_2" id="dealer_id_2" class="selectpicker show-tick form-control" data-width="98%" data-first-option="false" required data-live-search="true">
<!--班级列表-->
</select>
<a onclick="tosearch();"><img
src="../static/images/search.png" /></a>
</div>
<div class="clear"></div>
</div>
<div style="padding:0 5%;background:#fff;">
<table class="table table-striped">
<col style="width: 10%" />
<col style="width: 20%" />
<col style="width: 10%" />
<col style="width: 10%" />
<col style="width: 10%" />
<col style="width: 20%" />
<col style="width: 10%" />
<col style="width: 10%" />
<thead>
<tr>
<th><input type="checkbox" name='ids' id="ids" />Serial No.</th>
<th>Test Paper Title</th>
<th>Class</th>
<th>Subject</th>
<th>Exam Time</th>
<th>Create Time</th>
<th>View</th>
<th>Operate</th>
</tr>
</thead>
</table>
</div>
<div class="clearfix"></div>
</div>
<div class="table_box" style="margin-top:30px">
<table class="table table-striped">
<col style="width: 10%" />
<col style="width: 20%" />
<col style="width: 10%" />
<col style="width: 10%" />
<col style="width: 10%" />
<col style="width: 20%" />
<col style="width: 10%" />
<tbody id="tab_body">
</tbody>
</table>
<div class="footer" style="margin-top:50px">
<div class="creat">
<input type="button" id="creatPaper" value="New Paper " />
</div>
<div class="removeAll">
<input type="button" onclick="deleteAll()" value="Batch delete" />
</div>
<div class="page_box">
<div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Please select class</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="classList">
<ul>
</ul>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="submit" onclick="setQUestion()">Ok</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script>
<script src="../static/ace/js/bootbox.js"></script>
<script type="text/javascript">
var url = "<%=basePath%>";
$.fn.datepicker.dates['en'] = {
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
today: "Today",
clear: "Clear",
format: "mm/dd/yyyy",
titleFormat: "MM yyyy", /* Leverages same syntax as 'format' */
weekStart: 0
};
//日期框
$('.date-picker').datepicker({
autoclose: true,
todayHighlight: true,
language: 'en'
});
var view = "View" ;
</script>
<script src="../static/js/teach_paper.js?a=1"></script>
</html>