聯系官方銷售客服
1835022288
028-61286886
插件名稱 | 建站系統 V3.19 |
插件作者 | 迅睿官方團隊 |
最近更新 | 2025-04-24 15:41:23 |
[高級版]內容聚合欄目,增加滾動條效果 [高級版]module標簽優化catid查詢條件效率 修復多網站時偶爾存在其他站點緩存丟失的情況 |
帝國模板里面的這段 怎么改成 迅睿的
<?php
$sql=$empire->query("select * from {$dbtbpre}ecms_bushou where bhua<='$navinfor[title]' order by newstime");
while($r=$empire->fetch($sql)){
$num=$empire->gettotal("select count(*) as total from {$dbtbpre}ecms_zidian where bushou='$r[title]' and zbihua='$navinfor[title]'");
if(!empty($num)){
?>
//////////////////////////////////////////////////////////
<?php
$sqls=$empire->query("select * from {$dbtbpre}ecms_zidian where bushou='$r[title]' and zbihua='$navinfor[title]' order by newstime limit $num");
while($rs=$empire->fetch($sqls)){
if(strpos($rs[duying],' ') !== false){
$strdy=substr($rs[duying],0,strpos($rs[duying], ' '));
}else{
$strdy=$rs[duying];
}
echo '<li><a href="'.$rs[titleurl].'" title="'.$rs[title].'"><span>'.$strdy.'</span>'.$rs[title].'</a></li>';
}
?>
</ul>
<?}}?>