帝国导航栏目100%简单实现导航高亮效果栏目
2012-01-11 站长 站长日志
[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=0 and showclass=0 order by myorder,classid asc",0,24,0}]
<?
$class="";
if($GLOBALS[navclassid]==$bqr[classid])
$class="curr";
{
?>
<li class="<?=$class?>"><a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>" target="_self"><?=$bqr[classname]?></a></li>
<?php
}
?>
[/e:loop]