$spacesql=$empire->query("select * from phome_ecms_news where id='{$r['id']}'");
$r['smalltext']=str_replace(array("\r\n", "\r", "\n", "
", ""),"",str_replace("
","",$r['smalltext']));
$spacer=$empire->fetch($spacesql);
//$str=GetTxtFieldText($spacer['newstext']);
$str=$spacer['newstext'];
$str=stripcslashes($str);
preg_match_all('//is',$str,$imgArr);
$imgArr = array_unique($imgArr[1]);
$count_arr=count($imgArr);
$txt='';
if($count_arr>2){
$txt='高薪职业考验技术,我从零学起终成专业化妆师!
'.$r['smalltext'].'
实践活动2017-07-12 | 阅读量 492
';
}else{
$pic="/e/data/images/notimg.gif";
if($r['titlepic']==null && $imgArr[0]!=null){
$pic=$imgArr[0];
}
if($r['titlepic']!=null){
$pic=$r['titlepic'];
}
$txt='高薪职业考验技术,我从零学起终成专业化妆师!
'.$r['smalltext'].'
实践活动2017-07-12 | 阅读量 492 ';
}
$listtemp= $txt;
$spacesql=$empire->query("select * from phome_ecms_news where id='{$r['id']}'");
$r['smalltext']=str_replace(array("\r\n", "\r", "\n", "
", "
"),"",str_replace("
","",$r['smalltext']));
$spacer=$empire->fetch($spacesql);
//$str=GetTxtFieldText($spacer['newstext']);
$str=$spacer['newstext'];
$str=stripcslashes($str);
preg_match_all('//is',$str,$imgArr);
$imgArr = array_unique($imgArr[1]);
$count_arr=count($imgArr);
$txt='';
if($count_arr>2){
$txt='选择比努力更重要,学美甲圆梦想!
'.$r['smalltext'].'
实践活动2017-07-12 | 阅读量 422
';
}else{
$pic="/e/data/images/notimg.gif";
if($r['titlepic']==null && $imgArr[0]!=null){
$pic=$imgArr[0];
}
if($r['titlepic']!=null){
$pic=$r['titlepic'];
}
$txt='选择比努力更重要,学美甲圆梦想!
'.$r['smalltext'].'
实践活动2017-07-12 | 阅读量 422 ';
}
$listtemp= $txt;
$spacesql=$empire->query("select * from phome_ecms_news where id='{$r['id']}'");
$r['smalltext']=str_replace(array("\r\n", "\r", "\n", "
", "
"),"",str_replace("
","",$r['smalltext']));
$spacer=$empire->fetch($spacesql);
//$str=GetTxtFieldText($spacer['newstext']);
$str=$spacer['newstext'];
$str=stripcslashes($str);
preg_match_all('//is',$str,$imgArr);
$imgArr = array_unique($imgArr[1]);
$count_arr=count($imgArr);
$txt='';
if($count_arr>2){
$txt='转行学化妆,我现在有了高薪工作!
'.$r['smalltext'].'
实践活动2017-07-12 | 阅读量 204
';
}else{
$pic="/e/data/images/notimg.gif";
if($r['titlepic']==null && $imgArr[0]!=null){
$pic=$imgArr[0];
}
if($r['titlepic']!=null){
$pic=$r['titlepic'];
}
$txt='转行学化妆,我现在有了高薪工作!
'.$r['smalltext'].'
实践活动2017-07-12 | 阅读量 204 ';
}
$listtemp= $txt;