if(strstr($r['titlepic'], "http://")){$xwtitlepic=$r['titlepic'];}else{$xwtitlepic=$public_r[add_kongbai].$r['titlepic'];}
$biaoti=esub($r[title],48);
$jianjie=esub($r[smalltext],110);
$jianjie2=esub($r[smalltext],150);
if($r['befrom']=="") { $laiyuan=$public_r['add_www_moban5_cn_name'];}else{$laiyuan=$r[befrom];}
$tsql=$empire->query("select * from www_moban5_cn_ecms_news_data_1 where id=".$r[id]);
while($tr=$empire->fetch($tsql)){$neirong=$tr['newstext'];}
$num=substr_count($neirong,"
/";
preg_match_all($pattern,$neirong,$match);
if($num==3 || $num > 3){
if(strstr(str_replace(""","",str_replace("'","",$match[1][0])), "http://")){$tu1=str_replace(""","",str_replace("'","",$match[1][0]));}else{$tu1=$public_r[add_kongbai].str_replace(""","",str_replace("'","",$match[1][0]));}
if(strstr(str_replace(""","",str_replace("'","",$match[1][1])), "http://")){$tu2=str_replace(""","",str_replace("'","",$match[1][1]));}else{$tu2=$public_r[add_kongbai].str_replace(""","",str_replace("'","",$match[1][1]));}
if(strstr(str_replace(""","",str_replace("'","",$match[1][2])), "http://")){$tu3=str_replace(""","",str_replace("'","",$match[1][2]));}else{$tu3=$public_r[add_kongbai].str_replace(""","",str_replace("'","",$match[1][2]));}
$wu="
";}else{
if($r[titlepic]==''){ $wu="
";}else{$wu="
";}
}
$listtemp=$wu;