聯(lián)系官方銷售客服
1835022288
028-61286886
插件名稱 | 建站系統(tǒng) V3.17 |
插件作者 | 迅睿官方團(tuán)隊 |
最近更新 | 2024-12-19 10:00:07 |
[高級版]針對達(dá)夢數(shù)據(jù)庫的搜索參數(shù)優(yōu)化 手機(jī)模板自動識別模式下,增加將平板端排除開關(guān) |
帝國模板里面的這段 怎么改成 迅睿的
<?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>
<?}}?>