帝国cms获取当前栏目的上级栏目父栏目导航,父级栏目导航制作,栏目结合项

2018-07-08 10:58:58 围观 :
<?
$nclassid =$GLOBALS[navclassid];//获取当前栏目ID
echo $nclassurl=$class_r[$nclassid]['classpath'];
echo $nlcassname=$class_r[$nclassid]['classname'];
echo $bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID
echo $bclassurl=$class_r[$bclassid]['classpath'];
echo $blcassname=$class_r[$bclassid]['classname'];
$bbclassid=$class_r[$bclassid][bclassid]; //获取当前上上级栏目ID
echo $bbclassurl=$class_r[$bbclassid]['classpath'];
echo $bblcassname=$class_r[$bbclassid]['classname'];
$bbbclassid=$class_r[$bbclassid][bclassid]; //获取当前上上级栏目ID
echo $bbbclassurl=$class_r[$bbbclassid]['classpath'];
echo $bbblcassname=$class_r[$bbbclassid]['classname'];
$islast=$empire->fetch1("select * from {$dbtbpre}enewsclass where classid='$nclassid'"); //判断当前栏目是否是终极栏目
if($islast[islast]==1){
?>
          <li>
<a href="<?=$public_r[newsurl].$bbbclassurl?>/" class="<?=$GLOBALS[navclassid]==$bbbclassurl ?'on':''?>">不限</a>
[e:loop={"select classimg,classid,classname,classpath from phome_enewsclass where bclassid=$bbbclassid order by myorder,classid asc limit 12",0,24,0}]
<?php
$titleclass='';
if($bqr[classid]==$bbclassid)
{
$titleclass='on';
}
?>
<a href="<?=$bqr[classpath]?>" class="<?=$titleclass?>"><?=$bqr[classname]?></a>
[/e:loop]
          </li>
    匿名评论
  • 评论
人参与,条评论

相关文章

    无相关信息
网站分类