网站分为3级,在列表页获取当前栏目列表,并高亮!
一级栏目很简单就不说了。
二级栏目:
<?php $classurl=sys_ReturnBqClassname($bqr,9);//取得栏目地址 $fcr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]); $topbclassid=$fcr[1]?$fcr[1]:$GLOBALS[navclassid];//取得当前栏目的一级栏目ID ?> [e:loop={"select classid,classname from {$dbtbpre}enewsclass where bclassid=".$topbclassid." order by myorder,classid desc",0,24,0}] <?php $class=""; if($bqr[classid]==$class_r[$GLOBALS[navclassid]][bclassid]) { $class='vlt-subsection-active am-radius'; } ?> <a href="<?=$classurl?>" class="<?=$class?>"><?=$bqr[classname]?></a>
孙栏目:
[e:loop={"select classname,classpath,classid from phome_enewsclass where bclassid='".$class_r[$GLOBALS[navclassid]][bclassid]."' and showclass=0 order by classid ",0,24,0}] <?php $class=""; if($bqr[classid]==$GLOBALS[navclassid]) { $class='vlt-subsection-active am-radius'; } ?> <a href="<?=$classurl?>" class="<?=$class?>"><?=$bqr[classname]?></a>
|