<span style="font-family: Arial, Helvetica, sans-serif;"><?php foreach ($all as $result){</span>
$url = home_url()."/wp-content/themes/twentythirteen/pic/".$result['pic'];
$headers = @get_headers($url);
if(strpos($headers[0],'404') )
{
$url=home_url()."/wp-content/themes/twentythirteen/pic/default.png";
}
$content=$result['detail']."<br>";
$detail = preg_replace('/<a.+?\/>/', '', $content);
date_default_timezone_set('PRC'); // 中国时区
$time=date('Y-m-d H:i:s',$result['time']);
echo "<li>
<div class='program_img'>
<a href='?page_id=222&program_id=".$result['id']."'>
<img src='".$url."' width='150' height='180'>
</a>
</div>
<div class='program_text'>
<a class='program_title' href='?page_id=222&program_id=".$result['id']."' title=' '>".$result['title']." </a>
<span class='program_time'><b>时间:</b>".$time."<br><b>概要:</b>".mb_substr($detail,0,60,'utf-8')."……</span>
</div>
</li>";
}?>