<!--댓글-->
<div class="reply">
    <div class="reply_tit">댓글
        <span class="blue" id="comment_count">0</span>
        <span class="delete">본인 삭제 <span>0</span>
            <a href="javascript:comment_delete_refresh('5374', '', '1');"><img
                    src="https://crossmap.co.kr/img/web/icon_refresh.gif"></a></span>

        <span class="btn-info float_right" style="padding-left:10px; padding-top:1px;"><a href="javascript:;"
                class="comment_policy_btn"><img src="https://crossmap.co.kr/img/web/icon_info.gif"></a></span>
        <span class="btn-tit float_right"><a href="javascript:;" class="comment_policy_btn"
                style="color: #bcbcbc;">댓글운영정책</a></span>
    </div>
    <div class="reply_box">
        <div class="reply_social">
            <a href="javascript:change_toggle('login_layer');" style="cursor:pointer"><span class=""><img
                        src="https://crossmap.co.kr/img/web/img_cm_off.gif"></span></a>
            <a href="javascript:twitter_join('comment')" style="cursor:pointer"><span class="tweet "><img
                        src="https://crossmap.co.kr/img/web/img_tweet_off.gif"></span></a>
            <a href="javascript:checkLoginState();" style="cursor:pointer"><span class="facebook "><img
                        src="https://crossmap.co.kr/img/web/img_facebook_off.gif"></span></a>
            <a href="javascript:kakako_login()" style="cursor:pointer"><span class=""><img
                        src="https://crossmap.co.kr/img/web/img_kakao_off.gif"></span></a>
            <a href="javascript:naver_login()" style="cursor:pointer"><span class=""><img
                        src="https://crossmap.co.kr/img/web/img_naver_off.gif"></span></a>
        </div>
        <div class="reply_write">
            <textarea class="form-control replay_text comment_text" name="comment" id="comment" rows="3" stra=""
                placeholder="댓글 작성 시 상대방에 대한 배려와 사랑을 담아주세요." style="width:100%;"></textarea>
        </div>
        <div class="reply_regist"><span class="reply_no">0/300</span><span class="reply_btn cm-comment-new"
                style="cursor: pointer">등록</span>
        </div>
    </div>

    <div class="reply_sort">
        <input type="hidden" name="comment_sort" id="comment_sort" value="1">
        <span><a href="javascript:change_comment_sort(1);" id="comment_sort1">호감순</a></span>
        <span><a href="javascript:change_comment_sort(2);" class="current" id="comment_sort2">최신순</a></span>
    </div>
    <div class="reply_contents">
        <ul class="reply_list">
            <div class="comment_box">
                <div id="comment_list">
                    <?php if(isset($comments) && count($comments)) {?>



                    <?php foreach($comments as $c) { ?>
                    <div class="reply_comment" tabindex="<?php echo $c->commentID?>">
                        <div class="r_info">

                            <span class="blue">
                                <?php echo $c->userName?>
                            </span>
                            <span class="r_date">
                                <?php echo $c->datePosted?>
                                <span style="color:#e1e2e2;padding-left:10px;"> |</span>
                                <a href="#">신고</a></span>
                        </div>
                        <div class="r_text"><?php echo $c->comment?></div>
                        <ul class="r_base">
                            <li class="btn btn-default cm-comment-reply-btn" style="color:#000000;cursor: pointer">답글
                                <span id="comment_reply_count248"><?php echo $c->replies?></span></li>
                            <li class="icons2">
                                <span class="thumbup2"><a style="cursor: pointer" class="cm-comment-like"><img
                                            src="https://crossmap.co.kr/img/web/img_thumbup.jpg"></a><span><?php echo $c->like?></span></span>
                                <span class="thumbdown2">
                                    <a style="cursor: pointer" class="cm-comment-bad"><img
                                            src="https://crossmap.co.kr/img/web/img_thumbdown.jpg"></a><span><?php echo $c->bad?></span></span>
                            </li>
                        </ul>
                    </div>
                    <?php } ?>

                    <?php } else { ?>
                    <div style="height:100px;text-align:center; line-height:100px;" class="cm-nothng-comment">등록된 댓글이
                        없습니다.</div>
                    <?php } ?>
                </div>
                <div class="viewall" id="comment_all_list" style="float:right; padding:20px 0 30px 0;">
                    <a href="/web/news/column_comment/261">전체 댓글 보기 &gt;</a></div>
        </ul>
    </div>
