<?php $bclassid=$GLOBALS[navclassid]; //获取当前栏目CLSSID ?> [e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='$bclassid' order by myorder asc",10,24,0}] <div class=""><?=$bqr[classname]?></div> <?php $emsql = $empire->query("select id,classid,title,smalltext,titleurl from {$dbtbpre}ecms_news where classid='$bqr[classid]' order by classid asc limit 6"); while($bqm=$empire->fetch($emsql)) { ?> <a href="<?=$bqm[titleurl]?>"><?=esub($bqm[title],56)?></a> <?php } ?> [/e:loop]