帝国cms指定调用多少条
[e:loop={18,3,0,0}]
<li>
<a href="<?=$bqsr[titleurl]?>" target="_blank"><?=$bqr[title]?></a>
(<?=date('Y-m-d',$bqr[newstime])?>)
</li>
[/e:loop]
18:父栏目ID
3: 调用条数
0:操作类型
0:只显示无标题图片
具体如下:
[e:loop={栏目ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序}]
================================================
调用父栏目下的所有
[e:loop={'SELECT * FROM phome_ecms_news where classid in (select classid from phome_enewsclass where bclassid = 18)',0,24,0}]
<?=$bqr[title]?><br />
[/e:loop]