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

274 lines
14KB

  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. <script type="text/javascript" src="../static/js/jquery/jquery.js"></script>
  7. <script type="text/javascript">
  8. var $ = jQuery;
  9. $(document).ready(function(){
  10. //删除按钮事件
  11. $("#addQuick .del").click(function() {
  12. $(this).parents(".repeat").remove();
  13. });
  14. //添加按钮事件
  15. $("#add").click(function(){
  16. var id = $("#addQuick tr").prevAll("tr").length + 1;
  17. $("#addQuick tr:eq(1)").clone(true).addClass("repeat")
  18. .find(".rank input")
  19. .attr("value",function(){return id})
  20. .end()
  21. .find(".pubinputs")
  22. .attr("name",function(){return this.name+id})
  23. .attr("id",function(){return this.id+id})
  24. .end()
  25. .appendTo($("#addQuick"));
  26. });
  27. //删除按钮事件
  28. $("#addQuickRel .del").click(function() {
  29. $(this).parents(".repeat").remove();
  30. });
  31. //添加按钮事件
  32. $("#addrel").click(function(){
  33. var id = $("#addQuickRel tr").prevAll("tr").length + 1;
  34. $("#addQuickRel tr:eq(1)").clone(true).addClass("repeat")
  35. .find(".rank input")
  36. .attr("value",function(){return id})
  37. .end()
  38. .find(".pubinputs")
  39. .attr("name",function(){return this.name+id})
  40. .attr("id",function(){return this.id+id})
  41. .end()
  42. .appendTo($("#addQuickRel"));
  43. });
  44. });
  45. </script>
  46. <script language="javascript">
  47. function ShowHide(objname){
  48. var obj = document.getElementById(objname);
  49. if(obj.style.display == "block" || obj.style.display == "")
  50. obj.style.display = "none";
  51. else
  52. obj.style.display = "block";
  53. }
  54. function ShowObj(objname){
  55. var obj = document.getElementById(objname);
  56. obj.style.display = "block";
  57. }
  58. function HideObj(objname){
  59. var obj = document.getElementById(objname);
  60. obj.style.display = "none";
  61. }
  62. function showSeltype(objname)
  63. {
  64. if(objname.value != 0)
  65. {
  66. $("#addQuickRel").show();
  67. $("#pathtype").show();
  68. $("#addQuick").hide();
  69. $("#savetype").val('rel');
  70. } else {
  71. $("#addQuickRel").hide();
  72. $("#addQuick").show();
  73. $("#pathtype").hide();
  74. $("#savetype").val('');
  75. }
  76. }
  77. </script>
  78. <link href='css/base.css' rel='stylesheet' type='text/css'>
  79. </head>
  80. <body leftmargin='15' topmargin='10'>
  81. <form name="form1" action="catalog_add.php" method="post">
  82. <input type="hidden" name="dopost" value="savequick" />
  83. <input type="hidden" name="savetype" value="" id="savetype"/>
  84. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" style="BORDER-COLLAPSE: collapse">
  85. <tr>
  86. <td width="100%" height="20" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  87. <tr>
  88. <td height="30"><img height='14' src='images/book1.gif' width='20' />&nbsp;<a href="catalog_main.php"><u>栏目管理</u></a> &gt;&gt; 批量增加栏目 </td>
  89. </tr>
  90. </table></td>
  91. </tr>
  92. <tr>
  93. <td width="100%" height="1" background="images/sp_bg.gif"></td>
  94. </tr>
  95. </table>
  96. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  97. <tr>
  98. <td height="10"></td>
  99. </tr>
  100. <tr>
  101. <td height="95" align="left" bgcolor="#FFFFFF">
  102. <table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0" >
  103. <tr>
  104. <td colspan="2" bgcolor="#FFFFFF"><table width="84" border="0" cellpadding="0" cellspacing="0">
  105. <tr>
  106. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规选项&nbsp;</td>
  107. </tr>
  108. </table></td>
  109. </tr>
  110. </table>
  111. <table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#ffffff;text-align:left;">
  112. <tr>
  113. <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>公用参数:</strong></td>
  114. <td bgcolor="#F9FCEF"></td>
  115. </tr>
  116. <tr>
  117. <td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿:</td>
  118. <td class='bline'><input type='radio' name='issend' value='0' class='np' />
  119. 不支持
  120. &nbsp;
  121. <input type='radio' name='issend' value='1' class='np' checked='1' />
  122. 支持 </td>
  123. </tr>
  124. <tr>
  125. <td class='bline' height="26" style="padding-left:10px;">目录保存位置:</td>
  126. <td class='bline'><input name="referpath" type="radio" id="truepath1" class="np" value="parent" checked='1' />
  127. 默认HMTL目录(
  128. <?php
  129. $pardir = '{cmspath}'.$cfg_arcdir;
  130. if(!empty($typedir)) $pardir = $typedir.'/';
  131. $pardir = preg_replace("#\/{1,}#", '/', $pardir);
  132. echo $pardir;
  133. ?>
  134. )
  135. <input name="referpath" type="radio" id="truepath2" class="np" value="cmspath" />
  136. CMS根目录
  137. <input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir; ?>" />
  138. <span id="pathtype" style="display:none"><input name="referpath" type="radio" id="truepath3" class="np" value="typepath" />
  139. 隶属栏目所属的目录</span></td>
  140. </tr>
  141. <tr>
  142. <td class='bline' height="26" style="padding-left:10px;">隶属栏目:</td>
  143. <td class='bline'>
  144. <select name='reid' onchange="showSeltype(this)">
  145. <option value='0'>选择所属目录... </option>
  146. <?php echo $typeOptions;?>
  147. </select>
  148. (默认为顶级栏目)
  149. </td>
  150. </tr>
  151. <tr>
  152. <td class='bline' height="26" style="padding-left:10px;">内容模型: &nbsp; </td>
  153. <td class='bline'><select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)">
  154. <?php
  155. foreach($channelArray as $k=>$arr)
  156. {
  157. if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n";
  158. else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n";
  159. }
  160. ?>
  161. </select>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td class='bline' height="26" style="padding-left:10px;">栏目列表选项:</td>
  166. <td class='bline'><input type='radio' name='isdefault' value='1' class='np' checked='1' />
  167. 链接到默认页
  168. <input type='radio' name='isdefault' value='0' class='np' />
  169. 链接到列表第一页
  170. <input type='radio' name='isdefault' value='-1' class='np' />
  171. 使用动态页 </td>
  172. </tr>
  173. <tr>
  174. <td class='bline' height="26" style="padding-left:10px;">默认页的名称: </td>
  175. <td class='bline'><input name="defaultname" type="text" value="index.html" class="pubinputs" /></td>
  176. </tr>
  177. <tr id='helpvar2' style='display:none'>
  178. <td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td>
  179. <td height="24" bgcolor="#F3F7EA"> {Y}、{M}、{D} 年月日<br/>
  180. {timestamp} INT类型的UNIX时间戳<br/>
  181. {aid} 文章ID<br/>
  182. {pinyin} 拼音+文章ID<br/>
  183. {py} 拼音部首+文章ID<br/>
  184. {typedir} 栏目目录 <br/>
  185. {cc} 日期+ID混编后用转换为适合的字母 <br/>
  186. </td>
  187. </tr>
  188. <tr>
  189. <td height="26" class='bline' style="padding-left:10px;">文章命名规则:</td>
  190. <td class='bline'><input name="namerule" type="text" id="namerule" value="{typedir}/{Y}{M}{D}/{aid}.html" size="40" class="pubinputs" />
  191. <img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar2')" /> </td>
  192. </tr>
  193. <tr id='helpvar3' style='display:none'>
  194. <td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td>
  195. <td bgcolor="#F3F7EA">{page} 列表的页码</td>
  196. </tr>
  197. <tr>
  198. <td height="26" style="padding-left:10px;">列表命名规则:</td>
  199. <td><input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" size="40" class="pubinputs" />
  200. <img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')" /></td>
  201. </tr>
  202. <tr>
  203. <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>栏目填写:</strong></td>
  204. <td bgcolor="#F9FCEF"></td>
  205. </tr>
  206. <tr>
  207. <td colspan='2' style="padding:5px 0px 8px 10px">
  208. <table id="addQuick" width="800" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf">
  209. <tbody>
  210. <tr bgcolor="#FBFCE2" align="center">
  211. <td width="60" height="28">排序</td>
  212. <td width="170">顶级栏目名称</td>
  213. <td width="520">子栏目(用&quot;目录名称1,目录名称2...&quot;这样表示多个栏目)</td>
  214. <td width="50" align="center"><input name="" type="button" value="添加" id="add" class="coolbt"></td>
  215. </tr>
  216. <tr bgcolor="#FFFFFF" height="32" align="center">
  217. <td class="rank" style="padding:5px;"><input type="hidden" name="posttype" value="" class="pubinputs" />
  218. <input type="text" name="rank" id="rank" value="1" class="pubinputs" style="width:50px;" /></td>
  219. <td align='center'><input type="text" name="toptype" id="toptype" class="pubinputs" style="width:160px;" /></td>
  220. <td><input type="text" name="sontype" id="sontype" class="pubinputs" style="width:480px;" /></td>
  221. <td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td>
  222. </tr>
  223. <?php for($i=2;$i<=10;$i++) { ?>
  224. <tr bgcolor="#FFFFFF" height="32" class="repeat" align="center">
  225. <td class="rank"><input type="hidden" name="posttype<?php echo $i; ?>" value="<?php echo $i; ?>" />
  226. <input type="text" name="rank<?php echo $i; ?>" id="rank<?php echo $i; ?>" value="<?php echo $i; ?>" class="pubinputs" style="width:50px;" /></td>
  227. <td align='center'><input type="text" name="toptype<?php echo $i; ?>" id="toptype<?php echo $i; ?>" class="pubinputs" style="width:160px;" /></td>
  228. <td><input type="text" name="sontype<?php echo $i; ?>" id="sontype<?php echo $i; ?>" class="pubinputs" style="width:480px;" /></td>
  229. <td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td>
  230. </tr>
  231. <?php } ?>
  232. </tbody>
  233. </table>
  234. <table id="addQuickRel" width="302" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" style="display:none">
  235. <tbody>
  236. <tr bgcolor="#FBFCE2" align="center">
  237. <td width="60" height="28">排序</td>
  238. <td width="170">栏目名称</td>
  239. <td width="50" align="center"><input name="" type="button" value="添加" id="addrel" class="coolbt"></td>
  240. </tr>
  241. <tr bgcolor="#FFFFFF" height="32" align="center">
  242. <td class="rank" style="padding:5px;"><input type="hidden" name="posttype" value="" class="pubinputs" />
  243. <input type="text" name="rank" id="rank" value="1" class="pubinputs" style="width:50px;" /></td>
  244. <td align='center'><input type="text" name="reltype" id="reltype" class="pubinputs" style="width:160px;" /></td>
  245. <td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td>
  246. </tr>
  247. <?php for($i=2;$i<=10;$i++) { ?>
  248. <tr bgcolor="#FFFFFF" height="32" class="repeat" align="center">
  249. <td class="rank"><input type="hidden" name="posttype<?php echo $i; ?>" value="<?php echo $i; ?>" />
  250. <input type="text" name="rank<?php echo $i; ?>" id="rank<?php echo $i; ?>" value="<?php echo $i; ?>" class="pubinputs" style="width:50px;" /></td>
  251. <td align='center'><input type="text" name="reltype<?php echo $i; ?>" id="reltype<?php echo $i; ?>" class="pubinputs" style="width:160px;" /></td>
  252. <td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td>
  253. </tr>
  254. <?php } ?>
  255. </tbody>
  256. </table>
  257. </td>
  258. </tr>
  259. </table>
  260. <table width="98%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  261. <tr>
  262. <td width="1%" height="36"></td>
  263. <td width="99%" valign="bottom"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np" />
  264. &nbsp;&nbsp;&nbsp; <a href="catalog_main.php"><img src="images/button_back.gif" width="60" height="22" border="0" /></a> </td>
  265. </tr>
  266. </table></td>
  267. </tr>
  268. </table>
  269. </form>
  270. </body>
  271. </html>