eduColumnNewsFormPreview.jsp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/eduColumnNews/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="eduColumnNews" class="form-horizontal">
  44. <form:hidden path="id"/>
  45. <table class="table table-bordered">
  46. <tbody>
  47. <tr>
  48. <td >
  49. <video width="100%" controls="controls">
  50. <source src="${eduColumnNews.url1}" />
  51. </video>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </form:form>
  57. </body>
  58. </html>