联系官方销售客服
1835022288
028-61286886
插件 | 建站系统 V3.16 |
应用作者 | 迅睿官方团队 |
发布时间 | 2022-03-01 15:30:06 |
更新时间 | 2024-11-11 14:53:11 |
帝国模板里面的这段 怎么改成 迅睿的
<?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>
<?}}?>