效果图:
代码:
<div class=”page_cont_menu”>
<?php
if($class_r[$GLOBALS[navclassid]][bclassid]==0){
$classid=$GLOBALS[‘navclassid’];
$classname=$class_r[$classid][classname];
}else{
$classid=$class_r[$GLOBALS[navclassid]][bclassid];
$classname=$class_r[$classid][classname];
}
?>
<?php
$sql=$empire->query(R20;select classid,sonclass,classname,islast,islist from {$dbtbpre}enewsclass where bclassid=’$classid’ and showclass=0 order by myorder,myorder asc”);
while($s=$empire->fetch($sql)){
$tclass=””;
$fr=explode(‘|’,$class_r[$GLOBALS[navclassid]][featherclass]);
$topbclassid=$fr[2]?$fr[2]:$GLOBALS[navclassid];
if($topbclassid==$s[classid]){
$tclass=’left_active’;
}
$classurl=sys_ReturnBqClassname($s,9);
echo ‘<span><a href=”‘.$classurl.’” class=”‘.$tclass.’” title=”‘.$s[classname].’”>’.$s[classname].'</a></span>’;
}
?>
</div>
评论(0)