124 lines
5.5 KiB
Plaintext
124 lines
5.5 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
|
||
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security"%>
|
||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||
|
||
<style type="text/css">
|
||
.select2-container .select2-selection--single{
|
||
height:34px;
|
||
line-height: 34px;
|
||
}
|
||
.select2-selection__arrow{
|
||
margin-top:3px;
|
||
}
|
||
/* .modal{
|
||
padding-left: 0px !important;
|
||
}*/
|
||
</style>
|
||
<script type="text/javascript">
|
||
function dosave() {
|
||
// $("#subForm2").bootstrapValidator('validate');//提交验证
|
||
// if ($("#subForm2").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
||
$.post(ext.contextPath + "/exam/examTitleRange/updateExamTitleRange.do", $("#subForm2").serialize(), function(data) {
|
||
if (data == 1){
|
||
$(".modal-backdrop").remove();
|
||
closeModal('subDetailModal');
|
||
$("#table_Detail").bootstrapTable('refresh');
|
||
}else if(data == 0){
|
||
showAlert('d','保存失败');
|
||
}else{
|
||
showAlert('d',data);
|
||
}
|
||
},'json');
|
||
// }
|
||
}
|
||
// //输入框验证
|
||
// $("#subForm2").bootstrapValidator({
|
||
// live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
||
// fields: {
|
||
// project: {
|
||
// validators: {
|
||
// notEmpty: {
|
||
// message: '名称不能为空'
|
||
// }
|
||
// }
|
||
// }
|
||
// }
|
||
// });
|
||
//
|
||
|
||
function doclose() {
|
||
closeModal('subDetailModal');
|
||
}
|
||
$(function () {
|
||
$("#subDetailModal").modal("show");
|
||
|
||
});
|
||
|
||
</script>
|
||
<div class="modal fade" id="subDetailModal" style="width: 800px">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content" >
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
<span aria-hidden="true">×</span></button>
|
||
<h4 class="modal-title">编辑</h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
<!-- 新增界面formid强制为subForm -->
|
||
<form class="form-horizontal" id="subForm2">
|
||
<div id="alertDiv"></div>
|
||
|
||
|
||
<input type="hidden" id="id" name="id" value ="${examTitleRange.id}">
|
||
<!-- <input type="hidden" id="pid" name="pid" value ="${examTitleRange.pid}"> -->
|
||
<input id="subjecttypeids" name="subjecttypeids" type="hidden"" value ="${examTitleRange.subjecttypeids}"/>
|
||
<input id="ranktypeids" name="ranktypeids" type="hidden" value ="${examTitleRange.ranktypeids}"/>
|
||
<input id="questtypeid" name="questtypeid" type="hidden" value ="${examTitleRange.questtypeid}"/>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">问卷类型</label>
|
||
<div class="col-sm-10">
|
||
<input type="text" id="_subjectTypeName" name="_subjectTypeName" class="form-control pull-right" placeholder="问卷类型" value ="${examTitleRange._subjectTypeName}" readonly>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">难度类型</label>
|
||
<div class="col-sm-10">
|
||
<input type="text" id="_rankTypeName" name="_rankTypeName" class="form-control pull-right" placeholder="难度类型" value ="${examTitleRange._rankTypeName}" readonly>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">题型</label>
|
||
<div class="col-sm-4">
|
||
<input type="text" id="_questTypeName" name="_questTypeName" class="form-control pull-right" placeholder="题型" value ="${examTitleRange._questTypeName}" readonly>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">单题分值</label>
|
||
<div class="col-sm-4">
|
||
<input type="text" id="singlyscore" name="singlyscore" class="form-control pull-right" placeholder="单题分值" value ="${examTitleRange.singlyscore}">
|
||
</div>
|
||
<label class="col-sm-2 control-label">抽题数量</label>
|
||
<div class="col-sm-4">
|
||
<c:if test="${num == 0}">
|
||
<input type="text" id="titlenum" name="titlenum" class="form-control pull-right" placeholder="可抽题目数:${num},请删除" value ="${examTitleRange.titlenum}" readonly>
|
||
</c:if>
|
||
<c:if test="${num != 0}">
|
||
<input type="text" id="titlenum" name="titlenum" class="form-control pull-right" placeholder="可抽题目数量:${num}" value ="${examTitleRange.titlenum}">
|
||
</c:if>
|
||
</div>
|
||
</div>
|
||
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" onclick="doclose()">关闭</button>
|
||
<button type="button" class="btn btn-primary" onclick="dosave()" id="btn_save">保存</button>
|
||
</div>
|
||
</div>
|
||
<!-- /.modal-content -->
|
||
</div>
|
||
<!-- /.modal-dialog -->
|
||
</div>
|