BVB Source Codes

Shandong kernel enterprise stand the source code Show catalog_add_quick.htm Source code

Return Download Shandong kernel enterprise stand the source code: download catalog_add_quick.htm Source code - Download Shandong kernel enterprise stand the source code Source code - Type:.htm
  1. <html>
  2. <head>
  3. <meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
  4. <title>栏目管理--快速创建栏目</title>
  5. <script type="text/javascript" src="../images/js/j.js"></script>
  6. <script type="text/javascript">
  7. $(document).ready(function(){
  8.     //删除按钮事件
  9.     $("#addQuick .del").click(function() {
  10.         $(this).parents(".repeat").remove();
  11.     });
  12.     //添加按钮事件
  13.     $("#add").click(function(){
  14.                 var id = $("#addQuick tr").prevAll("tr").length + 1;
  15.         $("#addQuick tr:eq(1)").clone(true).addClass("repeat")
  16.                         .find(".rank input")
  17.                 .attr("value",function(){return id})
  18.                                 .end()
  19.             .find(".pubinputs")
  20.                 .attr("name",function(){return this.name+id})
  21.                                 .attr("id",function(){return this.id+id})
  22.                 .end()
  23.             .appendTo($("#addQuick"));
  24.     });
  25.  
  26. });
  27. </script>
  28. <script language="javascript">
  29. function ShowHide(objname){
  30.   var obj = document.getElementById(objname);
  31.   if(obj.style.display == "block" || obj.style.display == "")
  32.            obj.style.display = "none";
  33.   else
  34.            obj.style.display = "block";
  35. }
  36. function ShowObj(objname){
  37.    var obj = document.getElementById(objname);
  38.          obj.style.display = "block";
  39. }
  40. function HideObj(objname){
  41.   var obj = document.getElementById(objname);
  42.         obj.style.display = "none";
  43. }
  44. </script>
  45. <link href='img/base.css' rel='stylesheet' type='text/css'>
  46. </head>
  47. <body leftmargin='15' topmargin='10'>
  48. <form name="form1" action="catalog_add.php" method="post">
  49.   <input type="hidden" name="dopost" value="savequick" />
  50.   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" style="BORDER-COLLAPSE: collapse">
  51.     <tr>
  52.       <td width="100%" height="20" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  53.           <tr>
  54.             <td height="30"><img height='14' src='img/book1.gif' width='20' /> <a href="catalog_main.php"><u>栏目管理</u></a> &gt;&gt; 批量增加栏目 </td>
  55.           </tr>
  56.         </table></td>
  57.     </tr>
  58.     <tr>
  59.       <td width="100%" height="1" background="img/sp_bg.gif"></td>
  60.     </tr>
  61.   </table>
  62.   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  63.     <tr>
  64.       <td height="10"></td>
  65.     </tr>
  66.     <tr>
  67.       <td height="95" align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0" style="border-bottom:1px solid #CCCCCC">
  68.           <tr>
  69.             <td colspan="2" bgcolor="#FFFFFF"><table width="84" border="0" cellpadding="0" cellspacing="0">
  70.                 <tr>
  71.                   <td width="84" height="24" align="center" background="img/itemnote1.gif">&nbsp;常规选项&nbsp;</td>
  72.                 </tr>
  73.               </table></td>
  74.           </tr>
  75.         </table>
  76.         <table width="100%" border="0"  id="needset" cellspacing="0" cellpadding="0">
  77.           <tr>
  78.             <td height="24" bgcolor="#F3F7EA"><strong>公用参数:</strong></td>
  79.             <td bgcolor="#F3F7EA"></td>
  80.           </tr>
  81.           <tr>
  82.             <td width="150" class='bline' height="26">是否支持投稿:</td>
  83.             <td class='bline'><input type='radio' name='issend' value='0' class='np' />
  84.               不支持
  85.               &nbsp;
  86.               <input type='radio' name='issend' value='1' class='np' checked='1' />
  87.               支持 </td>
  88.           </tr>
  89.           <tr>
  90.             <td class='bline' height="26">目录保存位置:</td>
  91.             <td class='bline'><input name="referpath" type="radio" id="truepath1" class="np" value="parent" checked='1' />
  92.               默认HMTL目录(
  93.               <?php
  94.            $pardir = '{cmspath}'.$cfg_arcdir;
  95.            if(!empty($typedir)) $pardir = $typedir.'/';
  96.            $pardir = ereg_replace('/{1,}','/',$pardir);
  97.            echo $pardir;
  98.            ?>
  99.               )
  100.               <input name="referpath" type="radio" id="truepath2" class="np" value="cmspath" />
  101.               CMS根目录
  102.               <input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir; ?>" />
  103.             </td>
  104.           </tr>
  105.           <tr>
  106.             <td class='bline' height="26">内容模型: &nbsp; </td>
  107.             <td class='bline'><select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)">
  108.                 <?php
  109.            foreach($channelArray as $k=>$arr)
  110.             {
  111.                 if($k==$channelid) echo "    <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n";
  112.               else  echo "    <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n";
  113.             }
  114.             ?>
  115.               </select>
  116.             </td>
  117.           </tr>
  118.           <tr>
  119.             <td class='bline' height="26">栏目列表选项:</td>
  120.             <td class='bline'><input type='radio' name='isdefault' value='1' class='np' checked='1' />
  121.               链接到默认页
  122.               <input type='radio' name='isdefault' value='0' class='np' />
  123.               链接到列表第一页
  124.               <input type='radio' name='isdefault' value='-1' class='np' />
  125.               使用动态页 </td>
  126.           </tr>
  127.           <tr>
  128.             <td class='bline' height="26">默认页的名称: </td>
  129.             <td class='bline'><input name="defaultname" type="text" value="index.html" class="pubinputs" /></td>
  130.           </tr>
  131.           <tr id='helpvar2' style='display:none'>
  132.             <td height="24" bgcolor="#F3F7EA">支持变量: </td>
  133.             <td height="24" bgcolor="#F3F7EA"> {Y}、{M}、{D} 年月日<br/>
  134.               {timestamp} INT类型的UNIX时间戳<br/>
  135.               {aid} 文章ID<br/>
  136.               {pinyin} 拼音+文章ID<br/>
  137.               {py} 拼音部首+文章ID<br/>
  138.               {typedir} 栏目目录 <br/>
  139.               {cc} 日期+ID混编后用转换为适合的字母 <br/>
  140.             </td>
  141.           </tr>
  142.           <tr>
  143.             <td height="26" class='bline'>文章命名规则:</td>
  144.             <td class='bline'><input name="namerule" type="text" id="namerule" value="{typedir}/{Y}{M}{D}/{aid}.html" size="40" class="pubinputs" />
  145.               <img src="img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar2')" /> </td>
  146.           </tr>
  147.           <tr id='helpvar3' style='display:none'>
  148.             <td height="24" bgcolor="#F3F7EA">支持变量: </td>
  149.             <td bgcolor="#F3F7EA">{page} 列表的页码</td>
  150.           </tr>
  151.           <tr>
  152.             <td height="26">列表命名规则:</td>
  153.             <td><input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" size="40" class="pubinputs" />
  154.               <img src="img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')" /></td>
  155.           </tr>
  156.           <tr>
  157.             <td height="24" bgcolor="#F3F7EA"><strong>栏目填写:</strong></td>
  158.             <td bgcolor="#F3F7EA"></td>
  159.           </tr>
  160.           <tr>
  161.             <td class='bline' colspan='2' style="padding:5px 0px 8px 0px"><table id="addQuick" width="800"  border="0" cellpadding="3" cellspacing="1" bgcolor="#D8E78F">
  162.                 <tbody>
  163.                   <tr bgcolor="#F0FBE1">
  164.                     <td width="50" height="28">排序</td>
  165.                     <td width="170">顶级栏目名称</td>
  166.                     <td width="530">子栏目(用&quot;目录名称1,目录名称2...&quot;这样表示多个栏目)</td>
  167.                     <td width="50" align="center"><input name="" type="button" value="添加" id="add" class="coolbt"></td>
  168.                   </tr>
  169.                   <tr bgcolor="#FFFFFF" height="32">
  170.                     <td class="rank"><input type="hidden" name="posttype" value="" class="pubinputs" />
  171.                       <input type="text" name="rank" id="rank" value="1" class="pubinputs" style="width:100%;" /></td>
  172.                     <td align='center'><input type="text" name="toptype" id="toptype" class="pubinputs" style="width:96%;" /></td>
  173.                     <td><input type="text" name="sontype" id="sontype" class="pubinputs" style="width:100%;" /></td>
  174.                     <td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td>
  175.                   </tr>
  176.                   <?php for($i=2;$i<=10;$i++) { ?>
  177.                   <tr bgcolor="#FFFFFF" height="32" class="repeat">
  178.                     <td class="rank"><input type="hidden" name="posttype<?php echo $i; ?>" value="<?php echo $i; ?>" />
  179.                       <input type="text" name="rank<?php echo $i; ?>" id="rank<?php echo $i; ?>" value="<?php echo $i; ?>" class="pubinputs" style="width:100%;" /></td>
  180.                     <td align='center'><input type="text" name="toptype<?php echo $i; ?>" id="toptype<?php echo $i; ?>" class="pubinputs" style="width:96%;" /></td>
  181.                     <td><input type="text" name="sontype<?php echo $i; ?>" id="sontype<?php echo $i; ?>" class="pubinputs" style="width:100%;" /></td>
  182.                     <td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td>
  183.                   </tr>
  184.                   <?php } ?>
  185.                 </tbody>
  186.               </table></td>
  187.           </tr>
  188.         </table>
  189.         <table width="98%" border="0" cellspacing="0" cellpadding="0">
  190.           <tr>
  191.             <td width="1%" height="50"></td>
  192.             <td width="99%" valign="bottom"><input name="imageField" type="image" src="img/button_ok.gif" width="60" height="22" border="0" class="np" />
  193.               &nbsp;&nbsp;&nbsp; <a href="catalog_main.php"><img src="img/button_back.gif" width="60" height="22" border="0" /></a> </td>
  194.           </tr>
  195.         </table></td>
  196.     </tr>
  197.   </table>
  198. </form>
  199. </body>
  200. </html>
  201.  
