国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

catalog_add.htm 26KB

2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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 src="../static/web/js/jquery.min.js"></script>
  10. <script src="js/main.js"></script>
  11. <style>
  12. textarea{min-height:30px}
  13. </style>
  14. <script>
  15. var channelArray = new Array();
  16. <?php
  17. $i = 0;
  18. foreach($channelArray as $k=> $arr)
  19. {
  20. echo "channelArray[$k] = \"{$arr['nid']}\";";
  21. }
  22. ?>
  23. function Nav() {
  24. if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE';
  25. else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF';
  26. else return "OT";
  27. }
  28. function SelectTemplets(fname) {
  29. var pos = GetWinPos(800,600);
  30. 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);
  31. }
  32. function ShowHide(objname) {
  33. var obj = document.getElementById(objname);
  34. if (obj.style.display != "none")
  35. obj.style.display = "none";
  36. else {
  37. if (Nav() == 'IE') obj.style.display = "block";
  38. else obj.style.display = "table-row";
  39. }
  40. }
  41. function ShowObj(objname) {
  42. var obj = document.getElementById(objname);
  43. if (Nav() == 'IE') obj.style.display = "block";
  44. else obj.style.display = "table";
  45. }
  46. function HideObj(objname) {
  47. var obj = document.getElementById(objname);
  48. obj.style.display = "none";
  49. }
  50. function ShowItem1() {
  51. ShowObj('head1'); ShowObj('needset');
  52. HideObj('head2'); HideObj('adset');
  53. HideObj('head3'); HideObj('ctset');
  54. }
  55. function ShowItem2() {
  56. ShowObj('head2'); ShowObj('adset');
  57. HideObj('head1'); HideObj('needset');
  58. HideObj('head3'); HideObj('ctset');
  59. }
  60. function ShowItem3() {
  61. ShowObj('head3'); ShowObj('ctset');
  62. HideObj('head1'); HideObj('needset');
  63. HideObj('head2'); HideObj('adset');
  64. }
  65. function CheckTypeDir() {
  66. var upinyin = document.getElementById('upinyin');
  67. var tpobj = document.getElementById('typedir');
  68. if (upinyin.checked) tpobj.style.display = "none";
  69. else tpobj.style.display = "block";
  70. }
  71. function ParTemplet(obj) {
  72. var sevvalue = channelArray[obj.value];
  73. var tobj = document.getElementById('smclass');
  74. var tempindex = document.getElementsByName('tempindex');
  75. var templist = document.getElementsByName('templist');
  76. var temparticle = document.getElementsByName('temparticle');
  77. var dfstyle = document.getElementsByName('dfstyle');
  78. var dfstyleValue = dfstyle[0].value;
  79. tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm";
  80. templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm";
  81. temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm";
  82. if (obj.value < 0) {
  83. if (Nav() == 'IE') tobj.style.display = "block";
  84. else tobj.style.display = "table-row";
  85. } else {
  86. tobj.style.display = "none";
  87. }
  88. }
  89. function checkSubmit() {
  90. if (document.form1.typename.value == "") {
  91. alert("栏目名称不能为空");
  92. document.form1.typename.focus();
  93. return false;
  94. }
  95. return true;
  96. }
  97. function CheckPathSet() {
  98. var surl = document.getElementById("siteurl");
  99. var sreid = document.getElementById("reid");
  100. var mysel = document.getElementById("truepath3");
  101. if (surl.value != "") {
  102. if (sreid.value == "0" || sreid.value == "") {
  103. mysel.checked = true;
  104. }
  105. }
  106. }
  107. function CheckCross() {
  108. var cross2 = document.getElementById('cross2');
  109. var crossid = document.getElementById('crossid');
  110. if (cross2.checked) crossid.style.display = 'block';
  111. else crossid.style.display = 'none';
  112. }
  113. </script>
  114. </head>
  115. <body>
  116. <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  117. <tr>
  118. <td width="100%" height="26">
  119. <table width="100%" cellspacing="0" cellpadding="0">
  120. <tr>
  121. <td height="30"><i class="fa fa-book"></i> <a href="catalog_main.php">栏目管理</a> &gt; 增加栏目</td>
  122. </tr>
  123. </table>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td width="100%" height="1" background="../static/web/img/sp_bg.gif"></td>
  128. </tr>
  129. </table>
  130. <table width="98%" align="center" cellpadding="0" cellspacing="0">
  131. <tr>
  132. <form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit()">
  133. <input type="hidden" name="dopost" value="save">
  134. <input type="hidden" name="reid" id="reid" value="<?php echo $id; ?>">
  135. <input type='hidden' name='topid' id='topid' value='<?php echo $topid; ?>'>
  136. <?php
  137. if($id>0)
  138. {
  139. echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}'>";
  140. echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}'>";
  141. echo " <input type='hidden' name='sitepath' value='{$myrow['sitepath']}'>";
  142. }
  143. ?>
  144. <td height="90" align="center" bgcolor="#fff">
  145. <table width="100%" cellspacing="0" id="head1" cellpadding="0">
  146. <tr>
  147. <td colspan="2" bgcolor="#fff" align="left">
  148. <table cellpadding="0" cellspacing="0">
  149. <tr>
  150. <td width="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规选项</td>
  151. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级选项</a></td>
  152. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td>
  153. </tr>
  154. </table>
  155. </td>
  156. </tr>
  157. </table>
  158. <table width="100%" cellspacing="0" id="head2" cellpadding="0" style="display:none">
  159. <tr>
  160. <td colspan="2" bgcolor="#fff" style="text-align:left">
  161. <table height="26" cellpadding="0" cellspacing="0">
  162. <tr>
  163. <td width="86" align="center" background="../static/web/img/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td>
  164. <td width="86" align="center" background="../static/web/img/itemnote1.gif">高级选项</td>
  165. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td>
  166. </tr>
  167. </table>
  168. </td>
  169. </tr>
  170. </table>
  171. <table width="100%" cellspacing="0" id="head3" cellpadding="0" style="display:none">
  172. <tr>
  173. <td colspan="2" bgcolor="#fff" style="text-align:left">
  174. <table height="26" cellpadding="0" cellspacing="0">
  175. <tr>
  176. <td width="86" align="center" background="../static/web/img/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td>
  177. <td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级选项</td>
  178. <td width="86" align="center" background="../static/web/img/itemnote1.gif">栏目内容</td>
  179. </tr>
  180. </table>
  181. </td>
  182. </tr>
  183. </table>
  184. <table width="100%" id="needset" cellspacing="0" cellpadding="0" style="border:1px solid #dee2e6" class="table">
  185. <tr>
  186. <td width="260" class="bline" height="26" style="padding-left:10px">是否支持投稿:</td>
  187. <td class="bline">
  188. <label><input type='radio' name='issend' value='0' class='np' <?php if($issend==0) echo " checked='checked' "; ?>>&nbsp;不支持&nbsp;</label>
  189. <label><input type='radio' name='issend' value='1' class='np' <?php if($issend==1) echo " checked='checked' "; ?>>&nbsp;支持</label>
  190. </td>
  191. </tr>
  192. <tr>
  193. <td width="260" class="bline" height="26" style="padding-left:10px">是否隐藏栏目:</td>
  194. <td class="bline">
  195. <label><input type='radio' name='ishidden' value='0' class='np' checked="checked">&nbsp;显示&nbsp;</label>
  196. <label><input type='radio' name='ishidden' value='1' class='np'>&nbsp;隐藏</label>
  197. </td>
  198. </tr>
  199. <tr>
  200. <td class="bline" height="26" style="padding-left:10px">内容模型:</td>
  201. <td class="bline">
  202. <select name="channeltype" id="channeltype" style="width:160px" onChange="ParTemplet(this)">
  203. <?php
  204. foreach($channelArray as $k=>$arr)
  205. {
  206. if($k==$channelid) {
  207. $nid = $arr['nid'];
  208. echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>";
  209. } else {
  210. echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>";
  211. }
  212. }
  213. ?>
  214. </select>
  215. </td>
  216. </tr>
  217. <tr>
  218. <td class="bline" height="26" style="padding-left:10px">中文名称:</td>
  219. <td class="bline"><input name="typename" type="text" class="iptxt" style="width:260px"></td>
  220. </tr>
  221. <tr>
  222. <td class="bline" height="26" style="padding-left:10px">中文概况:</td>
  223. <td class="bline"><input name="namegk" type="text" class="iptxt" style="width:260px"></td>
  224. </tr>
  225. <tr>
  226. <td class="bline" height="26" style="padding-left:10px">英文名称:</td>
  227. <td class="bline"><input name="enname" type="text" class="iptxt" style="width:260px"></td>
  228. </tr>
  229. <tr>
  230. <td class="bline" height="26" style="padding-left:10px">英文概况:</td>
  231. <td class="bline"><input name="ennamegk" type="text" class="iptxt" style="width:260px"></td>
  232. </tr>
  233. <tr>
  234. <td class="bline" height="26" style="padding-left:10px">栏目大图:</td>
  235. <td>
  236. <input name="bigpic" type="text" class="alltxt" style="width:260px">
  237. <input type="button" class="btn btn-success btn-sm" value="浏览" onClick="SelectImage('form1.bigpic');">
  238. </td>
  239. </tr>
  240. <tr>
  241. <td class="bline" height="26" style="padding-left:10px">栏目小图:</td>
  242. <td>
  243. <input name="litimg" type="text" class="alltxt" style="width:260px">
  244. <input type="button" class="btn btn-success btn-sm" value="浏览" onClick="SelectImage('form1.litimg');">
  245. </td>
  246. </tr>
  247. <tr>
  248. <td class="bline" height="26" style="padding-left:10px">排列顺序:</td>
  249. <td class="bline"><input name="sortrank" type="text" class="pubinputs" style="width:60px">(由低 &gt; 高)</td>
  250. </tr>
  251. <tr>
  252. <td class="bline" height="26" style="padding-left:10px">浏览权限:</td>
  253. <td class="bline">
  254. <select name="corank" id="corank" style="width:160px">
  255. <?php
  256. $dsql->SetQuery("Select * from `#@__arcrank` where `rank` >= 0");
  257. $dsql->Execute('cc');
  258. while($row = $dsql->GetObject('cc')){
  259. if($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>";
  260. else {
  261. if($corank==0){
  262. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  263. }
  264. }
  265. }
  266. ?>
  267. </select>
  268. (仅限制栏目里的文档浏览权限)
  269. </td>
  270. </tr>
  271. <tr>
  272. <td class="bline" height="26" style="padding-left:10px">上级目录:</td>
  273. <td class="bline">
  274. <?php
  275. $pardir = '{cmspath}'.$cfg_arcdir;
  276. if(!empty($typedir)) $pardir = $typedir.'/';
  277. $pardir = preg_replace("#\/{1,}#", '/', $pardir);
  278. echo $pardir;
  279. ?>
  280. <input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir?>">
  281. </td>
  282. </tr>
  283. <tr>
  284. <td height="26" style="padding-left:10px">文件保存目录:</td>
  285. <td style="padding:0">
  286. <table cellspacing="1" cellpadding="1" class="table-borderless">
  287. <tr >
  288. <td><input name="typedir" type="text" id="typedir" class="pubinputs" style="width:260px"></td>
  289. <td><input name="upinyin" type="checkbox" id="upinyin" class="np" value="1" onClick="CheckTypeDir()"><label for="upinyin">&nbsp;拼音</label></td>
  290. </tr>
  291. </table>
  292. </td>
  293. </tr>
  294. <tr>
  295. <td class="bline" height="26" style="padding-left:10px">目录相对位置:</td>
  296. <td class="bline">
  297. <input name="referpath" type="radio" id="truepath1" class="np" value="parent" checked="chekced">
  298. <label for="truepath1">上级目录</label>
  299. <?php
  300. if($moresite==0){
  301. ?>
  302. <input name="referpath" type="radio" id="truepath2" class="np" value="cmspath">
  303. <label for="truepath2">CMS根目录</label>
  304. <input name="referpath" type="radio" id="truepath3" class="np" value="basepath">
  305. <label for="truepath3">站点根目录</label>
  306. <?php } ?>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td height="26" style="padding-left:10px">栏目列表选项:</td>
  311. <td>
  312. <input type='radio' name='isdefault' id="isdefault1" value='1' class='np' checked="checked">
  313. <label for="isdefault1">链接到默认页</label>
  314. <input type='radio' name='isdefault' id="isdefault0" value='0' class='np'>
  315. <label for="isdefault0">链接到列表第一页</label>
  316. <input type='radio' name='isdefault' id="isdefault-1" value='-1' class='np'>
  317. <label for="isdefault-1">使用动态页</label>
  318. </td>
  319. </tr>
  320. <tr>
  321. <td height="26" class="bline" style="padding-left:10px">默认页的名称:</td>
  322. <td class="bline"><input name="defaultname" type="text" value="index.html" class="iptxt" style="width:260px"></td>
  323. </tr>
  324. <tr>
  325. <td height="26" class="bline" style="padding-left:10px">栏目属性:</td>
  326. <td class="bline">
  327. <input name="ispart" type="radio" id="ispart0" value="0" class='np' checked="checked">
  328. <label for="ispart0">最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br>
  329. <input name="ispart" type="radio" id="ispart1" value="1" class='np'>
  330. <label for="ispart1">频道封面(栏目本身不允许发布文档)</label> <br>
  331. <input name="ispart" type="radio" id="ispart2" value="2" class='np'>
  332. <label for="ispart2">外部连接(在"文件保存目录"处填写网址)</label>
  333. </td>
  334. </tr>
  335. <tr id='helpvarco' style='display:none'>
  336. <td height="80" bgcolor="#f8f8f8" style="padding-left:10px">栏目交叉说明:</td>
  337. <td bgcolor="#f8f8f8">交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好<br>例如:网站上有大栏目——智能手机、音乐手机,另外又有栏目——诺基亚&gt;智能手机、诺基亚&gt;音乐手机,这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉,这样只需要在大栏目中指定交叉的栏目即可<br>注:会自动索引交叉栏目的内容,但不会索引交叉栏目下级栏目的内容,这种应用也适用于按地区划分资讯的站点
  338. </td>
  339. </tr>
  340. <tr>
  341. <td style="padding-left:10px">栏目交叉:<img src="../static/web/img/help.gif" style="cursor:pointer" onClick="ShowHide('helpvarco')"><br>仅适用[最终列表栏目]</td>
  342. <td>
  343. <input name="cross" type="radio" id="cross0" value="0" class='np' onClick="CheckCross()" checked='1'>
  344. <label for="cross0">不交叉</label>
  345. <input name="cross" type="radio" id="cross1" value="1" class='np' onClick="CheckCross()">
  346. <label for="cross1">自动获取同名栏目内容</label>
  347. <input name="cross" type="radio" id="cross2" value="2" class='np' onClick="CheckCross()">
  348. <label for="cross2">手工指定交叉栏目ID(用逗号分开)</label>
  349. <br>
  350. <textarea name="crossid" id="crossid" style="display:none" class="alltxt" style="width:360px;height:50px"></textarea>
  351. </td>
  352. </tr>
  353. <tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'>
  354. <td class="bline" style="padding-left:10px">绑定小分类:<br>仅适用[分类信息模型]</td>
  355. <td class="bline">
  356. <select name='smalltype[]' multiple='yes' style='width:160px'>
  357. <?php
  358. $sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC ";
  359. $dsql->Execute('s',$sql);
  360. while($arr = $dsql->GetArray('s'))
  361. {
  362. if($arr['evalue']%500==0) {
  363. echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>";
  364. }
  365. else if(preg_match("#\.#", $arr['evalue']))
  366. {
  367. echo "<option value='{$arr['evalue']}'>└───{$arr['ename']}</option>";
  368. } else {
  369. echo "<option value='{$arr['evalue']}'>└─{$arr['ename']}</option>";
  370. }
  371. }
  372. ?>
  373. </select>按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理
  374. </td>
  375. </tr>
  376. </table>
  377. <table width="100%" cellspacing="0" cellpadding="0" style="display:none;border:1px solid #dee2e6" id="adset" class="table">
  378. <?php
  379. if($id==0)
  380. {
  381. ?>
  382. <tr>
  383. <td class="bline" width="260" height="26" style="padding-left:10px">多站点支持:</td>
  384. <td class="bline">
  385. <label><input name="moresite" type="radio" class="np" value="0" checked="checked">&nbsp;不启用&nbsp;</label>
  386. <label><input type="radio" name="moresite" class="np" value="1">&nbsp;启用</label>
  387. </td>
  388. </tr>
  389. <tr>
  390. <td height="26" bgcolor="#f8f8f8" style="padding-left:10px">说明:</td>
  391. <td bgcolor="#f8f8f8">如果需要绑定二级域名,必须在“系统参数”中设定“支持多站点”</td>
  392. </tr>
  393. <tr>
  394. <td class="bline" height="26" style="padding-left:10px">绑定域名:</td>
  395. <td class="bline"><input name="siteurl" type="text" id="siteurl" onChange="CheckPathSet();" class="alltxt" style="width:260px">(需加 http://,一级或二级域名的根网址)</td>
  396. </tr>
  397. <tr>
  398. <td class="bline" height="26" style="padding-left:10px">站点根目录:</td>
  399. <td class="bline">为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录</td>
  400. </tr>
  401. <?php
  402. }
  403. ?>
  404. <tr id='helpvar1' style='display:none'>
  405. <td height="26" bgcolor="#f8f8f8" style="padding-left:10px">支持变量:</td>
  406. <td bgcolor="#f8f8f8">
  407. {tid}表示栏目ID,<br>
  408. {cid}表示频道模型的'名字ID'(
  409. <?php
  410. foreach($channelArray as $k=>$arr)
  411. {
  412. echo "{$arr['typename']}({$arr['nid']})、";
  413. }
  414. ?>)<br>
  415. 模板文件的默认位置是放在模板目录 "cms安装目录<?php echo $cfg_templets_dir ?>" 内
  416. <input type='hidden' value='{style}' name='dfstyle' class="pubinputs">
  417. </td>
  418. </tr>
  419. <tr>
  420. <td height="26" bgcolor="#f8f8f8" style="padding-left:10px">规则选项:</td>
  421. <td bgcolor="#f8f8f8">按不同的内容类型设定相关模板及命名规则</td>
  422. </tr>
  423. <tr>
  424. <td height="26" style="padding-left:10px">封面模板:</td>
  425. <td>
  426. <input name="tempindex" type="text" value="{style}/index_<?php echo $nid?>.htm" class="alltxt" style="width:260px">
  427. <button type="button" name="set1" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.tempindex')">浏览</button>
  428. <img src="../static/web/img/help.gif" style="cursor:pointer" onClick="ShowHide('helpvar1')">
  429. </td>
  430. </tr>
  431. <tr>
  432. <td height="26" style="padding-left:10px">列表模板:</td>
  433. <td>
  434. <input name="templist" type="text" value="{style}/list_<?php echo $nid?>.htm" class="alltxt" style="width:260px">
  435. <button type="button" name="set3" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.templist')">浏览</button>
  436. </td>
  437. </tr>
  438. <tr>
  439. <td height="26" style="padding-left:10px">文章模板:</td>
  440. <td>
  441. <input name="temparticle" type="text" value="{style}/article_<?php echo $nid?>.htm" class="alltxt" style="width:260px">
  442. <button type="button" name="set4" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.temparticle')">浏览</button>
  443. </td>
  444. </tr>
  445. <tr id='helpvar2' style='display:none'>
  446. <td height="26" bgcolor="#f8f8f8" style="padding-left:10px">支持变量:</td>
  447. <td height="26" bgcolor="#f8f8f8">
  448. {Y}、{M}、{D} 年月日<br>
  449. {timestamp} INT类型的UNIX时间戳<br>
  450. {aid} 文章ID<br>
  451. {pinyin} 拼音+文章ID<br>
  452. {py} 拼音部首+文章ID<br>
  453. {typedir} 栏目目录 <br>
  454. {cc} 日期+ID混编后用转换为适合的字母
  455. </td>
  456. </tr>
  457. <tr>
  458. <td height="26" style="padding-left:10px">文章命名规则:</td>
  459. <td>
  460. <input name="namerule" type="text" id="namerule" value="<?php echo $cfg_df_namerule; ?>" class="alltxt" style="width:260px">
  461. <img src="../static/web/img/help.gif" style="cursor:pointer" onClick="ShowHide('helpvar2')">
  462. </td>
  463. </tr>
  464. <tr id='helpvar3' style='display:none'>
  465. <td height="26" bgcolor="#f8f8f8" style="padding-left:10px">支持变量:</td>
  466. <td bgcolor="#f8f8f8">{page} 列表的页码</td>
  467. </tr>
  468. <tr>
  469. <td height="26" style="padding-left:10px">列表命名规则:</td>
  470. <td>
  471. <input name="namerule2" type="text" id="namerule2" value="{typedir}/{tid}-{page}.html" class="alltxt" style="width:260px">
  472. <img src="../static/web/img/help.gif" style="cursor:pointer" onClick="ShowHide('helpvar3')">
  473. </td>
  474. </tr>
  475. <tr>
  476. <td height="60" style="padding-left:10px">SEO标题:</td>
  477. <td><input name="seotitle" type="text" id="seotitle" class="alltxt" style="width:260px">(栏目模板里用{dede:field.seotitle /}调用)</td>
  478. </tr>
  479. <tr>
  480. <td height="60" style="padding-left:10px">关键词:</td>
  481. <td><textarea name="keywords" id="keywords" class="alltxt" style="width:360px;height:50px"></textarea></td>
  482. </tr>
  483. <tr>
  484. <td height="60" style="padding-left:10px">栏目描述:</td>
  485. <td height="60"><textarea name="description" id="description" class="alltxt" style="width:360px;height:50px"></textarea></td>
  486. </tr>
  487. </table>
  488. <table width="100%" cellspacing="0" cellpadding="0" style="display:none;border:1px solid #dee2e6" id="ctset" class="table">
  489. <tr>
  490. <td height="26" style="padding-left:10px">说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途</td>
  491. </tr>
  492. <tr>
  493. <td>
  494. <?php
  495. GetEditor("content","","450","Default","print","false");
  496. ?>
  497. </td>
  498. </tr>
  499. </table>
  500. <table width="100%" cellspacing="0" cellpadding="0" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3">
  501. <tr>
  502. <td align="center" class="py-3">
  503. <button type="submit" class="btn btn-success btn-sm">保存</button>
  504. <a href="catalog_main.php" class="btn btn-success btn-sm">返回</a>
  505. </td>
  506. </tr>
  507. </table>
  508. </td>
  509. </form>
  510. </tr>
  511. </table>
  512. </body>
  513. </html>