$rr=$empire->fetch1("SELECT GROUP_CONCAT(id) from phome_enewsztinfo where ztid='$r[id]'");
$ff=$rr[0];
$ga=explode(",",$ff);
for($i=0;$i<6;$i++){
if($ga[$i])
{
$cc=$empire->fetch1("select * from phome_ecms_news where id='$ga[$i]'");
$nr.='<a href="'.$cc[titleurl].'" rel="external nofollow" target="_blank"><img src="'.$cc[titlepic].'" alt="'.$cc[title].'"><p>'.$cc[title].'</p></a>';
}
}
$num=$empire->gettotal("select count(*) as total from phome_enewsztinfo where ztid='$r[id]'");
$listtemp='<li>
<div class="dtpTit"><a href="/[!--titleurl--]/" rel="external nofollow" rel="external nofollow" target="_blank">[!--title--]</a><em>共'.$num.'款</em><span>更新时间:[!--newstime--]</span></div>
<a class="info" href="/[!--titleurl--]/" rel="external nofollow" rel="external nofollow" target="_blank">
<img src="[!--titlepic--]" alt="[!--title--]">
<p>[!--smalltext--]</p>
</a>
<div class="dtpGame">
'.$nr.'
</div>
</li>';