想用帝國cms做個電影電視劇網(wǎng)站,怎么樣在首頁里調(diào)用總集數(shù)呢,用帝國cms靈動標簽方法如下:
[e:loop={1,10,0,0}]
<?php
$fr=$empire->fetch1("select onlinepath from {$dbtbpre}ecms_{$class_r[$bqr[classid]][tbname]}_data_{$bqr[stb]} where id='$bqr[id]' limit 1");
$op=explode(egetzy('rn'),$fr[onlinepath]);
$zs=count($op);
?>
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> (共<?=$zs?>集)<br>
[/e:loop]