ÿØÿà 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/setting/ |
Upload File : |
<? /** * 이미지(파일)등록 * * 작성일 : 20130731.허종 */ include "../include/top_proc.html"; include "_common.php"; $table = "TB_UPFILE"; $SqlType = "upfile_write";//쓰기모드 if($seq){ $SqlType = "upfile_edit"; //수정모드 $sql = "select * from {$table} where seq='{$seq}' "; $row = db_fetch($sql); } ?> <!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> </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="seq" value="<?=$seq?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr> <th>이미지</th> <td class="top_line"><?if($SqlType=="upfile_write"){?><input type="file" name="upfile" id="upfile" value="<?=$row['upfile']?>" class="input_text" hname="이미지(파일)" required ><?}?><?=$row['upfile_org']?> </td> </tr> <tr> <th>메모</th> <td><input type="text" name="memo" id="memo" value="<?=$row['memo']?>" size="50" class="input_text" maxlength="50"></td> </tr> </tbody> </table> <ul class="btn_button"> <li class="btn_sky"><a href="javascript:;" onClick="check_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 = "uploadfile_proc.php"; f.submit(); } </script>