[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=0 and showclass=0 order by myorder,classid asc",0,24,0}]

<?

$class="";

if($GLOBALS[navclassid]==$bqr[classid])

$class="curr";

{

?>

<li class="<?=$class?>"><a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>" target="_self"><?=$bqr[classname]?></a></li>

<?php

}

?>

[/e:loop]