投票插件使用及调用问题。
[e:indexloop={"select * from {$dbtbpre}enewsinfovote order by votenum desc",0,11}]
<li>
<a href="<?=$bqsr[titleurl]?>" target="_blank"><?=$bqr[title]?></a>
(<?=$indexbqr['votenum']?>)
</li>
[/e:indexloop]
内容
[e:loop={"select * from {$dbtbpre}enewsinfovote where id={$navinfor[id]} and classid={$navinfor[classid]} limit 1",0,24}]
<?print_r($bqr);?>
打印数据,然后根据标签调用数据
<?=$bqr['投票字段名']?>
//默认是这个显示的投票数量哦
<?=$bqr['votenum']?>
[/e:loop]
使用方法,
列表内容直接放进去,获取的是投票数,
$jhcr=$empire->fetch1("select * from {$dbtbpre}enewsinfovote where id={$r[id]} and classid={$r[classid]} limit 1");
然后 用$jhcr['投票表字段名'] 调用你需要的
当前目录:帝国CMS笔记
帝国cms投票插件使用及调用问题
帝国CMS笔记 2025-04-03 16:10:37