联系官方销售客服

1835022288

028-61286886

应用插件 版主:官方插件技术组
帝国模板里面的这段 怎么改成 迅睿的
类型:迅睿CMS 更新时间:2024-04-23 17:08:59 内容建站系统
插件 内容建站系统 V3.9
应用作者 迅睿官方团队
发布时间 2022-03-01 15:30:06
更新时间 2024-04-03 09:44:20

帝国模板里面的这段 怎么改成 迅睿的 


<?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>

<?}}?>


插件教程:https://www.xunruicms.com/doc/app-928.html