国内流行的内容管理系统(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.

381 lines
18KB

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