<?php $sql=$empire->query("select classid,classname,islast from {$dbtbpre}enewsclass where bclassid='$bclassid' and showclass=0 and wburl=''".$add." order by myorder,classid"); while($r=$empire->fetch($sql)) { $classurl="list.php?classid=".$r[classid]."&style=".$wapstyle."&bclassid=".$bclassid; $indexurl="index.php?style=".$wapstyle."&bclassid=".$r[classid]; if($r['islast']) { $showsonclass=""; } else { $showsonclass="<small>(<a href=\"$indexurl\">下级栏目</a>)</small>"; } ?> <a href="<?=$classurl?>"><?=$r['classname']?></a><?=$showsonclass?><br /> <?php } ?>
wap模板里的这个如何同时输出全部子栏目?
|