<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>云阅卷</title>
<link href="${ctxStatic}/mark-new/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="${ctxStatic}/mark-new/css/style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="${ctxStatic}/mark-new/js/json2.js"></script>

<script type="text/javascript" src="${ctxStatic}/mark-new/js/jquery.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/jquery-ui.min.js "></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/jquery.mousewheel.min.js"></script>

<script type="text/javascript" src="${ctxStatic}/iviewer/jquery.iviewer.js"></script>
<link rel="stylesheet" href="${ctxStatic}/iviewer/jquery.iviewer.css" rel="stylesheet" />

<script src="${ctxStatic}/perfect-scrollbar/min/perfect-scrollbar.min.js"></script>
<link href="${ctxStatic}/perfect-scrollbar/min/perfect-scrollbar.min.css" rel="stylesheet">

<script type="text/javascript" src="${ctxStatic}/mark-new/js/mark-control.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/task-control.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/answer-view.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/paper-view.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/sheet-view.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/mark-board.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/mark-history.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/mark-status.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/image-builder.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/warning-info.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/thumbnail.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/single-image-view.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/change-name.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/tag-process.js"></script>
<script type="text/javascript" src="${ctxStatic}/mark-new/js/modules/view-sidebar.js"></script>
</head>
<body>
	<div class="container-fluid" id="container"></div>
	<script type="text/javascript">
		$(document).ready(function() {
			var mc = new MarkControl({
				container : $('#container'),
				staticServer : '${ctxStatic}',
				imageServer : '${sliceServer}',
				userName : '${web_user.name}',
				logoutUrl: '${ctx}/mark/logout',
				clearUrl: '${ctx}/mark/clear',
				modules : {
					'single-image-view' : {},
					'image-builder': {},
					'mark-status': {
						simple : false,
						<c:if test="${marker.common==true}">
						subjectSelectUrl: '${ctx}/mark/subject-select',
						</c:if>
						subjectName : '${subject.displayName}'
					},
					'mark-history':{
						pageSize:10
					},
					'mark-board' : {
						showScoreBoard : false,
						autoSubmit : false,
						needConfirm : false,
					  	showTotalScore:true
					},
					'sheet-view' : {
						server : '${sheetServer}'
					},
					'warning-info': {
					},
					'thumbnail':{
					},
					'change-name':{
						url : '${ctx}/mark/change-name'
					},
					'tag-process':{
						url : '${ctx}/mark/tags'
					},
					'view-sidebar':{
						list: [
							{title:'试卷',  url:'<c:if test="${subject.hasPaper==true}">${cardServer}${subject.paperUrl}</c:if>'},
							{title:'答案',  url:'<c:if test="${subject.hasAnswer==true}">${cardServer}${subject.answerUrl}</c:if>'}
						]
					}
				}
			});
			mc.start({
				mode : 'loop',
				statusUrl : '${ctx}/mark/status',
				getUrl : '${ctx}/mark/gettask',
				historyUrl : '${ctx}/mark/gethistory',
				submitUrl : '${ctx}/mark/savetask',
				clearUrl : '${ctx}/mark/clear'
			});
		});
	</script>
</body>
</html>