用帝国cms的扩展变量,是为了方便用户修改

<?php

$tjclassid=ReturnPublicAddVar('tuijian'); //取得栏目id,系统,扩展变量

?>

[e:loop={"select * from [!db.pre!]ecms_news where id in ($tjclassid) order by id desc ",0,24,0}]

<li> <i class="ztpic"><a href="<?=$bqsr['titleurl']?>" target="_blank"><img src="<?=$bqr['titlepic']?>"></a></i> <b><?=$bqr['title']?></b><span><?=$bqr['smalltext']?></span><a href="<?=$bqsr['titleurl']?>" target="_blank" class="readmore">文章阅读</a> </li>

[/e:loop]