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

spec_add.htm 19KB

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