$category_name = $arr_category['category_name'];
$category_code1 = $arr_category1['category_code'];
$category_name1 = $arr_category1['category_name'];
$category_code2 = ''; $category_name2 = '';
if(isset($arr_category2['category_code'])==true) {
$category_code2 = $arr_category2['category_code'];
$category_name2 = $arr_category2['category_name'];
}
$category_code3 = ''; $category_name3 = '';
if(isset($arr_category3['category_code'])==true) {
$category_code3 = $arr_category3['category_code'];
$category_name3 = $arr_category3['category_name'];
}
$category_txt = $category_name1;
if($category_name2!='') $category_txt.= '
'.$category_name2;
if($category_name3!='') $category_txt.= '
'.$category_name3;
?>
=$category_name?>
=$category_txt?>
style="margin-right:10px;width: 60px;float: left;">최신순
style="float: left;width: 60px;">인기순
foreach ($list as $val) {
$press_homepage = $val['press_homepage'];
$comment_count = $val['comment_count'];
$comment_count_txt = $comment_count;
if($comment_count > 9) {
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
$comment_count_txt = (floor($comment_count/$calc_count)) * $calc_count;
$comment_count_txt = $comment_count_txt.'+';
}
$display_date = $val['display_date'];
$display_date_txt = substr($display_date, 0, 10);
$display_date_txt = str_replace('-', '.', $display_date_txt);
$title_txt = mb_strimwidth($val['title'], '0', '40', '..', 'utf-8');
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
$content = strip_tags($content);
$content_txt = mb_strimwidth($content, '0', '250', '..', 'utf-8');
?>
}?>
if($pagination !='') {?>
=$pagination?>
}?>
include_once ('news_main_content_inc.php');?>
include_once ('news_right_inc.php');?>