<dd>
<?
if (strlen($CN) == 4) {
$query=$db->query("select * from ".$LG->table("arclass")." where menunumber like '".substr($CN,0,4)."%' and level=2 order by sortnum desc,id desc limit 10");
}else{
$query=$db->query("select * from ".$LG->table("arclass")." where menunumber like '".$CN."%' and level=3 order by sortnum desc,id desc limit 10");
}
while($rs=$db->fetchrow($query)){
?>
<a href="<? echo getcurl($rs["id"]);?>"><? echo $rs["menuname"];?></a>
<? }?>
</dd>