$ci=& get_instance(); # session $SES_MEMBER_ID = $this->session->userdata('C_Member_Id'); # 댓글 $req_data = array(); $req_data['content_type'] = $content_type; $req_data['content_idx'] = $idx; $req_data['offset'] = 0; $req_data['limit'] = 15; $req_data['sort_column'] = 'reg_date'; $req_data['sort_type'] = 'desc'; $req_data['write_id'] = $SES_MEMBER_ID; $ci->load->library('comm'); $arr_comment_result = $ci->comm->fn_comment($req_data); $comment_total_count = $arr_comment_result['comment_total_count']; $comment_my_delete_count = $arr_comment_result['comment_my_delete_count']; $arr_comment = $arr_comment_result['arr_comment']; /* echo $this->session->userdata('C_Member_Id'); var_dump($arr_comment_result); */ $ci->load->helper('cookie'); $comment_sns_id = get_cookie('crossmap_comment_sns_id'); $comment_sns_name = get_cookie('crossmap_comment_sns_name'); $comment_sns_type = get_cookie('crossmap_comment_sns_type'); $comment_list_url = ''; $main_url = ''; if($content_type == '3') { $comment_list_url = '/web/life/life_comment/'.$idx; $main_url = '/web/life/life_view/'.$idx; } else if($content_type == '2') { $comment_list_url = '/web/news/column_comment/'.$idx; $main_url = '/web/news/column_view/'.$idx; } else if($content_type == '1') { $comment_list_url = '/web/news/news_comment/'.$idx; $main_url = '/web/news/news_view/'.$idx; }else if($content_type == '4') { $comment_list_url = '/web/maptoon/comments?mtId='.$this->input->get('mtId'). '&no='. $idx; $main_url = '/web/maptoon/article?mtId='.$this->input->get('mtId'). '&no='. $idx; } $method = $this->uri->segment(3); $is_comment_all_list = 'N'; if($method == 'life_comment' || $method == 'column_comment'|| $method == 'news_comment') { $is_comment_all_list = 'Y'; } $ci=& get_instance(); $ci->load->model('web/m_member'); ?>
';
}
$write_name = $val['write_name'];
//$write_name = (mb_strlen($val['write_name']) > 10) ? iconv_substr($val['write_name'], 0, 10, "utf-8") . "***" : $val['write_name'];
$write_name = !empty($val['member_nickname']) ? $val['member_nickname'] : iconv_substr($val['member_id'], 0, 4, "utf-8") . "***";
?>
이전 페이지로 돌아가기
|
맨위로