帝国CMS模板灵动标签调用同级栏目导航,带当前栏目高亮判断代码如下:其中hover为当前栏目判断CSS高亮样式!
[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='hover';
}
?>
<a href="<?=$bqsr[classurl]?>" class="<?=$class?>"><?=$bqr[classname]?></a>
[/e:loop]