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

385 lines
19KB

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