最新消息:本站所有跳转向bbs.ykit.cn的附件将全面停止,附件已转移到https://www.qingsj.com

帝国CMS灵动标签获取当前栏目链接与当前栏目同级的所有栏目名称

帝国CMS 有客 2403浏览
<?php

  $islast=$class_r[$GLOBALS[navclassid]][islast];
  $bclassid=$class_r[$GLOBALS[navclassid]][bclassid];

?>
         
          <div style="float:left; padding-left:15px; text-align:left;">
             <ul style="list-style-type:none;">
             <?php
   if($islast==1 and $bclassid==0)
   {
   ?>
               [e:loop={"select * from phome_ecms_news  where classid='".$GLOBALS[navclassid]."'",20,24,1}]
               <li style="list-style-type:none;">·&nbsp;<a href="<?=$bqsr[titleurl]?>"><?=esub($bqr[title],18)?></a></li>
               [/e:loop]
               <?php
   }
   else if($islast==1 and $bclassid!=0)
   {
   ?>
               [e:loop={"select * from phome_enewsclass where  bclassid='".$bclassid."'",24,24,1}]
              <li style="list-style-type:none;">·&nbsp;<a href="[!--news.url--]<?=esub($bqr[classpath],200)?>"><?=esub($bqr[classname],18)?></a></li>
               [/e:loop]
    <?php
    }
    else
    {
    ?>         [e:loop={"select * from phome_enewsclass where bclassid='".$GLOBALS[navclassid]."'",24,24,1}]
              <li style="list-style-type:none;">·&nbsp;<a href="[!--news.url--]<?=esub($bqr[classpath],200)?>" ><?=esub($bqr[classname],18)?></a></li>
               [/e:loop]
    <?php
    }
    ?>
             </ul>
          </div>

转载请注明:有客帮 » 帝国CMS灵动标签获取当前栏目链接与当前栏目同级的所有栏目名称