国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

spec_add.htm 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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. <style type="text/css">
  7. body {
  8. background-image: url(images/allbg.gif);
  9. }
  10. </style>
  11. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  12. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  13. <link href="css/base.css" rel="stylesheet" type="text/css">
  14. <script language="javascript" src="../static/js/jquery.js"></script>
  15. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  16. <link rel="stylesheet" href="../static/css/jquery.fileupload.css">
  17. <link href="../static/css/daterangepicker.css" rel="stylesheet">
  18. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  19. <script type="text/javascript" src="../static/js/daterangepicker.js"></script>
  20. <script language='javascript' src='js/main.js'></script>
  21. <link href="../static/css/cropper.min.css" rel="stylesheet">
  22. <script src="../static/js/cropper.min.js"></script>
  23. <script src="../static/js/bootstrap.bundle.js"></script>
  24. <script language="javascript">
  25. function checkSubmit(){
  26. if(document.form1.title.value==""){
  27. alert("专题名称不能为空!");
  28. return false;
  29. }
  30. for(i=1;i<=6;i++){
  31. $val = CheckVal(i);
  32. if($val == false)
  33. {
  34. return false;
  35. }
  36. }
  37. }
  38. function SelectArcList(fname){
  39. var posLeft = 10;
  40. var posTop = 10;
  41. window.open("content_select_list.php?f="+fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left="+posLeft+", top="+posTop);
  42. }
  43. function SelectImage(fname,vlist){
  44. var posLeft = 10;
  45. var posTop = 10;
  46. 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);
  47. }
  48. function SelectTemplets(fname){
  49. var posLeft = 10;
  50. var posTop = 10;
  51. window.open("./dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
  52. }
  53. function CheckVal(id){
  54. var notename = $DE('notename'+id);
  55. var arcid = $DE('arcid'+id);
  56. if(arcid.value != "")
  57. {
  58. if(notename.value == "")
  59. {
  60. $DE('notename'+id).focus();
  61. alert('你的节点'+id+'名称不能为空');
  62. return false;
  63. }
  64. }
  65. }
  66. </script>
  67. <style>
  68. img {
  69. vertical-align: baseline;
  70. }
  71. input,
  72. select {
  73. height: auto !important;
  74. }
  75. </style>
  76. </head>
  77. <body topmargin="8">
  78. <form name="form1" action="spec_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  79. <input type="hidden" name="dopost" value="save" />
  80. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  81. <input type="hidden" name="arcrank" value="0" />
  82. <input type="hidden" name="source" value="本站" />
  83. <input type="hidden" id="litpic_b64" name="litpic_b64" value="">
  84. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  85. <tr>
  86. <td width="85%" height="30"><IMG height=14 src="images/book1.gif" width=20>&nbsp;<a href="content_s_list.php"><u>专题列表</u></a><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"></a> &gt;&gt; 发布专题</td>
  87. <td width="10%" align="right"> <a href="makehtml_spec.php">[<u>更新HTML</u>]</a>&nbsp;</td>
  88. </tr>
  89. </table>
  90. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" >
  91. <tr>
  92. <td colspan="2"><table width="168" border="0" cellpadding="0" cellspacing="0">
  93. <tr>
  94. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规参数&nbsp;</td>
  95. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>专题文档</u></a>&nbsp;</td>
  96. </tr>
  97. </table></td>
  98. </tr>
  99. </table>
  100. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  101. <tr>
  102. <td colspan="2"><table width="168" height="24" border="0" cellpadding="0" cellspacing="0">
  103. <tr>
  104. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem1()"><u>常规参数</u></a>&nbsp;</td>
  105. <td width="84" align="center" background="images/itemnote1.gif">专题文档</td>
  106. </tr>
  107. </table></td>
  108. </tr>
  109. </table>
  110. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  111. <tr>
  112. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  113. <tr>
  114. <td width="90">&nbsp;专题名称:</td>
  115. <td width='408'><input name="title" type="text" id="title" value="" style="width:388px" /></td>
  116. <td width="90">&nbsp;简略标题:</td>
  117. <td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" /></td>
  118. </tr>
  119. </table></td>
  120. </tr>
  121. <tr>
  122. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  123. <tr>
  124. <td width="90">&nbsp;自定义属性:</td>
  125. <td><?php
  126. $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
  127. $dsql->Execute();
  128. while($trow = $dsql->GetObject())
  129. {
  130. if($trow->att!='j')
  131. {
  132. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]";
  133. }
  134. }
  135. ?></td>
  136. </tr>
  137. </table></td>
  138. </tr>
  139. <tr id="pictable">
  140. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  141. <tr>
  142. <td width="90">&nbsp;缩 略 图:</td>
  143. <td width="560"><table width="100%" border="0" cellspacing="1" cellpadding="1">
  144. <tr>
  145. <td height="30"><input name="picname" type="text" id="picname" style="width:240px" />
  146. <input type="button" name="Submit2" value="站内选择" style="margin-left:8px;"
  147. onClick="SelectImage('form1.picname','small');" class='np coolbg' />
  148. <input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' />远程
  149. <span class="btn btn-success fileinput-button">
  150. <i class="glyphicon glyphicon-plus"></i>
  151. 选择图片
  152. <input type="file" name="files[]" id="iptAddImages">
  153. </span>
  154. <button id="btnClearAll" type="button" class="btn btn-danger delete">
  155. <i class="fa fa-trash-o"></i>
  156. <span>清空</span>
  157. </button>
  158. </td>
  159. </tr>
  160. </table></td>
  161. <td width="150" align="center"><img id="litPic" src="../static/defaultpic.gif" style="height: 80px"></td>
  162. </tr>
  163. </table></td>
  164. </tr>
  165. <tr>
  166. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  167. <tr>
  168. <td width="90">&nbsp;责任编辑:</td>
  169. <td width="240"><input name="writer" type="text" id="writer"></td>
  170. <td width="90">发布选项:</td>
  171. <td><input name="ishtml" type="radio" class="np" value="1" checked='1' />
  172. 生成HTML
  173. <input type="radio" name="ishtml" class="np" value="0" />
  174. 仅动态浏览 </td>
  175. </tr>
  176. </table></td>
  177. </tr>
  178. <tr>
  179. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  180. <tr>
  181. <td width="90" height="22">&nbsp;内容排序:</td>
  182. <td width="240"><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></td>
  190. <td width="90">标题颜色:</td>
  191. <td width="159"><input name="color" type="text" id="color" style="width:120px" /></td>
  192. <td><input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)" /></td>
  193. </tr>
  194. </table></td>
  195. </tr>
  196. <tr>
  197. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  198. <tr>
  199. <td width="90">&nbsp;主分类:</td>
  200. <td><?php
  201. $typeOptions = GetOptionList($cid, $cuserLogin->getUserChannel(), 0);
  202. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  203. echo "<option value='0'>请选择主分类...</option>\r\n";
  204. echo $typeOptions;
  205. echo "</select>";
  206. ?>
  207. <img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, 0, 'typeid')" alt='快捷选择' title='快捷选择' />
  208. </td>
  209. </tr>
  210. </table></td>
  211. </tr>
  212. <tr>
  213. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  214. <tr>
  215. <td width="90">&nbsp;关键字:</td>
  216. <td width="500"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td>
  217. <td width="202"><input name="autokey" type="checkbox" onClick="ShowHide('keywords');"; class="np" id="autokey" value="1"<?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?>/>
  218. 自动获取,手动填写用","分开<br/>
  219. <input type="button" name="Submit" value="浏览..." style="width:56px;height:20px" onClick="SelectKeywords('form1.keywords');" /></td>
  220. </tr>
  221. </table></td>
  222. </tr>
  223. <tr>
  224. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  225. <tr>
  226. <td width="90">&nbsp;专题简介:</td>
  227. <td width="520"><textarea name="description" rows="5" id="description" style="width:80%;height:60px"></textarea></td>
  228. <td>&nbsp;</td>
  229. </tr>
  230. </table></td>
  231. </tr>
  232. <tr>
  233. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  234. <tr>
  235. <td width="90">&nbsp;发布时间:</td>
  236. <td><?php
  237. $nowtime = GetDateTimeMk(time());
  238. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\" class='datepicker'/>";
  239. ?>
  240. </td>
  241. </tr>
  242. </table></td>
  243. </tr>
  244. </tr>
  245. <tr>
  246. <td height="24" colspan="4" class="bline">
  247. <table width="800" border="0" cellspacing="0" cellpadding="0">
  248. <tr>
  249. <td width="90" height="22" width="240">
  250. &nbsp;评论选项:
  251. </td>
  252. <td width="250"><input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />
  253. 允许评论
  254. &nbsp;
  255. <input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />
  256. 禁止评论 </td>
  257. <td width="90">浏览次数:</td>
  258. <td><input type='text' name='click' value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' style='width:100px;' /></td>
  259. </tr>
  260. </table>
  261. </td>
  262. </tr>
  263. <tr>
  264. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  265. <tr>
  266. <td width="90">&nbsp;专题模板:</td>
  267. <td><input name="templet" type="text" id="templet" style="width:250px" value="<?php echo $cfg_df_style?>/article_spec.htm" />
  268. <input type="button" name="set3" value="浏览..." style="width:60px" onClick="SelectTemplets('form1.templet');" /></td>
  269. </tr>
  270. </table></td>
  271. </tr>
  272. <tr>
  273. <td height="24" colspan="4"><table width="800" border="0" cellspacing="0" cellpadding="0">
  274. <tr>
  275. <td width="105">&nbsp;自定义文件名:</td>
  276. <td width="695"><input type="text" name="filename" id="filename" />
  277. (不包括后缀名如.html等) </td>
  278. </tr>
  279. </table></td>
  280. </tr>
  281. <tr>
  282. <td><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td>
  283. </tr>
  284. </table>
  285. <table width="98%" border="0" align="center" cellpadding="2" style="border:1px solid #cfcfcf;background:#ffffff;display:none;" cellspacing="2" id="adset">
  286. <tr>
  287. <td height="24" class="bline2"><strong>专题节点列表:</strong> <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="24" valign="top"><table width="800" border="0" cellspacing="2" cellpadding="2">
  295. <?php
  296. $speclisttmp = GetSysTemplets("spec_arclist.htm");
  297. $nodename = $nodeid = '';
  298. for($i=1;$i<=$cfg_specnote;$i++)
  299. {
  300. if($i==1)
  301. {
  302. $nodename = '默认节点';
  303. $nodeid = 'default';
  304. }
  305. else
  306. {
  307. $nodename = $nodeid = '';
  308. }
  309. ?>
  310. <tr bgcolor="#FBFCE2">
  311. <td width="113">节点 <?php echo $i?> 名称:</td>
  312. <td colspan="2"><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></td>
  319. </tr>
  320. <tr>
  321. <td>节点文章列表:</td>
  322. <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>
  323. <td width="188"><input name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" value="选择节点文章" style="width:100" onClick="SelectArcList('form1.arcid<?php echo $i?>');"></td>
  324. </tr>
  325. <tr>
  326. <td>文档来源:</td>
  327. <td colspan="2"><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" class="np" checked>
  328. 按文章列表
  329. <input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np">
  330. 自动获取文档
  331. &nbsp;
  332. 关键字:
  333. <input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16">
  334. (逗号分开)
  335. 栏目ID:
  336. <input name="typeid<?php echo $i?>" type="text" id="typeid<?php echo $i?>" value="0" size="4"></td>
  337. </tr>
  338. <tr>
  339. <td height="51" rowspan="2" valign="top">节点布局: </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"><input name="notetemplet<?php echo $i?>" type="text" id="notetemplet<?php echo $i?>" value="system/channel_spec_note.htm" style="width:300">
  360. <input type="button" name="selno<?php echo $i?>" value="浏览..." style="width:70" onClick="SelectTemplets('form1.notetemplet<?php echo $i?>');"></td>
  361. </tr>
  362. <?php
  363. }
  364. ?>
  365. </table></td>
  366. </tr>
  367. </table>
  368. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  369. <tr>
  370. <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1">
  371. <tr>
  372. <td width="17%">&nbsp;</td>
  373. <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
  374. <tr>
  375. <td width="115"><input name="imageField" type="image" src="images/button_ok.gif" class='np' width="60" height="22" border="0"></td>
  376. <td width="99"><img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer;"></td>
  377. </tr>
  378. </table></td>
  379. </tr>
  380. </table></td>
  381. </tr>
  382. </table>
  383. </form>
  384. <script language='javascript'>InitPage();</script>
  385. </body>
  386. </html>