$this->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');
if($result_code == '0000') {
echo '0000|||||';
$row_count = count($list);
if($row_count > 0) {
foreach ($list as $val) {
$idx = $val['idx'];
$p_idx = $val['p_idx'];
$s_idx = $val['s_idx'];
$comment = $val['comment'];
$reg_date = $val['reg_date'];
$content_idx = $val['content_idx'];
$content_type = $val['content_type'];
$main_img = $val['main_img'];
$title = $val['title'];
$column_name = $val['column_name'];
$like_count = $val['like_count'];
$bad_count = $val['bad_count'];
$reply_count = $val['reply_count'];
$write_id = $val['write_id'];
$comment_status = $val['comment_status'];
$comment_del_date = $val['del_date'];
$is_best = $val['is_best'];
if($column_name != '') $title = '['.$column_name.'] '.$title;
$user_comment_type = '
';
if($s_idx > 1) {
$user_comment_type = '답글';
}
$reg_date_txt = substr($reg_date, 0, 16);
switch ($content_type) {
case '1': $view_url = '/web/news/news_view/'.$content_idx; $comment_url = '/web/news/news_comment/'.$content_idx; break;
case '2': $view_url = '/web/news/column_view/'.$content_idx; $comment_url = '/web/news/column_comment/'.$content_idx; break;
case '3': $view_url = '/web/life/life_view/'.$content_idx; $comment_url = '/web/life/life_comment/'.$content_idx; break;
}
$comment_txt = $user_comment_type.' '.$comment;
if($comment_status!='1') {
$comment_txt = '
=$reg_date_txt?>