downloadcatalog_add_quick.htm Source code - Download Shandong kernel enterprise stand the source code Source code
Related Source Codes/Software:
Dede V2.2 dance music program - This system is based on DEDE5.7 sp1 production dan... 2016-11-11
Search engine v1.0 eight grams of novels - This program consists of WEB side and collection p... 2016-11-11
A thief free Jacky novel CMS, support for multiple station collection, support pseudo original SEO - A thief free Jacky novel CMS, support for multiple... 2016-11-11
Kunlun lubricating oil companies stand the source code - Just testing, free, source code is very beautiful ... 2016-11-11
Imitation of Chinese stationmaster net source dreams to 5.7 sp1 source code - Exactly the same and the Director of China network... 2016-11-11
Newscoop CMS v4.0.4 multilingual version - Newscoop is a content management system is mainly ... 2016-11-11
Ku978 navigator free send you department (with acquisition module) - Is I purchase the commercial version of this progr... 2016-11-11
Think of concise message this v1.1 - Wisdom of concise message this V1.1 main functions... 2016-11-11
nvidia-docker - Build and run Docker containers leveraging NVIDIA ... 2017-04-08
quickstart - Angular 2 QuickStart - source from the documentati... 2017-04-08
jQuery-Autocomplete - Ajax Autocomplete for jQuery allows you to easily ... 2017-04-08
Android-Best-Practices - Android best practice examples 2017-04-08
Bootstrap-Admin-Template - Metis - Free Bootstrap Admin Dashboard Template ... 2017-04-08
CocoaSPDY - SPDY for iOS and OS X 2017-04-08
parse-dashboard - A dashboard for managing your Parse apps that aren... 2017-04-08
HoloEverywhere - NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE. 2017-04-08
side-comments - [UNMAINTAINED] An interface component to give your... 2017-04-08
SVG-Morpheus - JavaScript library enabling SVG icons to morph fro... 2017-04-08

 Back to top