1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <%@ 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/eduVideoNews/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="eduVideoNews" class="form-horizontal">
- <form:hidden path="id"/>
- <form:hidden path="typeId"/>
- <table class="table table-bordered">
- <tbody>
- <tr>
- <td >
- <video width="100%" controls="controls">
- <source src="${eduVideoNews.url1}" />
- </video>
- </td>
- </tr>
- </tbody>
- </table>
- </form:form>
- </body>
- </html>
|