ÿØÿà 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/toadmin/hotel_tw/ |
Upload File : |
<? /** * * * 작성일 : 20130429.허종 */ include "../include/top_proc.html"; include "_common.php"; $SqlType = "main2_write";//쓰기모드 $upload = "/FileData/hotel/";//이미지업로드경로 $upload_thum = "/FileData/hotel_thum/";//썸네일 이미지업로드경로 if($idx){ $SqlType = "main2_edit"; //수정모드 $sql = "select * from TB_HOTEL_MAIN where idx='{$idx}' "; $rs = db_query($sql); $data = db_fetch_all($rs); $row = $data[0]; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?=$cf['charset']?>" /> <link type="text/css" rel="stylesheet" href="../css/all.css?ver=2022_10_20_0" /> <script type="text/javascript"> var lang = ""; </script> <!-- jquery --> <script src="/js/jquery-1.9.1.js"></script> <!-- 공통 js --> <script type="text/javascript" src="/js/common.js"></script> <script type="text/javascript" src="/js/common.lib.js"></script> <script type="text/javascript" src="/js/Validator.js"></script> <!-- admin js --> <script type="text/javascript" src="../js/admin.lib.js"></script> <!-- 웹에디터 --> <script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script> </head> <body> <!-- ajax처리 레이어 --> <div id="ajax_proc"></div> <div class="iframe"> <!-- 본문 --> <!-- 폼 --> <form name="frm_write" id="frm_write" method="post" enctype="multipart/form-data"> <input type="hidden" name="SqlType" value="<?=$SqlType?>"> <input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>"><!-- 레이어ID --> <input type="hidden" name="idx" value="<?=$idx?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr> <th width="60" scope="row">제목</th> <td class="top_line"><input type="text" name="title" id="title" value="<?=$row['title']?>" size="40" class="input_text" hname="제목" required /></td> </tr> <tr> <th scope="row">URL</th> <td><input type="text" name="link_url" size="60" value="<?=$row['link_url']?>" class="input_text" style="ime-mode:inactive;" hname="URL" required /></td> </tr> <tr> <th scope="row">URL(영문)</th> <td><input type="text" name="link_url_eng" size="60" value="<?=$row['link_url_eng']?>" class="input_text" style="ime-mode:inactive;" hname="URL" required /></td> </tr> <tr> <th scope="row">URL(중문)</th> <td><input type="text" name="link_url_cn" size="60" value="<?=$row['link_url_cn']?>" class="input_text" style="ime-mode:inactive;" hname="URL" required /></td> </tr> <tr> <th width="40">이미지</th> <td class="top_line"><input type="file" name="img" id="img" value="" class="input_text" /> <?if($SqlType=="main2_edit" and $row['img']){?><input type="checkbox" name="img_del" value="Y"> 삭제<?}?></td> </tr> <?if($SqlType=="main2_edit" and $row['img']){?> <tr> <th scope="row"></th> <td><img src="<?=$upload?><?=$row['img']?>" width="300" onClick="parent.to_dialog.image(this.src);" style="cursor:pointer;"></td> </tr> <?}?> </tbody> </table> <ul class="btn_button"> <li class="btn_sky"><a href="javascript:;" onClick="check_frm();">저장</a></li> <li class="btn_red"><a href="javascript:;" onClick="delete_frm();">삭제</a></li> </ul> </form> <!-- /폼 --> <!-- /본문 --> </div> </body> </html> <script Language="javascript"> function check_frm() { var f=document.frm_write; // 폼체크 var result = to_validation(f); if (result == false) return false; if(!confirm("저장하시겠습니까?")) return false; f.action="hotel_main2_proc.php"; f.submit(); } function delete_frm() { if(!confirm("정말 삭제하시겠습니까?")) return false; parent.ajax_post("ajax_proc","hotel_main2_proc.php?SqlType=delete&idx=<?=$idx?>"); } </script>