</div>




<!-- 대댓글 -->
<div class="reply_box2 cm-reply-s" style="display:none">
    <div style="height:100px;text-align:center; line-height:100px; " class="cm-nothng-comment">등록된 댓글이 없습니다.</div>
    <div class="reply_comment" style="display:none">
        <div class="r_info">
            <span class="blue">
                name
            </span>
            <span class="r_date">
                date
                <span style="color:#e1e2e2;padding-left:10px;"> |</span>
                <a href="#">신고</a></span>
        </div>
        <div class="r_text">comment</div>
        <ul class="r_base">
            <li class="icons2">
                <span class="thumbup2"><a style="cursor: pointer" class="cm-comment-like"><img
                            src="https://crossmap.co.kr/img/web/img_thumbup.jpg"></a><span>0</span></span>
                <span class="thumbdown2">
                    <a style="cursor: pointer" class="cm-comment-bad"><img
                            src="https://crossmap.co.kr/img/web/img_thumbdown.jpg"></a><span>0</span></span>
            </li>
        </ul>
    </div>
    <!-- div class="reply_close"><a href="#">더보기</a> <img src="https://crossmap.co.kr/img/web/img_replyopen.gif"></div-->

    <ul class="box_wrap2">
        <li class="r_img2"><img src="https://crossmap.co.kr/img/web/img_reply1.gif">
        </li>
        <li class="reply_boxWrap">
            <div class="reply_box">
                <div class="reply_social">
                    <a style="cursor:pointer"><span class=""><img
                                src="https://crossmap.co.kr/img/web/img_cm_off.gif"></span></a>
                    <a style="cursor:pointer"><span class="tweet "><img
                                src="https://crossmap.co.kr/img/web/img_tweet_off.gif"></span></a>
                    <a style="cursor:pointer"><span class="facebook "><img
                                src="https://crossmap.co.kr/img/web/img_facebook_off.gif"></span></a>
                    <a style="cursor:pointer"><span class=""><img
                                src="https://crossmap.co.kr/img/web/img_kakao_off.gif"></span></a>
                    <a style="cursor:pointer"><span class=""><img
                                src="https://crossmap.co.kr/img/web/img_naver_off.gif"></span></a>
                </div>
                <div class="reply_write">
                    <textarea class="form-control replay_text comment_text" stra="248" rows="3"
                        placeholder="댓글 작성 시 상대방에 대한 배려와 사랑을 담아주세요." style=" width: 590px;"></textarea>
                </div>
                <div class="reply_regist">
                    <span class="reply_no">0/300</span><span class="reply_btn"><a style="cursor: pointer"
                            class="reply_btn cm-comment-reply">
                            등록</a></span>
                </div>
            </div>
        </li>
    </ul>
    <div class="reply_close"><a style="cursor: pointer">댓글
            접기</a> <img src="https://crossmap.co.kr/img/web/img_replyclose.gif">
    </div>
</div>
<!--// 대댓글 -->



<div class="reply_comment cm-comment-new-s" style="display:none">
    <div class="r_info">
        <span class="blue">
            nickname
        </span>
        <span class="r_date">
            1999.1.1 02:02:02
            <span style="color:#e1e2e2;padding-left:10px;"> |</span>
            <a href="javascript:;">신고</a></span>
    </div>
    <div class="r_text">comment</div>
    <ul class="r_base">
        <li class="btn btn-default cm-comment-reply-btn" style="color:#000000;cursor: pointer">답글
            <span id="comment_reply_count248">0</span></li>
        <li class="icons2">
            <span class="thumbup2"><a style="cursor: pointer" class="cm-comment-like"><img
                        src="https://crossmap.co.kr/img/web/img_thumbup.jpg"></a><span>0</span></span>
            <span class="thumbdown2">
                <a style="cursor: pointer" class="cm-comment-bad"><img
                        src="https://crossmap.co.kr/img/web/img_thumbdown.jpg"></a><span>0</span></span>
        </li>
    </ul>
</div>