<%@ 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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>高校版阅卷系统</title>
    <link type="text/css" href="${ctxStatic}/mark/style/bootstrap.css" rel="stylesheet"/>
    <link type="text/css" href="${ctxStatic}/mark/style/style.css" rel="stylesheet"/>
    
    <script type="text/javascript" src="${ctxStatic}/mark/js/jquery.min.js"></script>
    <script type="text/javascript" src="${ctxStatic}/mark/js/jquery-ui.min.js "></script>
    <script type="text/javascript" src="${ctxStatic}/mark/js/jquery.mousewheel.min.js"></script>
    
    <script type="text/javascript" src="${ctxStatic}/mark/js/jquery.iviewer.js"></script>
    <link rel="stylesheet" href="${ctxStatic}/mark/style/jquery.iviewer.css" rel="stylesheet"/>
    
    <script type="text/javascript" src="${ctxStatic}/mark/js/perfect-scrollbar.min.js"></script>
    <link rel="stylesheet" href="${ctxStatic}/mark/style/perfect-scrollbar.min.css"/>
    
    <script type="text/javascript" src="${ctxStatic}/mark/js/mark-control.js"></script>
    <script type="text/javascript" src="${ctxStatic}/mark/js/mark-module.js"></script>
    <script type="text/javascript" src="${ctxStatic}/mark/js/task-control.js"></script>
    <script type="text/javascript" src="${ctxStatic}/mark/js/module-config.js"></script>
</head>

<body>
<div class="container-fluid">
    <div class="row-fluid" id="container">
    </div>
</div>
</body>

<script type="text/javascript">
    $(document).ready(function () {
        var mc = new MarkControl({
            container: $('#container'),
            userName: '${web_user.marker.name}',
            staticServer: '${ctxStatic}/mark/',
            imageServer: '${fileServer}',
            modules: {
                'imageSimple': {},
                'problem': {
                    autoSubmit: false,
                    reasons: ['试卷模糊', '答错位置', '无法判别']
                }
            }
        });
        mc.start({
            mode: 'loop', //loop, list
            submitUrl: '${ctx}/mark/savetask',
            getUrl: '${ctx}/mark/gettask',
            historyUrl: '${ctx}/mark/gethistory'
        });
    });
</script>

</html>