portal html css js resource

articalIssue.html 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1.  <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title>发布文章-科袖网</title>
  8. <link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
  9. <link href="css/bootstrap.min.css" rel="stylesheet">
  10. <link type="text/css" href="css/webuploader/webuploader.css" rel="stylesheet">
  11. <link type="text/css" rel="stylesheet" href="css/datetimepicker.css">
  12. <link type="text/css" href="css/common.css" rel="stylesheet">
  13. <link type="text/css" href="css/genindex.css" rel="stylesheet">
  14. <script type="text/javascript" src="js/jquery-1.11.1.js"></script>
  15. </head>
  16. <body>
  17. <header id="header">
  18. <script src="js/header.js"></script>
  19. </header>
  20. <!--定时发布弹框-->
  21. <div class="blackcover2">
  22. <div class="setTimeBlock modelContain">
  23. <span class="mb_tit">提示</span>
  24. <a class="mb_close"></a>
  25. <div class="mb_msg">
  26. <p style="margin: 10px;">请设置文章发布的时间:</p>
  27. <div class="formTime">
  28. <!--<div class="form-group">
  29. <div class='input-group date' id='datetimepicker6'>
  30. <input type='text' class="form-control" />
  31. <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
  32. </div>
  33. </div>-->
  34. <div class="form-group">
  35. <input size="16" type="text" value="" readonly class="form-control form_datetime">
  36. </div>
  37. </div>
  38. </div>
  39. <div class="mb_btnbox">
  40. <input class="mb_btn mb_btnOk" type="button" value="确定">
  41. <input class="mb_btn mb_btnNo" type="button" value="取消">
  42. </div>
  43. </div>
  44. </div>
  45. <input type="hidden" id="hidearticleId" value="" />
  46. <div id="container">
  47. <div class="containerCon">
  48. <div class="contentCon clearfix conBlock">
  49. <div class="leftconBox floatL">
  50. <ul class="artAbout">
  51. <li>
  52. <div class="uploadFile">
  53. <div class="uploadblock" id="uploader" data-id>
  54. <span class="" id="filePicker">上传图片</span>
  55. <!--未上传图片时-->
  56. <div class="upFront">
  57. <p>文章封面大图<em class="requiredcon">*</em></p>
  58. <p>JPG/PNG格式,2M以内。</p>
  59. <span class="upbtn">上传图片</span>
  60. </div>
  61. <!--已上传图片时-->
  62. <span class="upbtn upBackbtn">更换图片</span>
  63. </div>
  64. </div>
  65. <span class="frmconmsg imgtis" style="margin-left:0"></span>
  66. </li>
  67. <li>
  68. <div class="aboutTit" id="aboutTit">标题<em class="requiredcon">*</em><span class="frmconmsg"></span></div>
  69. <input type="text" class="frmtype frmcontype" value="" placeholder="请输入标题" id="newstitle"/>
  70. </li>
  71. <li class="form-item">
  72. <div class="aboutTit">关键词<span class="frmconmsg" id="keyPrompt"></span></div>
  73. <div style="position: relative;">
  74. <input type="text" class="frmtype frmcontype" value="" placeholder="请输入关键词" id="KeyWord"/>
  75. <!--输入框中键入内容时按钮显示,添加内容出现在结果标签中时按钮隐藏-->
  76. <button class="frmcontype frmadd displayNone" id="addkeyWord">添加</button>
  77. </div>
  78. <div class="form-drop keydrop displayNone">
  79. <ul id="keydropList">
  80. </ul>
  81. </div>
  82. <div class="form-result keyResult">
  83. <ul class="clearfix" id="keyWordlist">
  84. </ul>
  85. </div>
  86. </li>
  87. <li>
  88. <div class="aboutTit">文章内容<span class="frmconmsg"></span></div>
  89. <!--这块还是使用编辑框插件-->
  90. <div class="editBlock">
  91. <script id="editor" name="content" type="text/plain" style="height:500px;"></script>
  92. <!--<textarea class="frmtype frmcontype" style="border:none;height:318px;" name="" placeholder="请输入文章内容"></textarea>-->
  93. </div>
  94. </li>
  95. </ul>
  96. </div>
  97. <div class="rightconBox floatR">
  98. <div class="conItem">
  99. <ul class="operateBlock">
  100. <li class="goFabu" id="release">
  101. <em class="operateicon icon-issue"></em>
  102. <p>发布</p>
  103. </li>
  104. <li id="setTimeIssue">
  105. <em class="operateicon icon-timeissue"></em>
  106. <p>定时发布</p>
  107. </li>
  108. <li class="articalPreview" id="preview">
  109. <em class="operateicon icon-preview"></em>
  110. <p>预览</p>
  111. </li>
  112. <li id="draft">
  113. <em class="operateicon icon-draft"></em>
  114. <p>存草稿</p>
  115. </li>
  116. <li class="disableLi">
  117. <em class="operateicon icon-delete"></em>
  118. <p>删除</p>
  119. </li>
  120. </ul>
  121. </div>
  122. <div class="conItem">
  123. <div class="form-item otherBlock">
  124. <div class="aboutTit">相关专家<span class="frmconmsg"></span></div>
  125. <input type="text" class="frmtype frmcontype" placeholder="请输入专家姓名" id="checkZj" value="" />
  126. <div class="form-drop displayNone">
  127. <ul class="expertlist" id="expertlist">
  128. </ul>
  129. </div>
  130. <div class="form-result">
  131. <ul class="addexpert" id="expertli">
  132. </ul>
  133. </div>
  134. </div>
  135. <div class="form-item otherBlock">
  136. <div class="aboutTit">相关资源<span class="frmconmsg"></span></div>
  137. <input type="text" class="frmtype frmcontype" placeholder="请输入资源名称" id="checkZy" value="" />
  138. <div class="form-drop displayNone">
  139. <ul class="expertlist" id="resouselist">
  140. </ul>
  141. </div>
  142. <div class="form-result">
  143. <ul class="addexpert" id="resources">
  144. </ul>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <footer>
  153. <script type="text/javascript" src="js/footer.js"></script>
  154. </footer>
  155. <script type="text/javascript" src="js/public/bootstrap.min.js"></script>
  156. <script type="text/javascript" src="js/public/prettify.js"></script>
  157. <script type="text/javascript" src="js/public/bootstrap-datetimepicker.min.js"></script>
  158. <script type="text/javascript" src="js/ueditor/ueditor.config.js"></script>
  159. <script type="text/javascript" src="js/ueditor/ueditor.all.js"> </script>
  160. <script type="text/javascript" src="js/webuploader/webuploader.js"></script>
  161. <script type="text/javascript"src="js/jquery.cookie.js"></script>
  162. <script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
  163. <script type="text/javascript" src="js/common.js"></script>
  164. <script type="text/javascript" src="js/articalIssue.js"></script>
  165. <script type="text/javascript">
  166. $(function () {
  167. var currentdate;
  168. $(".form_datetime").datetimepicker({
  169. format: 'yyyy-mm-dd hh:ii',
  170. forceParse: true,
  171. autoclose: true,
  172. todayBtn: true
  173. });
  174. function getNowFormatDate() {
  175. var date = new Date();
  176. var seperator1 = "-";
  177. var seperator2 = ":";
  178. var month = date.getMonth() + 1;
  179. var strDate = date.getDate();
  180. var getHours = date.getHours();
  181. var getMinutes = date.getMinutes();
  182. if (month >= 1 && month <= 9) {
  183. month = "0" + month;
  184. }
  185. if (strDate >= 0 && strDate <= 9) {
  186. strDate = "0" + strDate;
  187. }
  188. if (getMinutes >= 0 && getMinutes <= 9) {
  189. getMinutes = "0" + getMinutes;
  190. }
  191. if (getHours >= 0 && getHours <= 9) {
  192. getHours = "0" + getHours;
  193. }
  194. var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
  195. + " " + getHours + seperator2 + getMinutes
  196. return currentdate;
  197. }
  198. $(".form_datetime").val(getNowFormatDate(currentdate));
  199. });
  200. //Model模态框打开关闭
  201. $(".mb_close,.mb_btnNo").click(function() {
  202. $(".modelContain").hide();
  203. $(".blackcover2").fadeOut();
  204. $("body").removeClass("modelOpen");
  205. })
  206. //初始引用编辑器
  207. ue = UE.getEditor('editor', {});
  208. // 初始化Web Uploader
  209. var uploader = WebUploader.create({
  210. auto: true,
  211. swf: '../js/webuploader/Uploader.swf',
  212. server: '../ajax/cachedFileUpload',
  213. fileSingleSizeLimit: 2 * 1024 * 1024,
  214. pick : {
  215. id : "#filePicker",
  216. multiple: false
  217. },
  218. accept: {// 只允许选择图片文件。
  219. title: 'Images',
  220. extensions: 'gif,jpg,jpeg,bmp,png',
  221. mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
  222. }
  223. });
  224. uploader.onError = function(code) {
  225. $.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
  226. };
  227. // 当有文件添加进来的时候
  228. uploader.on( 'fileQueued', function( file ) {
  229. uploader.makeThumb( file, function( error, src ) {
  230. $("#uploader").css("background-image","url("+src+")");
  231. $(".imgtis").text("");
  232. $(".upFront").hide();
  233. $(".upBackbtn").show();
  234. }, 1, 1 );
  235. });
  236. // 文件上传成功,给item添加成功class, 用样式标记上传成功。
  237. cacheImageKey="";
  238. uploader.on( 'uploadSuccess', function(file,data) {
  239. cacheImageKey =data.data[0].cacheKey;
  240. $("#uploader").attr("data-id",cacheImageKey);
  241. });
  242. </script>
  243. </body>
  244. </html>