938bb34d
=
1.增加预览
|
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
|
<%@ 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" %>
<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en" style="overflow-x:hidden;">
<head>
<base href="<%=basePath%>">
<!-- 下拉框 -->
<link rel="stylesheet" href="static/ace/css/chosen.css" />
<!-- jsp文件头和头部 -->
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<!-- 日期框 -->
<link rel="stylesheet" href="static/ace/css/datepicker.css" />
<link rel="stylesheet" href="static/css/edit.css" />
<style>
</style>
</head>
<body class="no-skin homework_edit">
<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
<!-- /section:basics/sidebar -->
<div class="main-content">
<div class="main-content-inner">
<div class="page-content">
<div class="row">
<div class="col-xs-12">
<form action="homework/${msg }.do" name="Form" id="Form" method="post">
<input type="hidden" name="TEACHER_ID" id="TEACHER_ID" value="${pd.TEACHER_ID}"/>
<div id="zhongxin" style="padding-top: 13px;width:80%;margin:0 auto;">
<table id="table_report" class="table">
<tr>
<td style="width:95px;text-align: right;padding-top: 13px;">练习标题</td>
<td><input type="text" name="NAME" class="form-control" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="输入练习标题,不超过20个汉字" title="作业代码" /></td>
</tr>
<tr>
<td style="width:95px;text-align: right;padding-top: 13px;">练习说明</td>
<td><input type="text" name=HOMEWORK_DESC class="form-control" id="HOMEWORK_DESC" value="${pd.HOMEWORK_DESC}" maxlength="255" placeholder="输入题目说明,如教材第12页1-5题,教辅第5页1-3题,尽量精简,不超过100个汉字" title="作业名称" /></td>
</tr>
<tr>
<td style="width:95px;text-align: right;padding-top: 13px;">指定班级完成时间</td>
<td>
<div class="classBox">
<ul>
<c:if test="${pd.CLASS_ID != null}">
<li class="checked">
<input type="checkbox" checked="true" id="class0" name="className" value="${pd.CLASS_ID}" />
<label for="class0"></label>
<span>${myelfun:findClassName(pd.CLASS_ID)}</span>
<input class="date-picker" type="text" class="form-control" style="width:150px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.COMPLETE_DATE}"/>
</li>
</c:if>
|
91667610
=
1.增加预览
|
65
|
|
938bb34d
=
1.增加预览
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
</ul>
</div>
</td>
</tr>
</table>
</div>
<hr />
<div class="subject" style="width:80%;margin:0 auto;">
<table width="100%">
<col width="50%"/>
<col width="20%"/>
<col width="20%"/>
<col width="10%"/>
<thead>
<tr>
|
91667610
=
1.增加预览
|
83
84
85
|
<th style="text-align:left;"><span>题目数量</span><input type="number" class="w_100" id="que_num" value="${pd.QUESTION_COUNT==null?0:pd.QUESTION_COUNT}"/></th>
<th><span>选项个数</span><input type="number" class="w_100 ans_num" id="ans_num" value="4"/></th>
<th><span>分值</span><input type="number" class="w_100 score" id="score" value="1"/></th>
|
938bb34d
=
1.增加预览
|
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
|
<th></th>
</tr>
</thead>
</table>
<table width="100%" border="0" class="subject_body_tabel">
<col width="10%"/>
<col width="40%"/>
<col width="20%"/>
<col width="20%"/>
<col width="10%"/>
<tbody class="subject_body_tbody">
<c:choose>
<c:when test="${not empty pd.QUESTIONS}">
<c:forEach items="${pd.QUESTIONS}" var="var" varStatus="vs">
<tr>
<td class="first">${var.RANK}</td>
<td class="middle">
<div class="question question${var.RANK}">
<ul>
<c:forEach var="i" begin="1" end="${var.OPTION_NUM}">
<c:set var="a" value="${fn:substring('ABCDEFGHI',i-1,i)}"/>
<li class="btn btn-default <c:if test="${fn:contains(var.RIGHT_ANSWER, a)}"> on </c:if>">${a}</li>
</c:forEach>
</ul>
</div>
</td>
|
91667610
=
1.增加预览
|
115
116
117
|
<td class="middle"><span>选项个数</span><input type="number" class="w_100 ans_num" value="${var.OPTION_NUM}"/></td>
<td class="middle"><span>分值</span><input type="number" class="w_100 score" value="${var.SCORE}"/></td>
<td class="last"></td>
|
938bb34d
=
1.增加预览
|
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr class="main_info">
<td colspan="100" class="center">没有相关数据</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
</div>
<hr />
<div>
<div style="text-align: center;" colspan="10">
|
91667610
=
1.增加预览
|
135
136
|
<a class="btn btn-mini btn-danger" onclick="back();">退出</a>
|
938bb34d
=
1.增加预览
|
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
</div>
</div>
<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
</div>
<!-- /.main-container -->
<!-- 页面底部js¨ -->
<%@ include file="../../system/index/foot.jsp"%>
<!-- 下拉框 -->
<script src="static/ace/js/chosen.jquery.js"></script>
<!-- 日期框 -->
<script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
<!--提示框-->
<script type="text/javascript" src="static/js/jquery.tips.js"></script>
<!--页面交互-->
|
91667610
=
1.增加预览
|
166
|
|
938bb34d
=
1.增加预览
|
167
|
<script>
|
938bb34d
=
1.增加预览
|
168
169
170
|
$(function() {
window.top.loading.remove();
|
938bb34d
=
1.增加预览
|
171
|
});
|
91667610
=
1.增加预览
|
172
173
174
175
|
function back(){
var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}';
parent.$("#mainFrame").attr('src',path);
window.top.loading.show();
|
938bb34d
=
1.增加预览
|
176
177
|
}
|
91667610
=
1.增加预览
|
178
179
|
|
938bb34d
=
1.增加预览
|
180
181
182
|
</script>
</body>
</html>
|