帝国排除某个栏目内容的调用代码示例:[e:loop={0,20,5,1,'id not in(4,5,6,8)','newstime DESC'}]
<a href="<?=$bqsr['titleurl']?>"><?=$bqr['title']?></a>
[/e:loop]增加id not in(4,5,6,8)条件,来排除这些栏目ID的......
loop标签调用代码示例如下:[e:loop={"select * from [!db.pre!]_enewstags order by num desc limit 30",0,24,0}]<li><a href="<?=$public_r[newsurl]?>e/tags/?tagid=<?=$bqr['tagid']?>" target="_blank"><?=$bq...
12小时发文数量统计: <?=$empire->gettotal("select count(*) as total from [!db.pre!]ecms_news where newstime>UNIX_TIMESTAMP()-24*3600")?>6小时发文数量统计: <?=$empire->gettotal("select count(*) as total f...
代码如下:[e:loop={"select classname,classpath from [!db.pre!]_enewsclass where bclassid=父栏目id order by classid ",0,24,0}]<a href="/<?=$bqr[classpath]?>"><?=$bqr[classname]?></a>[/e:loop]说明:如果调用...
在加入代码之前要在list.var中勾上使用工程代码才可以。列表页代码:$scnum=$empire->gettotal("select count(*) as total from [!db.pre!]enewsfava where id='$r[id]' and classid='$r[classid]'");$listtemp='收藏...
调用图片广告代码示例:[e:loop={"select * from phome_enewsad where classid=3 and t=0 order by adid desc limit 3",0,24}]<a href="<?=$bqr[url]?>" target="_blank" title="<?=$bqr[title]?>"><img src="<?=...