[e:loop={"select classid,classname,islast from {$dbtbpre}enewsclass where bclassid='0' and showclass=0 order by myorder,classid ASC limit 11",0,24,0}] <?php $classurl=sys_ReturnBqClassname($bqr,9);//取得栏目地址 $class="menuo"; if($GLOBALS[navclassid]) { $fcr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]); $topbclassid=$fcr[1]?$fcr[1]:$GLOBALS[navclassid];//取得当前栏目的一级栏目ID if($bqr[classid]==$topbclassid) { $class="on"; } } elseif($public_r[home]==1) { $class="menuo"; } ?> <li><a href="<?=$classurl?>" class="<?=$class?>"><span><?=$bqr[classname]?></span></a> <?PHP if(!$bqr[islast]) //判断是否终极栏目 { ?> <ul> <?php //取得栏目下的子栏目 $newsclass=$empire->query("select classid,classname from ".$dbtbpre."enewsclass where bclassid=".$bqr[classid]." order by myorder,classid desc limit 11"); while($classr=$empire->fetch($newsclass)) { $classrurl=sys_ReturnBqClassname($classr,9); //取得子栏目地址 ?> <li class="b"><a href="<?=$classrurl?>"><?=$classr[classname]?></a></li> <?php } ?> </ul> <?php } ?> </li> [/e:loop]
grok beta 模型转发php版本,测试通过
<?php // 禁用输出缓冲 while (ob_get_level()) { ob_end_clean(); } ob_implicit_fl...
添加新评论