ÿØÿà 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.html"; include "_common.php"; if($TK_MEMBER['mb_level'] == 5) $perm_str = "alert('권한이 없습니다');return;"; ?> <? if(!$BD_CD) exit; $BOARD_INFO = board_info_list('',$BD_CD); $BOARD_INFO = $BOARD_INFO[0]; if($MSEQ){ $sql_where = "where MSEQ='".$MSEQ."' "; $data = board_list($BD_CD,$sql_where); $data = $data[0]; if($BOARD_INFO[BD_WE]=='Y'){//에디터사용 $data['MCONT'] = view_smart($data['MCONT'],"editor"); }else{ $data['MCONT'] = view_smart($data['MCONT'], "text"); } $MEM_NM = $data[MEM_NM]; $MEM_EMAIL = $data[MEM_EMAIL]; $SqlType = "edit"; }else{ $SqlType = "insert"; $MEM_NM = $TK_MEMBER['mb_nm']; $MEM_EMAIL = $TK_MEMBER['mb_email']; } $href = "BD_CD=$BD_CD"; $href.= "&mode=$mode"; $href.= "&select_key=$select_key"; $href.= "&input_key=$input_key"; $param = $href."&page=$page"; ?> <script type="text/javascript"> /*window.onload = function(){ CKEDITOR.replace('MCONT', {width:'100px', height:'300px'}); }*/ function chk_cmm_form(){ var f = document.cmm_ins_form; var result = to_validation(f); if(result==false) return false; <? // 동영상 게시판일 경우 이미지/동영상 파일 체크 (20100813 ) if ($BOARD_INFO[BD_SORT] == "BDTPM04") { ?> // 동영상 게시판일 경우 이미지/동영상 파일 체크 (20100813 ) if (f.T_UserFile1) { // 리스트 이미지 if (!file_check('img', f.T_UserFile1.value, '<?=str_replace(",","|",$cf[image_ext])?>') || !f.T_UserFile1.value) { alert('이미지 첨부파일에는 이미지파일(<?=$cf[image_ext]?>)만 올릴 수 있습니다.'); f.T_UserFile1.focus(); return false; } } if (f.T_UserFile2) { // 동영상 if (!file_check('wmv', f.T_UserFile2.value, '<?=str_replace(",","|",$cf[movie_ext])?>') || !f.T_UserFile2.value) { alert('동영상 첨부파일에는 동영상파일(<?=$cf[movie_ext]?>)만 올릴 수 있습니다.'); f.T_UserFile2.focus(); return false; } } <? } ?> f.submit(); } function check_comment(){ var f = document.cmm_ins_form; if($('#CCONT').val()!=''){ //alert($('#CCONT').val()); //ajax_post('check_in','proc.php','','SqlType=comment_add&MSEQ=<?=$data[MSEQ]?>&<?=$param?>&CCONT='+$('#CCONT').val()); f.SqlType.value="comment_add"; f.submit(); }else{ alert('코멘트 내용을 입력하세요'); $('#CCONT').focus(); } } function comment_del(CSEQ){ if(!CSEQ) return; ajax_post('','proc.php','','SqlType=comment_del&MSEQ=<?=$data[MSEQ]?>&<?=$param?>&CSEQ='+CSEQ); } </script> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><?=$BOARD_INFO[BD_NM]?> <?=($MSEQ)?"수정":"등록"?></div> <div class="contents_detail"> <div class="board_wrap"> <form name="cmm_ins_form" id="cmm_ins_form" method="post" enctype="multipart/form-data" action="re_reg.php?<?=$Param?>"> <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="reply" /> <input type="hidden" name="FIXED_YN" id="FIXED_YN" value="N" /> <input type="hidden" name="MREF" value="<?=$data[MREF]?>" /> <input type="hidden" name="MSTEP" value="<?=$data[MSTEP]?>" /> <input type="hidden" name="MLEVEL" value="<?=$data[MLEVEL]?>" /> <input type="hidden" name="MEM_PWD" value="<?=$data[MEM_PWD]?>" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register" summary="게시물을 등록하실 수 있습니다."> <caption>게시물 등록</caption> <tbody> <tr> <th colspan="2" class="t_top_line"></th> </tr> <?if($BOARD_INFO[BD_TP]){//카테고리분류?> <tr> <th width="80" scope="row">분류</td> <td> <select name="MSORT_03" id="MSORT_03" class="select"> <? $arrBD_TP = explode(",", $BOARD_INFO[BD_TP]); for ( $i=0 ; $i<count($arrBD_TP) ; $i++ ) { if($arrBD_TP[$i]!=""){?> <option value="<?=$arrBD_TP[$i]?>" <?if($arrBD_TP[$i]==$data['MSORT_03']){?>SELECTED<?}?>><?=$arrBD_TP[$i]?> <?} } ?> </select> </td> </tr> <?}?> <?if($BOARD_INFO[BD_OD]=='Y'){//순서조정가능?> <tr> <th scope="row"><label for="OrderNum"><img src="../image/btn/btn_num.gif" alt="순서" /></label></th> <td><input name="OrderNum" id="OrderNum" type="Number" size="3" maxlength="3" class="input_text" value="<?=($data[OrderNum])?$data[OrderNum]:"999"?>" style='ime-mode:inactive' hname="순서" required onKeyDown="ChkNum(this,event);" /></td> </tr> <?}?> <tr> <th scope="row"><label for="MEM_NM">이름</label></th> <td><input name="MEM_NM" id="MEM_NM" type="text" size="35" class="input_text" value="<?=$MemberName?>" style='ime-mode:active' hname="이름" required /></td> </tr> <tr> <th scope="row"><label for="MEM_EMAIL">e-mail</label></th> <td><input name="MEM_EMAIL" id="MEM_EMAIL" type="text" size="35" class="input_text" value="<?=$MemberEmail?>" style='ime-mode:inactive' hname="e-mail" /></td> </tr> <tr> <th scope="row"><label for="MTITLE">제목</label></th> <td><input name="MTITLE" id="MTITLE" type="text" size="90" class="input_text" value="<?="[RE]".$data['MTITLE']?>" style='ime-mode:active' hname="제목" required /></td> </tr> <!-- 원문내용 표시 --> <tr> <th scope="row"></th> <td> <span class="style_h">----- 원문 내용 -----</span><br /> <?=$data['INSDT']?>, "<?=$data['MEM_NM']?>"님이 쓰신 글입니다.<br /> <br /> <?=$data['MCONT']?> <br /> <br /> </td> </tr> <tr> <th scope="row"><label for="MCONT">내용</label></th> <td><textarea name="MCONT" id="MCONT" <?if($BOARD_INFO[BD_WE]=='Y'){?>class="ckeditor"<?}?>></textarea></td> </tr> <?if($BOARD_INFO[BD_SC]=="Y"){?> <tr> <th scope="row"><label for="SECRET">비밀글</label></th> <td> <input class="vertical" type="checkbox" name="SECRET" id="SECRET" value="Y" <?if($data[SECRET]=="Y"){?>checked<?}?> /> <img src="../../image/board/secret.gif" align="top" /> </td> </tr> <?}?> <?if($BOARD_INFO[BD_FL]>0){//파일 for($f=1; $f<=$BOARD_INFO[BD_FL]; $f++) { $k = ($f>9)?$f:"0".$f; ?> <tr> <th scope="row"> <? // 동영상 게시판일 경우 (20100813 ) if ($BOARD_INFO[BD_SORT] == "BDTPM04") { if ($f == 1) echo "이미지"; else echo "동영상"; }else{ ?> <img src="../../image/board/bullet_disk.gif" align="top" alt="파일첨부" /> #<?=$f?> <? } ?> </th> <td> <input type="hidden" name="MFILE<?=$f?>" value="" /> <input type="file" name="T_UserFile<?=$f?>" class="input_file input_text" size="50" style="height:18px;" /> </td> </tr> <? } } ?> </tbody> </table> </form> <ul class="btn_check3"> <li class="btn01"><a href="#" onclick="<?=$perm_str?>chk_cmm_form();">답변하기</a></li> <li class="btn02"><a href="#" onclick="document.location.reload();">다시작성</a></li> <li class="btn02"><a href="index.html?<?=$param?>">목록으로</a></li> </ul> </div> <div id="check_in" style="width:100%;height:300px;"></div> </div> </div> </div> <? include "../include/footer.html" ?>