ÿØÿà 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'; if(!isset($_SESSION['web_member'])){ //로그인 페이지 이동 //$_SERVER['REQUEST_URI']; ///page/inquiry-write.html $return_url = urlencode($_SERVER['REQUEST_URI']); echo "<script>location.href='/page/login.html?returlUrl={$return_url}'</script>"; exit; } $mode ="input"; if(isset($_GET['wr_id'])){ $wr_id = (int) $_GET['wr_id']; if($wr_id > 0){ //자신의 글인지 확인한다. $review_data = get_review_contents($wr_id); if($review_data['mb_id'] == $_SESSION['web_member']['mb_id']){ $mode = "update"; } } } $member_info = $_SESSION['web_member']; //공지사항 데이터 /*$review_data = get_review_data(); $total_page = $review_data['total_page']; $page = $review_data['page']; $list = $review_data['list']; $review_contents_data = $review_data['data']; $total_cnt = $review_data['total_cnt']; $notice_title = ""; if($_GET['notice_title']){ $notice_title = $_GET['notice_title']; }*/ //echo '<pre>'; //var_dump($_SESSION['web_member']['mb_id']); //echo '</pre>'; //exit; ?> <!DOCTYPE html> <html lang="en"> <head> <?php $page_title = "탑승후기"; include $_SERVER['DOCUMENT_ROOT'].'/include/meta_data.php'; ?> <style> /*.notice-read-wrap{height:500px}*/ .table_wrap{clear: both; float: left; width: 100%; box-shadow: 0 0 10px rgba(0,0,0,0.2); border-radius: 5px; margin-bottom:58px; } .table_wrap table{ float: none; width: 96%; margin: 30px auto; padding: 0; border-radius: unset; box-shadow: none; background: #fff; border-spacing: 1px;} .table_wrap table th{ width:100px; padding: 10px 0; text-align: left; padding-left: 10px; border-right: 1px solid #ccc;} .table_wrap table td { padding-left: 10px; } .table_wrap table td input, .table_wrap table td textarea{ border:1px solid #ccc; width:98%; padding:3px 5px; border-radius:3px } .table_wrap table td textarea{ height:300px } .table_wrap table .tr_empty_area { height: 26px; } .table_wrap table .tr_empty_area .tr_empty_line { width: 100%; background: #ccc; height: 1px; margin-top: 12px; } .note-modal{z-index:99999999} .note-modal-backdrop{display:none !important;position:unset !important;;background:none !important;;opacity:unset !important;} /* * 버튼 사이즈 조절 * 아래 코드는 여기에만 있어야함. */ @media screen and (max-width: 600px){ .notice-btn{width:80px !important;font-size:14px;line-height:45px;height:unset} footer{margin-top:0px !important;} .table_wrap table th { width: 54px !important; } } p.notice-btn{display:inline-block} </style> <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></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">홈 > 고객센터 > <b>문의하기</b></p> </div> <!--공지사항--> <section id="notice-section" class="section-padding" data-aos="fade-up" data-aos-duration="2000"> <div class="inner"> <h1 class="sub-main-tit">문의하기<div class="tit-line"></div></h1> <div class="notice-read-wrap"> <input type="hidden" id="userId" value="" /> <form method="post" action="/process/inquiry_update.php"> <input type="hidden" name="mode" value="<?=$mode?>" /> <input type="hidden" name="lang" value="<?=$lang?>" /> <?php if($mode == 'update'){ ?> <input type="hidden" name="wr_id" value="<?=$wr_id?>" /> <?php } ?> <div class="table_wrap"> <table> <tr> <th>제목</th> <td><input type="text" name="title" value="<?=(($mode == 'update') ? $review_data['wr_subject'] : '')?>" required/></td> </tr> <tr> <td class="tr_empty_area" colspan="2"> <div class="tr_empty_line"></div> </td> </tr> <tr> <th>작성자</th> <td><?=$member_info['mb_name']?></td> </tr> <tr> <td class="tr_empty_area" colspan="2"> <div class="tr_empty_line"></div> </td> </tr> <tr> <th style="vertical-align: middle">내용</th> <td> <textarea id="contents" name="contents"><?=(($mode == 'update') ? stripcslashes($review_data['wr_content']) : '')?></textarea> <script> $('#contents').summernote({ placeholder: '', tabsize: 2, height: 320, toolbar: [ ['style', ['style']], ['font', ['bold', 'underline', 'clear']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture', 'video']], ['view', ['fullscreen', 'codeview', 'help']] ], callbacks: { onImageUpload : function(files){ sendFile(files[0],this); } } }); function sendFile(file, editor){ // console.log('editor is ' + JSON.stringify(editor)); var data = new FormData(); data.append("file", file); data.append("dev", 'aaaa'); // console.log(file); $.ajax({ data : data, type : "POST", url : "/process/summer_note_fileupload.php", contentType : false, processData : false, success : function(data){ console.log(data); console.log(editor); if(data == 'noFile'){ alert('파일이 없습니다.'); return false; }else if(data == 'notAllowExe'){ alert('jpg,jpeg,png만 가능합니다.'); return false; }else if(data == 'imageUploadFailed'){ alert('이미지 업로드에 실패했습니다.'); return false; }else{ $('#contents').summernote("insertImage",data); } } }); } </script> </td> </tr> </table> </div> <div class="notice-read-button"> <input type="submit" class="notice-btn delete" value="저장" /> <a href="/page/inquiry-list.html"><p class="notice-btn toList">목록</p></a> <!-- <a href="/page/inquiry-list.html">--> <!-- <button class="notice-btn toList">목록</button>--> <!-- </a>--> <!-- <button class="notice-btn modify">수정</button>--> <!-- <button class="notice-btn delete">삭제</button>--> </div> </form> </div> </div> </section> <?php include $_SERVER['DOCUMENT_ROOT'].'/include/footer.php'; ?> </body> </html>