<?php $v= mb_substr($navinfor[title],0,5,'UTF-8'); $id=$navinfor[id];?>
<?php
$ecms_bq_sql = sys_ReturnEcmsLoopBq("select * from phome_ecms_article where (title litarget="_blank">ke '%$v%') and id<>$id order by newstime desc limit 8", 10, 24, 0);
$bqno = 0;
$hasOutput = false;
while($bqr = $empire->fetch($ecms_bq_sql))
{
$bqsr = sys_ReturnEcmsLoopStext($bqr);
$bqno++;
if(empty($bqr['title']) && $hasOutput) {
continue;
}
?>
<li>
<a href="<?=$bqr['titleurl']?>" target="_blank" title="<?=$bqr['title']?>">
<img src="<?=$bqr[titlepic]?$bqr[titlepic]:'/e/data/images/notimg.gif'?>" alt="<?=$bqr['title']?>">
<p><?=$bqr['title']?></p>
</a>
</li>
<?php
if(!empty($bqr['title'])) {
$hasOutput = true;
}
}
?>
<?php
if(!$hasOutput) {
$ecms_bq_sql = sys_ReturnEcmsLoopBq("select * from phome_ecms_article where id<>$id order by newstime desc limit 8", 10, 24, 0);
$bqno = 0;
while($bqr = $empire->fetch($ecms_bq_sql))
{
$bqsr = sys_ReturnEcmsLoopStext($bqr);
$bqno++;
?>
<li>
<a href="<?=$bqr['titleurl']?>" target="_blank" title="<?=$bqr['title']?>">
<img src="<?=$bqr[titlepic]?$bqr[titlepic]:'/e/data/images/notimg.gif'?>" alt="<?=$bqr['title']?>">
<p><?=$bqr['title']?></p>
</a>
</li>
<?php
}
}
?>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)