[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);//取得栏目地址
if($bqr[classid]==1) $classurl='';
?>
<a href="<?=$classurl?>"><?=$bqr[classname]?></a>
[/e:loop]
if($bqr[classid]==1) $classurl=”;