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