原文来自:https://liye5.com/

内容摘要

帝国cms栏目页随机调用栏目内容

文章正文

简介:帝国cms栏目页随机调用栏目内容

1.调用当前栏目下的内容

[e:loop={"select * from [!db.pre!]ecms_news where classid='$GLOBALS[navclassid]' order by rand() desc limit 12",12,24,0,'','newstime DESC'}]
<li><a target="_blank" href="<?=$bqsr['titleurl']?>"> <?=$bqr['title']?> </a></li>
[/e:loop]