ÿØÿà 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/admin/board/ |
Upload File : |
<? include "../include/top_proc.html"; //공통파일 인클루드 include "_common.php"; ?> <? if(!$BD_CD) exit; $BOARD_INFO = board_info_list('',$BD_CD); $BOARD_INFO = $BOARD_INFO[0]; //코멘트사용 if($BOARD_INFO['BD_CG']!='Y' || !$MSEQ){ error_msg("alert('잘못된 방법입니다.');to_dialog.close('{$tmp_layer_id}');","script"); } $sql_where = "where MSEQ='{$MSEQ}' "; $CMM = board_list($BD_CD,$sql_where); $data = $CMM[0]; //echo $MSEQ; //print_r($CMM); $href = "BD_CD=$BD_CD"; $href.= "&mode=$mode"; $href.= "&select_key=$select_key"; $href.= "&input_key=$input_key"; $param = $href."&page=$page"; ?> <script> //코멘트 function check_comment(){ var f = document.cmm_ins_form; if($('#CCONT').val()!=''){ document.getElementById('cmm_ins_comment').SqlType.value = "comment_add"; ajax_post('ajax_proc','proc.php','cmm_ins_comment',''); }else{ alert('코멘트 내용을 입력하세요'); $('#CCONT').focus(); } } function comment_del(CSEQ){ if(!CSEQ) return; ajax_post('ajax_proc','proc.php','','tmp_layer_id=<?=$tmp_layer_id?>&beforeURL=ComList.php&SqlType=comment_del&MSEQ=<?=$data[MSEQ]?>&<?=$param?>&CSEQ='+CSEQ); } </script> <div class="iframe"> <form name="cmm_ins_comment" id="cmm_ins_comment" method="post" action="proc.php"> <input type="hidden" name="param" id="param" value="<?=$param?>"> <input type="hidden" name="MSEQ" id="MSEQ" value="<?=$data[MSEQ]?>"> <input type="hidden" name="BD_CD" id="BD_CD" value="<?=$BD_CD?>"> <input type="hidden" name="SqlType" id="SqlType" value="<?=$SqlType?>"> <input type="hidden" name="beforeURL" id="beforeURL" value="ComList.php"> <input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tr> <th width="50">글제목</th> <td class="input_lo top_line"><?=$data['MTITLE']?></td> </tr> <tr> <th width="50">글내용</th> <td><?=$data['MCONT']?></td> </tr> <tr> <th width="50"><label for="CCONT">코멘트</label></th> <td> <? //print_r($data['COMT_LIST']); ?> <ul class="comment"> <? if($data['COMT_CNT']>0){ foreach($data['COMT_LIST'] as $PRow){ ?> <li> <span class="pr20 comment_date"><?=substr(str_replace("-",".",$PRow[INSDT]),2,14)?></span> <span class="comment_name"><?=$PRow[CMEM_NM]?>(<?=$PRow[CMEM_ID]?>)</span> <span class="comment_con"><?=$PRow[CCONT]?> <a href="#" onclick="comment_del('<?=$PRow[CSEQ]?>'); return false;"><img src="/admin/image/btn/btn_delete.gif" class="btn_delete"></a></span> </li> <?} }?> </ul> <div class="comment_box"> <textarea name="CCONT" id="CCONT" style="width:400px;" rows="4"></textarea> <div class="btn_comment"> <input type="button" value="코멘트 등록" class="btn_green_left" onclick="check_comment();"><span class="btn_green_right"></span> </div> </div> </td> </tr> </table> </form> </div>