eduVideoNewsFormPreview.jsp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>视频管理</title>
  6. <meta name="decorator" content="ani"/>
  7. <!-- SUMMERNOTE -->
  8. <%@include file="/webpage/include/summernote.jsp" %>
  9. <script type="text/javascript">
  10. $(document).ready(function() {
  11. //富文本初始化
  12. $('#contents').summernote({
  13. height: 300,
  14. lang: 'zh-CN',
  15. callbacks: {
  16. onChange: function(contents, $editable) {
  17. $("input[name='contents']").val($('#contents').summernote('code'));//取富文本的值
  18. }
  19. }
  20. });
  21. });
  22. function save() {
  23. var isValidate = jp.validateForm('#inputForm');//校验表单
  24. if(!isValidate){
  25. return false;
  26. }else{
  27. jp.loading();
  28. jp.post("${ctx}/base/eduVideoNews/save",$('#inputForm').serialize(),function(data){
  29. if(data.success){
  30. jp.getParent().refresh();
  31. var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
  32. parent.layer.close(dialogIndex);
  33. jp.success(data.msg)
  34. }else{
  35. jp.error(data.msg);
  36. }
  37. })
  38. }
  39. }
  40. </script>
  41. </head>
  42. <body class="bg-white">
  43. <form:form id="inputForm" modelAttribute="eduVideoNews" class="form-horizontal">
  44. <form:hidden path="id"/>
  45. <form:hidden path="typeId"/>
  46. <table class="table table-bordered">
  47. <tbody>
  48. <tr>
  49. <td >
  50. <video width="100%" controls="controls">
  51. <source src="${eduVideoNews.url1}" />
  52. </video>
  53. </td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </form:form>
  58. </body>
  59. </html>