portal html css js resource

articalModify.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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" href="images/favicon.ico "/>
  9. <link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
  10. <link type="text/css" rel="stylesheet" href="css/bootstrap-datetimepicker.min.css">
  11. <link type="text/css" rel="stylesheet" href="css/glyIcon.css">
  12. <link type="text/css" href="../css/webuploader/webuploader.css" rel="stylesheet">
  13. <link type="text/css" href="../css/webuploader/webuploader.css" rel="stylesheet">
  14. <link type="text/css" href="css/common.css" rel="stylesheet">
  15. <link type="text/css" href="css/cmpindex.css" rel="stylesheet">
  16. <script type="text/javascript" src="js/public/jquery-1.11.1.js"></script>
  17. <style type="text/css">
  18. .rightconBox .conItem{display: none;}
  19. .rightconBox .conItem:first-child{display: block;}
  20. </style>
  21. </head>
  22. <body>
  23. <header id="header">
  24. <script src="js/public/cmpHeader.js"></script>
  25. </header>
  26. <!--定时发布弹框-->
  27. <div class="blackcover2"></div>
  28. <div class="setTimeBlock modelContain">
  29. <span class="mb_tit">提示</span>
  30. <a class="mb_close"></a>
  31. <div class="mb_msg" id="promotTh">
  32. </div>
  33. <div class="mb_btnbox" id="promotGt">
  34. <input class="mb_btn mb_btnNo" type="button" value="取消">
  35. </div>
  36. </div>
  37. <div id="container">
  38. <div class="containerCon">
  39. <div class="contentCon clearfix conBlock" style="padding-top:20px">
  40. <div class="leftconBox floatL">
  41. <ul class="artAbout">
  42. <li>
  43. <div class="uploadFile">
  44. <div class="uploadblock" id="uploader" data-id>
  45. <span class="" id="filePicker">上传图片</span>
  46. <!--未上传图片时-->
  47. <div class="upFront">
  48. <p>文章封面图片<em class="requiredcon">*</em></p>
  49. <p class="uploadtip">JPG/JPEG/PNG格式,2M以内</p>
  50. <span class="upbtn">上传图片</span>
  51. </div>
  52. <!--已上传图片时-->
  53. <span class="upbtn upBackbtn">更换图片</span>
  54. </div>
  55. </div>
  56. <span class="frmconmsg imgtis" style="margin-left:0"></span>
  57. </li>
  58. <li>
  59. <div class="aboutTit" id="aboutTit">标题<em class="requiredcon">*</em><span class="frmconmsg"></span></div>
  60. <input type="text" class="frmtype frmcontype" value="" placeholder="请输入标题" id="newstitle"/>
  61. </li>
  62. <li class="form-item">
  63. <div class="aboutTit">关键词<span class="frmconmsg" id="keyPrompt"></span></div>
  64. <div class="col-w-12" style="position: relative;">
  65. <input type="text" class="frmcontype oinput" placeholder="请填写相关的关键词,如:腐蚀防护、石墨烯、纳米材料" data-pro="关键词不得超过15个字" data-num="5" data-fontSizeN="15" id="KeyWord" />
  66. <button type="button" class="frmcontype btnModel frmadd addButton">添加</button>
  67. <div class="form-drop keydrop">
  68. <ul>
  69. </ul>
  70. </div>
  71. </div>
  72. <div class="form-result keyResult" style="margin-top: -10px;">
  73. <ul class="ulspace editUlist clearfix" id="keyWordlist">
  74. <!--<li>dd<div class="closeThis"></div></li>-->
  75. </ul>
  76. </div>
  77. </li>
  78. <li>
  79. <div class="aboutTit">文章内容<span class="frmconmsg"></span></div>
  80. <!--这块还是使用编辑框插件-->
  81. <div class="editBlock">
  82. <script id="editor" name="content" type="text/plain" style="height:500px;"></script>
  83. </div>
  84. </li>
  85. </ul>
  86. </div>
  87. <div class="rightconBox floatR">
  88. <div class="conItem">
  89. <ul class="operateBlock">
  90. <li class="goFabu" id="release">
  91. <em class="operateicon icon-issue"></em>
  92. <p>发布</p>
  93. </li>
  94. <li id="setTimeIssue">
  95. <em class="operateicon icon-timeissue"></em>
  96. <p>定时发布</p>
  97. </li>
  98. <li class="articalPreview" id="preview">
  99. <em class="operateicon icon-preview"></em>
  100. <p>预览</p>
  101. </li>
  102. <li id="draft">
  103. <em class="operateicon icon-draft"></em>
  104. <p>存草稿</p>
  105. </li>
  106. <li id="delete">
  107. <em class="operateicon icon-delete"></em>
  108. <p>删除</p>
  109. </li>
  110. </ul>
  111. </div>
  112. <div class="conItem">
  113. <div class="form-item otherBlock">
  114. <div class="aboutTit">相关专家<span class="frmconmsg"></span></div>
  115. <input type="text" class="frmtype frmcontype" placeholder="请输入专家姓名" id="checkZj" value="" />
  116. <div class="form-drop displayNone">
  117. <ul class="expertlist" id="expertlist">
  118. </ul>
  119. </div>
  120. <div class="form-result">
  121. <ul class="addexpert" id="expertli">
  122. </ul>
  123. </div>
  124. </div>
  125. <!--<div class="form-item otherBlock">
  126. <div class="aboutTit">相关资源<span class="frmconmsg"></span></div>
  127. <input type="text" class="frmtype frmcontype" placeholder="请输入资源名称" id="checkZy" value="" />
  128. <div class="form-drop displayNone">
  129. <ul class="expertlist" id="resouselist">
  130. </ul>
  131. </div>
  132. <div class="form-result">
  133. <ul class="addexpert" id="resources">
  134. </ul>
  135. </div>
  136. </div>-->
  137. </div>
  138. <div class="conItem">
  139. <div class="form-item otherBlock">
  140. <div class="aboutTit">本文相关服务<span class="frmconmsg"></span></div>
  141. <input type="text" class="frmtype frmcontype" placeholder="请输入服务名称" id="sevrice" value="">
  142. <div class="form-drop">
  143. <ul class="expertlist" id="sevricelist">
  144. </ul>
  145. </div>
  146. <div class="form-result">
  147. <ul class="addexpert" id="sevriceli">
  148. </ul>
  149. </div>
  150. </div>
  151. </div>
  152. <div class="conItem">
  153. <div class="form-item otherBlock">
  154. <div class="aboutTit">本文相关资源<span class="frmconmsg"></span></div>
  155. <input type="text" class="frmtype frmcontype" placeholder="请输入资源名称" id="checkZy" value="">
  156. <div class="form-drop">
  157. <ul class="expertlist" id="resouselist">
  158. <!--<li id="usid" class="flexCenter" data-id="4558F24B922E4FF9A5062AA9869808F8"><p class="h1Font ellipsisSty-2 childElement" style="width:95%;"id="resourceName">但渐渐地就的解决的记得记得就到家但渐渐地就但渐渐地就的解决的记得记得就到家但渐渐地就</p><div class="deleteThis"></div></li>-->
  159. </ul>
  160. </div>
  161. <div class="form-result">
  162. <ul class="addexpert" id="resources">
  163. <!--<li id="usid" class="flexCenter" data-id="4558F24B922E4FF9A5062AA9869808F8"><p class="h1Font ellipsisSty-2 childElement" style="width:78%;"id="resourceName">但渐渐地就的解决的记得记得就到家但渐渐地就但渐渐地就的解决的记得记得就到家但渐渐地就</p><div class="deleteThis"></div></li>-->
  164. </ul>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="conItem">
  169. <div class="form-item otherBlock">
  170. <div class="aboutTit">本文相关企业<span class="frmconmsg"></span></div>
  171. <input type="text" class="frmtype frmcontype" placeholder="请输入企业名称" id="company" value="" />
  172. <div class="form-drop displayNone">
  173. <ul class="expertlist" id="companylist">
  174. </ul>
  175. </div>
  176. <div class="form-result">
  177. <ul class="addexpert" id="companys">
  178. </ul>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="conItem">
  183. <div class="form-item otherBlock">
  184. <div class="aboutTit">本文相关产品<span class="frmconmsg"></span></div>
  185. <input type="text" class="frmtype frmcontype" placeholder="请输入产品名称" id="product" value="">
  186. <div class="form-drop">
  187. <ul class="expertlist" id="productlist">
  188. </ul>
  189. </div>
  190. <div class="form-result">
  191. <ul class="addexpert" id="productli">
  192. </ul>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="conItem">
  197. <div class="form-item otherBlock">
  198. <div class="aboutTit">上传附件<span class="frmconmsg"></span></div>
  199. <div id="upAttachPicker" class="upAttech">点击这里上传附件</div>
  200. <div class="form-result" style="margin-top:0">
  201. <ul class="addexpert" id="fileAttachList">
  202. </ul>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <div class="footer_tools">
  211. <a id="scrollUp" href="javascript:;" title="返回顶部"></a>
  212. </div>
  213. <footer>
  214. <script type="text/javascript" src="js/public/cmpFooter.js"></script>
  215. </footer>
  216. <script type="text/javascript" src="js/public/bootstrap.min.js"></script>
  217. <script type="text/javascript" src="js/public/bootstrap-datetimepicker.js"></script>
  218. <script type="text/javascript" src="../js/ueditor/ueditor.config.js"></script>
  219. <script type="text/javascript" src="../js/ueditor/ueditor.all.js"> </script>
  220. <script type="text/javascript" src="../js/webuploader/webuploader.js"></script>
  221. <script type="text/javascript"src="js/public/jquery.cookie.js"></script>
  222. <script type="text/javascript"src="js/public/jquery.similar.msgbox.js"></script>
  223. <script type="text/javascript" src="../js/public/baseUtil.js"></script>
  224. <script type="text/javascript" src="js/public/cmpCom.js"></script>
  225. <script type="text/javascript" src="js/articalModify.js"></script>
  226. <script type="text/javascript">
  227. $(function () {
  228. //回到顶部
  229. var $body = $(document.body);;
  230. var $bottomTools = $('.footer_tools');
  231. $(window).scroll(function () {
  232. var scrollHeight = $(document).height();
  233. var scrollTop = $(window).scrollTop();
  234. var $footerHeight = $('footer').outerHeight(true);
  235. var $windowHeight = $(window).innerHeight();
  236. scrollTop > 50 ? $("#scrollUp").fadeIn(200).css("display","block") : $("#scrollUp").fadeOut(200);
  237. $bottomTools.css("bottom", scrollHeight - scrollTop - $footerHeight > $windowHeight ? 20 : $windowHeight + scrollTop + $footerHeight + 20 - scrollHeight);
  238. });
  239. $('#scrollUp').click(function (e) {
  240. e.preventDefault();
  241. $('html,body').animate({ scrollTop:0});
  242. });
  243. });
  244. //Model模态框打开关闭
  245. $(".mb_close,.mb_btnNo").click(function() {
  246. $(".modelContain").hide();
  247. $(".blackcover2").fadeOut();
  248. $("body").removeClass("modelOpen");
  249. })
  250. //初始引用编辑器
  251. ue = UE.getEditor('editor', {});
  252. // 初始化Web Uploader
  253. var uploader = WebUploader.create({
  254. // 选完文件后,是否自动上传。
  255. auto: true,
  256. // 添加的文件数量
  257. //fileNumLimit: 1,
  258. // swf文件路径
  259. swf: '../js/webuploader/Uploader.swf',
  260. // 文件接收服务端。
  261. server: '../ajax/cachedFileUpload',
  262. // 选择文件的按钮。可选。
  263. // 内部根据当前运行是创建,可能是input元素,也可能是flash.
  264. fileSingleSizeLimit: 2 * 1024 * 1024,
  265. duplicate:true,
  266. pick : {
  267. id : "#filePicker",
  268. multiple: false
  269. },
  270. // 只允许选择图片文件。
  271. accept: {
  272. title: 'Images',
  273. extensions: 'jpg,jpeg,png',
  274. mimeTypes: 'image/jpg,image/jpeg,image/png'
  275. }
  276. });
  277. uploader.onError = function(code) {
  278. if(code=="F_EXCEED_SIZE"){
  279. $.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M');
  280. }
  281. };
  282. // 当有文件添加进来的时候
  283. uploader.on( 'fileQueued', function( file ) {
  284. uploader.makeThumb( file, function( error, src ) {
  285. $("#uploader").css("background-image","url("+src+")");
  286. $(".imgtis").text("");
  287. $(".upFront").hide();
  288. $(".upBackbtn").show();
  289. }, 1, 1 );
  290. });
  291. // 文件上传成功,给item添加成功class, 用样式标记上传成功。
  292. cacheImageKey="";
  293. uploader.on( 'uploadSuccess', function(file,data) {
  294. if(data.success) {
  295. cacheImageKey =data.data[0].cacheKey;
  296. $("#uploader").attr("data-id",cacheImageKey);
  297. }else{
  298. $.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
  299. $("#uploader").css("background-image","url('')");
  300. }
  301. });
  302. </script>
  303. </body>
  304. </html>