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'); $ci=& get_instance(); $ci->load->model('web/m_member'); if($result_code == '0000') { echo '0000|||||'; if(count($arr_comment) == 0) { echo '
등록된 댓글이 없습니다.
'; } else{ if($comment_sns_id == '') { $reply_css2 = 'replay_text'; } else { $reply_css2 = ''; } $i=1; foreach($arr_comment as $val) { $content_type = $val['content_type']; $comment_status = $val['comment_status']; $comment_del_date = $val['del_date']; $comment_reg_date = $val['reg_date']; $c_sns_name = $val['sns_name']; $comment = $val['comment']; $is_best = $val['is_best']; $write_id = $val['write_id']; $comment_reg_date = substr($comment_reg_date, 0, 10); $comment_main_style = ''; if($i == count($arr_comment) && $is_comment_all_list == 'Y') { $comment_main_style= 'style="border-bottom:0 !important"'; } $comment_txt = $comment; if($comment_status!='1') { $comment_txt = '
'.$comment.'
'.$comment_del_date.'
'; } if($is_best=='Y') $comment_txt = ''.$comment_txt; $arr_member = $ci->m_member->member_where_member_id_select($write_id); $member_img = '/img/web/img_profile_l.png'; if(isset($arr_member['member_img'])==true) $member_img = $arr_member['member_img']; $name_header = '  '; if($c_sns_name !='cm') { $name_header = '  '; } //$write_name = $val['write_name']; $write_name = !empty($val['member_nickname']) ? $val['member_nickname'] : iconv_substr($val['member_id'], 0, 4, "utf-8") . "***"; ?>
>
| 신고 | 삭제
5) { $comment_sns_name = mb_strcut($comment_sns_name, 0, 9, 'UTF-8')."**"; } } $comment_sns_javascript1 = "logout_advice()"; $comment_sns_javascript2 = "logout_advice()"; $comment_sns_javascript3 = "logout_advice()"; $comment_sns_javascript4 = "logout_advice()"; $comment_sns_javascript5 = "logout_advice()"; //$comment_sns_cursor1 = "default"; $comment_sns_cursor2 = "default"; $comment_sns_cursor3 = "default"; $comment_sns_cursor4 = "default"; $comment_sns_cursor5 = "default"; switch ($comment_sns_type) { case 'cm': $comment_sns_img1 = '/img/web/img_cm_on.gif'; $comment_sns_class1 = 'fl'; $nameText1="".$comment_sns_name." 로그아웃"; break; case 'twitter': $comment_sns_img2 = '/img/web/img_tweet.gif'; $comment_sns_class2 = 'fl'; $nameText2="".$comment_sns_name." 로그아웃"; break; case 'facebook': $comment_sns_img3 = '/img/web/img_facebook_on.gif'; $comment_sns_class3 = 'fl'; $nameText3="".$comment_sns_name." 로그아웃"; break; case 'kakao': $comment_sns_img4 = '/img/web/img_kakao_on.gif'; $comment_sns_class4 = 'fl'; $nameText4="".$comment_sns_name." 로그아웃"; break; case 'naver': $comment_sns_img5 = '/img/web/img_naver_on.gif'; $comment_sns_class5 = 'fl'; $nameText5="".$comment_sns_name." 로그아웃"; break; } } else { $comment_sns_class1 = '';$comment_sns_class2 = '';$comment_sns_class3 = '';$comment_sns_class4 = '';$comment_sns_class5 = ''; } ?>