日期:2014-05-17 浏览次数:20453 次
$result_data=array();
foreach($results as $v){
$num=preg_match_all("/<fieldset/",$v['content1'],$tmp);
if($num>5){
$v['content1']=preg_replace("/(<fieldset[^<]+<legend>[^<]+<\/legend>\s*)(<fieldset[^<]+<legend>[^<]+<\/legend>\s*)(<fieldset[^<]+<legend>[^<]+<\/legend>\s*)(<fieldset[^<]+<legend>[^<]+<\/legend>\s*)(<fieldset[^<]+<legend>[^<]+<\/legend>\s*){1,}(<fieldset[^<]+<legend>[^<]+<\/legend>[^<]+)(<\/fieldset>[^<]+)(<\/fieldset>[^<]+){1,}(<\/fieldset>[^<]+)(<\/fieldset>[^<]+)(<\/fieldset>[^<]+)(<\/fieldset>)/is","\\1\\2\\3\\4<span style=\"color:#388600;position:relative;top:8px;left:10px;\">部分楼层已被隐藏</span>\\6\\8\\9\\10\\11\\12",$v['content1']);
}
$result_data[]=$v;
}
$this ->assign('data1', $result_data);