add.jsp 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <%@ include file="../../common/head.jsp"%>
  10. <link rel="stylesheet" type="text/css" href="../res/js//plugins/webuploader/webuploader.css">
  11. <link rel="stylesheet" type="text/css" href="../res/css/demo/webuploader-demo.css">
  12. <script type="text/javascript" src="../res/js/plugins/webuploader/webuploader.js"></script>
  13. <script type="text/javascript" src="../res/js/plugins/webuploader/uploader.js"></script>
  14. <cs:initFile/>
  15. <script>
  16. function initUe(){
  17. $("#newsContent").val(ue.getContent());
  18. }
  19. </script>
  20. </head>
  21. <body>
  22. <div class="wrapper wrapper-content pull-left">
  23. <cs:form_validate formId="addNewsForm" />
  24. <div class="row">
  25. <div class="col-xs-12 ">
  26. <form class="form-horizontal" onsubmit="initUe()" action="add.cs"
  27. id="addNewsForm" method="POST">
  28. <div class="form-group">
  29. <label class="col-sm-3 control-label">标题:</label>
  30. <div class="col-sm-6">
  31. <input id="newsTitle" name="newsTitle" class="form-control">
  32. </div>
  33. </div>
  34. <%--<div class="form-group">
  35. <label class="col-sm-3 control-label">摘要:</label>
  36. <div class="col-sm-6">
  37. <input id="newsAbstract" name="newsAbstract" class="form-control">
  38. </div>
  39. </div>--%>
  40. <div class="form-group">
  41. <label class="col-sm-3 control-label">排序:</label>
  42. <div class="col-sm-6">
  43. <input id="newsSort" name="newsSort" value="999"
  44. class="form-control">(数字越小越向前排)
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-sm-3 control-label">公告图标:</label>
  49. <div class="col-sm-6">
  50. <cs:file name="newsImage" type="100" num="1"></cs:file>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="col-sm-3 control-label">是否显示:</label>
  55. <div class="col-sm-6">
  56. <select id="newsShow" name="newsShow" class="form-control">
  57. <option value="1">显示</option>
  58. <option value="2">隐藏</option>
  59. </select>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="col-sm-3 control-label">是否公开:</label>
  64. <div class="col-sm-6">
  65. <select id="openFlag" name="openFlag" class="form-control">
  66. <option value="1" selected>公开</option>
  67. <option value="0">内部</option>
  68. </select>
  69. </div>
  70. </div>
  71. <div class="form-group ">
  72. <label class="col-xs-3 control-label">详情:</label> <textarea
  73. style="display:none;" id="newsContent" name="newsContent" ></textarea>
  74. <div class="col-xs-9">
  75. <cs:wordedit name="详情" />
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <div class="col-sm-4 col-sm-offset-3 pull-left">
  80. <button class="btn btn-default btn-dlg-close">取消</button>
  81. <button class="btn btn-primary" type="submit">提交</button>
  82. </div>
  83. </div>
  84. </form>
  85. </div>
  86. </div>
  87. </div>
  88. </body>
  89. </html>