RuoYi/ruoyi-exam/src/main/resources/templates/exam/examExamination/add.html

125 lines
4.8 KiB
HTML
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.

<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-examExamination-add">
<!--<div class="form-group"> -->
<!--<label class="col-sm-3 control-label">部门ID</label>-->
<!--<div class="col-sm-8">-->
<!--<input id="deptId" name="deptId" class="form-control" type="text">-->
<!--</div>-->
<!--</div>-->
<div class="form-group">
<label class="col-sm-3 control-label">试卷代码:</label>
<div class="col-sm-8">
<input id="examPaperId" name="examPaperId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">试卷名称:</label>
<div class="col-sm-8">
<input id="name" name="name" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否控制开始结束时间:</label>
<div class="col-sm-8">
<select id="enableControlTime" name="enableControlTime" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_enableControlTime')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">开始时间:</label>
<div class="col-sm-8">
<input id="startTime" name="startTime" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">结束时间:</label>
<div class="col-sm-8">
<input id="endTime" name="endTime" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">考试时长(分钟):</label>
<div class="col-sm-8">
<input id="timeLength" name="timeLength" class="form-control" type="text">
</div>
</div>
<!--<div class="form-group"> -->
<!--<label class="col-sm-3 control-label">考试次数:</label>-->
<!--<div class="col-sm-8">-->
<!--<input id="examNumber" name="examNumber" class="form-control" type="text">-->
<!--</div>-->
<!--</div>-->
<div class="form-group">
<label class="col-sm-3 control-label">及格分数:</label>
<div class="col-sm-8">
<input id="passMark" name="passMark" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">题目乱序:</label>
<div class="col-sm-8">
<select id="questionDisorder" name="questionDisorder" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_questionDisorder')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">交卷后:</label>
<div class="col-sm-8">
<select id="finishedPaper" name="finishedPaper" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_finishedPaper')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">考试结束后:</label>
<div class="col-sm-8">
<select id="examEnd" name="examEnd" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_examEnd')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">考试对象:</label>
<div class="col-sm-8">
<select id="examinationUserLimit" name="examinationUserLimit" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_examinationUserLimit')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">考试说明:</label>
<div class="col-sm-8">
<input id="remarks" name="remarks" class="form-control" type="text">
</div>
</div>
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
var prefix = ctx + "exam/examExamination"
$("#form-examExamination-add").validate({
rules:{
xxxx:{
required:true,
},
}
});
function submitHandler() {
if ($.validate.form()) {
debugger
$.operate.save(prefix + "/add", $('#form-examExamination-add').serialize());
}
}
</script>
</body>
</html>