Examination_system/Examination_system-1/.svn/pristine/aa/aa80ef3f77b6fbf7cf4d9d7fff3...

277 lines
7.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld" %>
<!DOCTYPE html>
<html>
<head>
<%@include file="../baseset.jsp" %>
<%@include file="../systemset.jsp" %>
<script src="${bonuspath}/static/plugins/layer/2.1/layer.js"></script>
<title></title>
<style type="text/css">
.waitTop{
background-color: #000;
color: #fff;
font-size: 20px;
line-height: 6vh;
height: 6vh;
padding-left: 2%;
}
.waitmain{
height: 92vh;
margin-top: 1vh;
border-radius: 10px;
border: 1px solid #000;
width: 98%;
margin-left: 1%;
box-shadow: -5px -5px 5px #a5a5a5;
}
.waitmaininside{
width: 80%;
height: 80%;
margin-left: 10%;
margin-top: 5%;
}
.waitmaincontent{
margin-top: 2%;
font-size: 15px;
}
.exambtn{
margin-top: 8%;
margin-left: 45%;
background-color: #000;
color: #fff;
width: 10%;
font-size: 15px;
border-radius: 10px;
text-align: center;
}
button {
width: 130px;
height: 40px;
background: linear-gradient(to bottom, #4eb5e5 0%,#389ed5 100%); /* W3C */
border: none;
border-radius: 5px;
position: relative;
border-bottom: 4px solid #2b8bc6;
color: #fbfbfb;
font-weight: 600;
font-family: 'Open Sans', sans-serif;
text-shadow: 1px 1px 1px rgba(0,0,0,.4);
font-size: 15px;
text-align: left;
text-indent: 5px;
box-shadow: 0px 3px 0px 0px rgba(0,0,0,.2);
cursor: pointer;
/* Just for presentation */
display: block;
margin: 0 auto;
margin-bottom: 20px;
}
button:active {
box-shadow: 0px 2px 0px 0px rgba(0,0,0,.2);
top: 1px;
}
button:after {
content: "";
width: 0;
height: 0;
display: block;
border-top: 20px solid #187dbc;
border-bottom: 20px solid #187dbc;
border-left: 16px solid transparent;
border-right: 20px solid #187dbc;
position: absolute;
opacity: 0.6;
right: 0;
top: 0;
border-radius: 0 5px 5px 0;
}
/* Button pointing left */
button.back {
text-align: right;
padding-right: 12px;
box-sizing: border-box;
}
button.back:after {
content: "";
width: 0;
height: 0;
display: block;
border-top: 20px solid #187dbc;
border-bottom: 20px solid #187dbc;
border-right: 16px solid transparent;
border-left: 20px solid #187dbc;
position: absolute;
opacity: 0.6;
left: 0;
top: 0;
border-radius: 5px 0 0 5px;
}
</style>
</head>
<body>
<div class="waitExamPage">
<div class="waitTop">宿州教育培训考试系统 <button onclick="goback()" title="回到首页" class="back" style="background-color: #fff;margin-top: 0.2%;float: right;margin-right: 6%;text-align:center;line-height: 40px">返回首页</button></div>
<div class="waitmain">
<div class="waitmaininside">
<h2>考生须知</h2>
<div class="waitmaincontent">
<span>考试项目:&nbsp;&nbsp;&nbsp;</span><span>宿州教育培训考试</span><br>
<%--<span>考试时间:&nbsp;&nbsp;&nbsp;</span><span>${page.examTime}分钟</span><br>--%>
<span>考试总分:&nbsp;&nbsp;&nbsp;</span><span>100分</span><br>
<%--<span>考试描述:&nbsp;&nbsp;&nbsp;</span><span>${page.examName}</span><br>
<span>考试场次:&nbsp;&nbsp;&nbsp;</span><span>第${page.examCount}场</span><br>--%>
<div>考试内容:
<div style="margin-left: 5%;">
<span>单选题:&nbsp;&nbsp;&nbsp;</span><span>一题一分</span><br>
<span>多选题:&nbsp;&nbsp;&nbsp;</span><span>一题两分</span><br>
<span>判断题:&nbsp;&nbsp;&nbsp;</span><span>一题一分</span><br>
<span>填空题:&nbsp;&nbsp;&nbsp;</span><span>一题两分</span><br>
<span>简答题:&nbsp;&nbsp;&nbsp;</span><span>一题五分</span><br>
<span>案例分析:&nbsp;&nbsp;&nbsp;</span><span>一题十分</span>
</div>
</div><br>
<span>扣分规则:&nbsp;&nbsp;&nbsp;</span>
<span>
多选题:答对一个选项+0.5分,选错不得分;请谨慎作答;
</span><br>
<span>注意事项:&nbsp;&nbsp;&nbsp;</span>
<span>
不要在考试期间对试卷进行拍照,录屏等;禁止通过微信QQ等聊天软件交流考试答案;禁止通过浏览器搜索考试答案;
</span>
</div>
<c:choose>
<c:when test="${diff == 0}">
<button class="exambtn" onclick="toExampage()">进入考试</button>
</c:when>
<c:when test="${diff == 1}">
<button class="exambtn" style="width: 20%;">考试时间已过,请下次准时参加</button>
</c:when>
<c:when test="${diff == 4}">
<button class="exambtn" style="width: 20%;">该考生还没有报名</button>
</c:when>
<c:when test="${diff == 5}">
<button class="exambtn" style="width: 20%;">请联系管理员发布试题</button>
</c:when>
<c:otherwise>
<button class="exambtn" style="width: 20%;">未到考试时间,请稍后再试</button>
</c:otherwise>
</c:choose>
</div>
</div>
</div>
<script type="text/javascript">
/*window.onbeforeunload = function(event) {
event.returnValue = "确定关闭浏览器吗?系统会自动提交你的成绩并无法修改!!!";
};*/
function goback() {
window.history.go(-1);
}
function myrefresh(){
window.location.reload();
}
//setInterval(myrefresh,60000); //指定6秒刷新一次
//setInterval(judgeExamPerson,3000);
function judgeExamPerson(){
$.ajax({
type:"POST",
url:bonuspath +'/backstage/registration/judgeExamPerson',
data: {},
success:function(data){
var dataa = JSON.parse(data);
if(dataa.res == '1'){
var indexMsg = layer.confirm("<h4 style='color:red'>"+dataa.resMsg+"</h4>", {btn: ['好的','取消']},function(){
layer.close(indexMsg);
location.href="${bonuspath}/";
});
}
},
error:function(data){
console.log("服务器出错,请查看!");
}
})
}
$(function() {
if(window.name != "bencalie"){
console.log("清除shiro");
/* location.reload(); */
window.name = "bencalie";
}
else{
window.name = "";
}
})
var examId = '${page.examId}';
var examPerfession = '${page.examPerfession}';
var difficultId = '${page.difficultId}';
function toExampage() {
var idx = layer.msg('系统随机出题中,请稍等...', {
icon: 16
,shade: 0.01
,time:'-1'
});
//系统出题
var datas = {
examId: examId,
difficultId: difficultId,
examPerfession: examPerfession
};
$.ajax({
type:"POST",
url:bonuspath +'/backstage/grade/toExam',
data: JSON.stringify(datas),
dataType:"json",
contentType:"application/json",
success:function(data){
layer.close(idx);
location.href="${bonuspath}/backstage/grade/toExamPage?examId="+examId;
},
error:function(data){
console.log(data);
console.log("服务器出错,请查看!");
}
});
//插入个人成绩记录
var data = {
professId:examPerfession,
examId:examId,
endTime:'${page.endTime}'
};
$.ajax({
type:"POST",
url:bonuspath +'/backstage/score/saveExamPerson',
data: JSON.stringify(data),
dataType:"json",
contentType:"application/json",
success:function(data){
},
error:function(data){
console.log("服务器出错,请查看!");
}
})
}
</script>
</body>
</html>