12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <%@ 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() {
- //富文本初始化
- $('#contents').summernote({
- height: 300,
- lang: 'zh-CN',
- callbacks: {
- onChange: function(contents, $editable) {
- $("input[name='contents']").val($('#contents').summernote('code'));//取富文本的值
- }
- }
- });
- });
- function save() {
- var isValidate = jp.validateForm('#inputForm');//校验表单
- if(!isValidate){
- return false;
- }else{
- jp.loading();
- jp.post("${ctx}/base/eduColumnNews/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="eduColumnNews" class="form-horizontal">
- <form:hidden path="id"/>
- <table class="table table-bordered">
- <tbody>
- <tr>
- <td >
- <video width="100%" controls="controls">
- <source src="${eduColumnNews.url1}" />
- </video>
- </td>
- </tr>
- </tbody>
- </table>
- </form:form>
- </body>
- </html>
|