不懂的地方具体参考这篇文章:https://www.4s5.cn/archives/52.html
<?php
if($class_r[$GLOBALS[navclassid]][bclassid]==0){
$classid=$GLOBALS['navclassid'];
}else{
$classid=$class_r[$GLOBALS[navclassid]][bclassid];
}
$sql=$empire->query("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)){
$classurl=sys_ReturnBqClassname($s,9);
$tclass="";
if($GLOBALS['navclassid']==$s[classid]){
$tclass='cc';
}
echo '<dd class="'.$tclass.'" ><a href="'.$classurl.'">'.$s[classname].'</a></dd>';
}
?>
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容