뉴스 =number_format($start_row)?>-=number_format($end_row)?> | =number_format($total_count)?>건
if(@$_GET['content_idx']):
$tmp = $_SERVER['REQUEST_URI'];
$uri = explode("?",$tmp);
$uri_org = $uri[0];
$uri = explode("&",$uri[1]);
$key = array();
$value = array();
foreach($uri as $data){
$kv = explode("=",$data);
if($kv[0] != "content_idx"){
$key[] = $kv[0];
$value[] = $kv[1];
}
}
$str = array();
foreach($key as $i => $data){
$str[] = $data."=".$value[$i];
}
$str = implode("&",$str);
$uri_org .= "?".$str;
?>
검색어 뉴스 전체 검색결과 보기
$i=1;
foreach ($list as $key=>$val) {
$title = $val['title'];
$content = strip_tags($val['content']);
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
$content_txt = mb_strimwidth($content, '0', '180', '..', 'utf-8');
$display_date_txt = gf_article_date_text($val['display_date']);
foreach($arr_search_keyword as $val3) {
$title_txt = str_replace($val3, '
'.$val3.'', $title_txt);
$content_txt = str_replace($val3, '
'.$val3.'', $content_txt);
}
$share_title = str_replace("'", "\\'", $val['title']);
$share_title = str_replace('"', '\\"', $share_title);
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
$share_content = htmlspecialchars($share_content);
$share_content = str_replace("'", "\\'", $share_content);
$share_content = str_replace('”', '"', $share_content);
$main_img = $val['main_img'];
$press_txt = $val['press_name'];
if($val['press_homepage']!='') {
$press_txt = '
'.$val['press_name'].'';
}
$view_url = '/m/news/news_view/'.$val['idx'];
$share_id_name ="news_".$val['idx'];
?>
=$press_txt?>
=$display_date_txt?>
크로스맵뉴스
">
if(isset($arr_news_relation_article[$val['idx']])==true) {
if(count($arr_news_relation_article[$val['idx']]) > 0 ) {?>
}
}
?>
}?>
=$pagination?>