<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <title></title>

    <link rel="stylesheet" type="text/css" media="screen" href="<?= THEMEPATH ?>/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" media="screen" href="<?= THEMEPATH ?>/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" media="screen" href="<?= THEMEPATH ?>/css/front.css"/>
    <link rel="stylesheet" type="text/css" media="screen" href="<?= THEMEPATH ?>/css/bootstrap-dialog.min.css"/>

</head>
<body>
<nav class="navbar navbar-default navbar-fixed-bottom">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <a class="navbar-brand" href="#"><?= $room['name'] ?></a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li style="right:100%">
                    <a>
                        <button class="btn btn-primary" id="submitTest">
                            <i class="fa fa-check-square"></i>
                            提交试卷
                        </button>
                    </a>
                </li>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>

<div class="maskLayer">

    <div class="panel panel-default box">
        <div class="panel-body">
            <h4>
                <i class="fa fa-warning"></i>
                注意事项
            </h4>
            <h5 class="text-left">
                <ol>
                    <li>一旦参加考试中途不能退出（按ESC键），退出将自动提交试卷。考试中切换屏幕、改变屏幕大小都将自动提交试卷。</li>
                    <li>考试时只许携带考试必备的耳机、铅笔、橡皮、黑色字迹的签字笔、小刀等。书籍、笔记、电子词典等，均不准带入考场。考试时更不准携带手机等通讯工具进入考场，一经发现按作弊处理。</li>
                    <li>考试时交头接耳、左顾右盼、大声喧哗、不服从监考教师安排者，将按照考试管理的有关规定，从严论处。</li>
                </ol>
            </h5>
        </div>
        <div class="panel-footer">
            <div class="btn-group">
                <button class="btn btn-primary" id="signIn">
                    <i class="fa fa-sign-in"></i>
                    进入考试
                </button>
                <button class="btn btn-danger" id="signOut">
                    <i class="fa fa-sign-out"></i>
                    退出考试
                </button>
            </div>
        </div>
    </div>

</div>

<div id="main" class="page">

</div>

</body>
<!-- End Main -->
<script src="<?= THEMEPATH ?>/js/jquery.min.js"></script>

<script src="<?= THEMEPATH ?>/js/jquery.metisMenu.js"></script>
<script src="<?= THEMEPATH ?>/js/jquery.cookie.js"></script>
<script src="<?= THEMEPATH ?>/js/bootstrap.min.js"></script>
<script src="<?= THEMEPATH ?>/js/bootstrap-dialog.min.js"></script>
<script src="<?= THEMEPATH ?>/js/exam.js"></script>

<script type="text/javascript">
    $(function () {
        $('#signIn').click(function () {
            fullScreen();
            $('#main').load("<?=site_url('test/'.$room['id'])?>", function () {
                $('.maskLayer').hide();
            });
        });
        $('#signOut').click(function () {
            exitFullScreen();
            window.close();
        });
    });
</script>
</html>