[e:loop={"select classid,classname from {$dbtbpre}enewsclass where bclassid=0 order by myorder,classid desc",0,24,0}] <?php $classurl=sys_ReturnBqClassname($bqr,9);//取得栏目地址 $class=""; if($bqr[classid]==$GLOBALS[navclassid])//当前栏目ID { $class="mafocus"; } ?> <a class="<?=$class?>" href="<?=$classurl?>" s="<?=$no?>"><?=$bqr[classname]?></a> [/e:loop]
这样也行,$class="mafocus"; 这里指定css样式
|