12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglib.jsp"%>
- <html>
- <head>
- <title>培训通知管理</title>
- <meta name="decorator" content="ani"/>
- <!-- SUMMERNOTE -->
- <%@include file="/webpage/include/summernote.jsp" %>
- <script type="text/javascript">
- $(document).ready(function() {
- <c:if test="${eduTrainNotice.oprType !=null && eduTrainNotice.oprType!=''}">
- $(".table.table-bordered").find("input,textarea,select").attr("disabled", "disabled");
- $('#content').summernote({
- height: 300
- });
- $('#content').summernote('disable');
- </c:if>
- //富文本初始化
- $('#content').summernote({
- height: 300,
- lang: 'zh-CN',
- callbacks: {
- onChange: function(contents, $editable) {
- $("input[name='content']").val($('#content').summernote('code'));//取富文本的值
- }
- }
- });
- });
- function save() {
- var isValidate = jp.validateForm('#inputForm');//校验表单
- if(!isValidate){
- return false;
- }else{
- jp.loading();
- jp.post("${ctx}/train/eduTrainNotice/save",$('#inputForm').serialize(),function(data){
- if(data.success){
- jp.getParent().refresh();
- var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
- parent.layer.close(dialogIndex);
- jp.success(data.msg)
- }else{
- jp.error(data.msg);
- }
- })
- }
- }
- </script>
- </head>
- <body class="bg-white">
- <form:form id="inputForm" modelAttribute="eduTrainNotice" class="form-horizontal">
- <form:hidden path="id"/>
- <table class="table table-bordered">
- <tbody>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>通知标题:</label></td>
- <td class="width-35">
- <form:input path="title" htmlEscape="false" maxlength="100" class="form-control required"/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">通知内容:</label></td>
- <td class="width-35">
- <input type="hidden" name="content" value=" ${eduTrainNotice.content}"/>
- <div id="content">
- ${fns:unescapeHtml(eduTrainNotice.content)}
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </form:form>
- </body>
- </html>
|