69 lines
2.3 KiB
Plaintext
69 lines
2.3 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ 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;
|
|
}
|
|
|
|
</style>
|
|
<script type="text/javascript">
|
|
|
|
function doupdate() {
|
|
// alert("${teacherFile.id}")
|
|
$.post(ext.contextPath + '/teacher/teacherfile/doupdate.do', $("#subForm").serialize(), function(result) {
|
|
if (result == 1) {
|
|
editFun(masterId);
|
|
closeModal('editModel');
|
|
}else if(result == null){
|
|
showAlert('d','保存失败');
|
|
}else{
|
|
showAlert('d',result);
|
|
}
|
|
});
|
|
}
|
|
|
|
$(function() {
|
|
});
|
|
</script>
|
|
|
|
<div class="modal fade" id="editModel">
|
|
<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">
|
|
<form class="form-horizontal " id="subForm">
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|
<div id="alertDiv"></div>
|
|
<div class="form-group">
|
|
<input type="hidden" class="form-control" id="id" name ="id" value="${teacherFile.id}">
|
|
<label class="col-sm-2 control-label">名称</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="filename" name ="filename" placeholder="名称" value="${teacherFile.filename }">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">备注</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control " id="memo" name="memo" rows="2">${teacherFile.memo}</textarea>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a onclick="doupdate()" class="btn btn-default" data-toggle="tooltip" title="保存">保存</a>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|