这个代码是展示所有最新信息,我想改为指定栏目信息显示,下面是源代码,那位大圣帮我改为指定多个栏目显示,谢谢 <!-- 头条下文章开始 --> <div class="qktoutiaod qk_onebox_zhong_nr2" id="toutss" > <div class="qk_jrtt_diy_there"> [e:loop={'news',5,18,0,'','newstime DESC'}] <? $cr=$empire->fetch1("select classname from {$dbtbpre}enewsclass where classid='".$bqr['classid']."' limit 1"); ?> <span > <h4>< a href="<?=$bqsr['classurl']?>" target="_blank" class="qktoutiaoe">[<?=$cr['classname']?>]</ a></h4> <h2 id="ttds55" >< a href="<?=$bqsr['titleurl']?>" title="<?=$bqr['title']?>" target="_blank" class="qktoutiaof"><?=$bqr['title']?></ a></h2> <h3 class="qktoutiaog"><?=date('m-d',$bqr[newstime])?></h3> </span> [/e:loop] </div> <!--[/diy]--> </div> <div class="qk_onebox_zhong_nr3"> <div class="qk_jrtt_diy_there"> [e:loop={'news','5,5',18,0,'','newstime DESC'}] <? $cr=$empire->fetch1("select classname from {$dbtbpre}enewsclass where classid='".$bqr['classid']."' limit 1"); ?> <span > <h4>< a href="<?=$bqsr['classurl']?>" target="_blank" class="qktoutiaoe">[<?=$cr['classname']?>]</ a></h4> <h2 id="ttds55" >< a href="<?=$bqsr['titleurl']?>" title="<?=$bqr['title']?>" target="_blank" class="qktoutiaof"><?=$bqr['title']?></ a></h2> <h3 class="qktoutiaog"><?=date('m-d',$bqr[newstime])?></h3> </span> [/e:loop] </div> <!--[/diy]--> </div> <!-- 头条下文章结束 -->
|