![]() |
如帝国当前栏目列表的文章数小于20条就显示全站20条最新文章标题
<?php
$w_total=$empire->fetch1("select count(*) as total from {$dbtbpre}ecms_news where classid=$navclassid"); $total=$w_total[total]; if($total<20) { ?> <ul> [e:loop={0,20,3,0}] <li><a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a></li> [/e:loop] </ul> <?php } ?> |
| All times are GMT +8. The time now is 06:06 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.