国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

382 lines
18KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>发布专题</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut; ?>';</script>
  11. <script src="../static/web/js/jquery.min.js"></script>
  12. <script src="../static/web/js/webajax.js"></script>
  13. <link rel="stylesheet" href="../static/web/css/jquery.fileupload.css">
  14. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  15. <script src="../static/web/js/moment.min.js"></script>
  16. <script src="../static/web/js/daterangepicker.js"></script>
  17. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  18. <script src='js/main.js'></script>
  19. <link rel="stylesheet" href="../static/web/css/cropper.min.css">
  20. <script src="../static/web/js/cropper.min.js"></script>
  21. <script>
  22. function checkSubmit() {
  23. if (document.form1.title.value == "") {
  24. ShowMsg("专题名称不能为空");
  25. return false;
  26. }
  27. for (i = 1; i <= 6; i++) {
  28. $val = CheckVal(i);
  29. if ($val == false) {
  30. return false;
  31. }
  32. }
  33. }
  34. function SelectArcList(fname) {
  35. var pos = GetWinPos(800,600);
  36. window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  37. }
  38. function SelectImage(fname, vlist) {
  39. var pos = GetWinPos(800,600);
  40. window.open("./dialog/select_images.php?f=" + fname + "&imgstick=" + vlist, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  41. }
  42. function SelectTemplets(fname) {
  43. var pos = GetWinPos(800,600);
  44. window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  45. }
  46. function CheckVal(id) {
  47. var notename = $DE('notename' + id);
  48. var arcid = $DE('arcid' + id);
  49. if (arcid.value != "") {
  50. if (notename.value == "") {
  51. $DE('notename' + id).focus();
  52. ShowMsg('您的节点' + id + '名称不能为空');
  53. return false;
  54. }
  55. }
  56. }
  57. </script>
  58. <style>
  59. body{background:#fff}
  60. img{vertical-align:baseline}
  61. table{border-collapse:separate}
  62. </style>
  63. </head>
  64. <body>
  65. <form name="form1" action="spec_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  66. <input type="hidden" name="dopost" value="save">
  67. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  68. <input type="hidden" name="arcrank" value="0">
  69. <input type="hidden" name="source" value="本站">
  70. <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  71. <tr>
  72. <td width="85%" height="26"><i class="fa fa-book"></i> <a href="content_s_list.php">专题列表</a><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> &gt; 发布专题</td>
  73. <td width="10%" align="right"> <a href="makehtml_spec.php" class="btn btn-success btn-sm">更新HTML</a></td>
  74. </tr>
  75. </table>
  76. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1">
  77. <tr>
  78. <td colspan="2">
  79. <table width="168" cellpadding="0" cellspacing="0">
  80. <tr>
  81. <td width="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规参数</td>
  82. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">专题文档</a></td>
  83. </tr>
  84. </table>
  85. </td>
  86. </tr>
  87. </table>
  88. <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  89. <tr>
  90. <td colspan="2">
  91. <table width="168" height="26" cellpadding="0" cellspacing="0">
  92. <tr>
  93. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td>
  94. <td width="86" align="center" background="../static/web/img/itemnote1.gif">专题文档</td>
  95. </tr>
  96. </table>
  97. </td>
  98. </tr>
  99. </table>
  100. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6">
  101. <tr>
  102. <td height="26" colspan="4" class="bline">
  103. <table width="900" cellspacing="0" cellpadding="0">
  104. <tr>
  105. <td width="90">&nbsp;专题名称:</td>
  106. <td width='400'><input name="title" type="text" id="title" value="" style="width:380px"></td>
  107. <td width="90">&nbsp;简略标题:</td>
  108. <td><input name="shorttitle" type="text" id="shorttitle" style="width:160px"></td>
  109. </tr>
  110. </table>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td height="26" colspan="4" class="bline">
  115. <table width="900" cellspacing="0" cellpadding="0">
  116. <tr>
  117. <td width="90">&nbsp;自定义属性:</td>
  118. <td><?php
  119. $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
  120. $dsql->Execute();
  121. while($trow = $dsql->GetObject())
  122. {
  123. if($trow->att!='j')
  124. {
  125. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}] </label> ";
  126. }
  127. }
  128. ?></td>
  129. </tr>
  130. </table>
  131. </td>
  132. </tr>
  133. <tr id="pictable">
  134. <td height="26" colspan="4" class="bline">
  135. <table width="900" cellspacing="0" cellpadding="0">
  136. <tr>
  137. <td width="90">&nbsp;缩略图:</td>
  138. <td>
  139. <input name="picname" type="text" id="picname" style="width:300px">
  140. <label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote'>&nbsp;远程</label>
  141. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  142. <button type="button" name="Submit2" onClick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button>
  143. <button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button>
  144. </td>
  145. <td width="260" align="center"><img id="litPic" src="../static/web/img/defaultpic.jpg" style="height:80px"></td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td height="26" colspan="4" class="bline">
  152. <table width="900" cellspacing="0" cellpadding="0">
  153. <tr>
  154. <td width="90">&nbsp;责任编辑:</td>
  155. <td><input name="writer" type="text" id="writer" style="width:160px"></td>
  156. </tr>
  157. </table>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td height="26" colspan="4" class="bline">
  162. <table width="900" cellspacing="0" cellpadding="0">
  163. <tr>
  164. <td width="90" height="26">&nbsp;内容排序:</td>
  165. <td width="260">
  166. <select name="sortup" id="sortup" style="width:160px">
  167. <option value="0" selected>默认排序</option>
  168. <option value="7">置顶一周</option>
  169. <option value="30">置顶一个月</option>
  170. <option value="90">置顶三个月</option>
  171. <option value="180">置顶半年</option>
  172. <option value="360">置顶一年</option>
  173. </select>
  174. </td>
  175. <td width="90">标题颜色:</td>
  176. <td width="130"><input name="color" type="text" id="color" style="width:160px"></td>
  177. <td><button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button></td>
  178. </tr>
  179. </table>
  180. </td>
  181. </tr>
  182. <tr>
  183. <td height="26" colspan="4" class="bline">
  184. <table width="900" cellspacing="0" cellpadding="0">
  185. <tr>
  186. <td width="90">&nbsp;主分类:</td>
  187. <td>
  188. <?php
  189. $typeOptions = GetOptionList($cid, $cuserLogin->getUserChannel(), 0);
  190. echo "<select name='typeid' id='typeid' style='width:160px'>";
  191. echo "<option value='0'>请选择主分类</option>";
  192. echo $typeOptions;
  193. echo "</select>";
  194. ?>
  195. <i class='btn btn-sm fa fa-search' onClick="ShowCatMap(event,this,0,'typeid')" title='快捷选择' style='cursor:pointer'></i>
  196. </td>
  197. </tr>
  198. </table>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td height="26" colspan="4" class="bline">
  203. <table width="900" cellspacing="0" cellpadding="0">
  204. <tr>
  205. <td width="90">&nbsp;关键词:</td>
  206. <td>
  207. <input type='text' name="keywords" id="keywords" value="" style="width:360px">
  208. <button type="button" name="Submit" class="btn btn-success btn-sm" onClick="SelectKeywords('form1.keywords');">浏览</button>
  209. </td>
  210. <td><label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?> />自动获取,手动填写用","分开</label></td>
  211. </tr>
  212. </table>
  213. </td>
  214. </tr>
  215. <tr>
  216. <td height="26" colspan="4" class="bline">
  217. <table width="900" cellspacing="0" cellpadding="0">
  218. <tr>
  219. <td width="90">&nbsp;专题简介:</td>
  220. <td><textarea name="description" id="description" style="width:360px;height:50px"></textarea></td>
  221. </tr>
  222. </table>
  223. </td>
  224. </tr>
  225. <tr>
  226. <td height="26" colspan="4" class="bline">
  227. <table width="900" cellspacing="0" cellpadding="0">
  228. <tr>
  229. <td width="90" height="26" width="260">&nbsp;评论选项:</td>
  230. <td width="260">
  231. <label><input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />
  232. 允许评论 </label>
  233. &nbsp;
  234. <label><input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />
  235. 禁止评论 </label>
  236. </td>
  237. <td width="90">发布选项:</td>
  238. <td>
  239. <label><input name="ishtml" type="radio" class="np" value="1" checked='1'>
  240. 生成HTML </label>
  241. <label><input type="radio" name="ishtml" class="np" value="0">
  242. 仅动态浏览 </label>
  243. </td>
  244. </tr>
  245. </table>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td height="26" colspan="4" class="bline">
  250. <table width="900" cellspacing="0" cellpadding="0">
  251. <tr>
  252. <td width="90">&nbsp;专题模板:</td>
  253. <td width="260">
  254. <input name="templet" type="text" id="templet" value="<?php echo $cfg_df_style?>/article_spec.htm" style="width:160px">
  255. <button type="button" name="set3" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.templet');">浏览</button>
  256. </td>
  257. <td width="90">文件名称:</td>
  258. <td><input type="text" name="filename" id="filename" style="width:160px">(不包括后缀名如.html等)</td>
  259. </tr>
  260. </table>
  261. </td>
  262. </tr>
  263. <tr>
  264. <td height="26" colspan="4" class="bline">
  265. <table width="900" cellspacing="0" cellpadding="0">
  266. <tr>
  267. <td width="90">&nbsp;发布时间:</td>
  268. <td width="260"><?php
  269. $nowtime = GetDateTimeMk(time());
  270. echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker' style='width:160px'>";
  271. ?>
  272. </td>
  273. <td width="90">浏览次数:</td>
  274. <td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(50,200):$cfg_arc_click); ?>" style="width:160px"></td>
  275. </tr>
  276. </table>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td><?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); ?></td>
  281. </tr>
  282. </table>
  283. <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="display:none;border:1px solid #dee2e6">
  284. <tr>
  285. <td height="26" class="bline2">专题节点列表: <br>
  286. 1、文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章;<br>
  287. 2、关于单条记录模板里的[field:fieldname /]标记的使用,请参考关于系统帮助关于 arclist 标记的说明;<br>
  288. 3、节点ID是节点的唯一标识,专题模板中用{dede:field.note noteid='标识'/}这样来表示单个节点,不指定noteid时为所有节点列表<br>
  289. 4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键词和栏目ID </td>
  290. </tr>
  291. <tr>
  292. <td height="26">
  293. <table width="98%" cellspacing="2" cellpadding="2">
  294. <?php
  295. $speclisttmp = GetSysTemplets("spec_arclist.htm");
  296. $nodename = $nodeid = '';
  297. for($i=1;$i<=$cfg_specnote;$i++)
  298. {
  299. if($i==1)
  300. {
  301. $nodename = '默认节点';
  302. $nodeid = 'default';
  303. } else {
  304. $nodename = $nodeid = '';
  305. }
  306. ?>
  307. <tr bgcolor="#F8FCF1">
  308. <td width="260">节点<?php echo $i?>名称:</td>
  309. <td colspan="2">
  310. <table width="900" cellspacing="0" cellpadding="0">
  311. <tr>
  312. <td width="310"><input name="notename<?php echo $i?>" type="text" value="<?php echo $nodename; ?>" id="notename<?php echo $i?>" style="width:300px"></td>
  313. <td width="90">节点标识:</td>
  314. <td><input name="noteid<?php echo $i?>" type="text" value="<?php echo $nodeid; ?>" id="noteid<?php echo $i?>" style="width:160px"></td>
  315. </tr>
  316. </table>
  317. </td>
  318. </tr>
  319. <tr>
  320. <td>节点文章列表:</td>
  321. <td><textarea name="arcid<?php echo $i?>" onblur='CheckVal(<?php echo $i ?>)' rows="3" id="arcid<?php echo $i?>" style="width:90%"></textarea></td>
  322. <td><button name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" class="btn btn-success btn-sm" onClick="SelectArcList('form1.arcid<?php echo $i?>');">选择节点文章</button></td>
  323. </tr>
  324. <tr>
  325. <td>文档来源:</td>
  326. <td colspan="2">
  327. <label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" class="np" checked>
  328. 按文章列表</label>
  329. <label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np">
  330. 自动获取文档</label>
  331. &nbsp;
  332. <label>关键词:
  333. <input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label>
  334. 栏目ID:
  335. <label><input name="typeid<?php echo $i?>" type="text" id="_typeid<?php echo $i?>" value="0" size="4"></label>
  336. </td>
  337. </tr>
  338. <tr>
  339. <td height="50" rowspan="2">节点布局:</td>
  340. <td colspan="2"> 列数:
  341. <input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" value="1" size="3">
  342. 图片宽:
  343. <input name="imgwidth<?php echo $i?>" type="text" id="imgwidth<?php echo $i?>" value="120" size="3">
  344. 图片高:
  345. <input name="imgheight<?php echo $i?>" type="text" id="imgheight<?php echo $i?>" value="90" size="3">
  346. 标题长:
  347. <input name="titlelen<?php echo $i?>" type="text" id="titlelen<?php echo $i?>" value="60" size="3">
  348. 简介长:
  349. <input name="infolen<?php echo $i?>" type="text" id="infolen<?php echo $i?>" value="160" size="3">
  350. 文档数:
  351. <input name="rownum<?php echo $i?>" type="text" id="rownum<?php echo $i?>" value="10" size="3"></td>
  352. </tr>
  353. <tr>
  354. <td colspan="2">单条记录的模板:<br>
  355. <textarea name="listtmp<?php echo $i?>" rows="3" id="listtmp<?php echo $i?>" style="width:60%"><?php echo $speclisttmp?></textarea></td>
  356. </tr>
  357. <tr>
  358. <td>节点容器模板:</td>
  359. <td colspan="2">
  360. <input name="notetemplet<?php echo $i?>" type="text" id="notetemplet<?php echo $i?>" value="system/channel_spec_note.htm" style="width:300px">
  361. <button type="button" name="selno<?php echo $i?>" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.notetemplet<?php echo $i?>');">浏览</button>
  362. </td>
  363. </tr>
  364. <?php
  365. }
  366. ?>
  367. </table>
  368. </td>
  369. </tr>
  370. </table>
  371. <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0">
  372. <tr>
  373. <td align="center" class="py-3">
  374. <button type="submit" class="btn btn-success btn-sm">保存</button>
  375. <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button>
  376. </td>
  377. </tr>
  378. </table>
  379. </form>
  380. <script>InitPage();</script>
  381. </body>
  382. </html>