ÿØÿà 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 : |
<? /** * 3차코드 정보 수정 ajax * * 작성일 : 20130501.허종 */ include "../include/top_proc.html"; //공통파일 인클루드 include "_common.php"; $data = base_codec($cd_a,$cd_b,$seq); $row = $data[0]; $SqlType = "codec_edit"; //deanLog("cd_a", $cd_a, "k1"); //deanLog("cd_b", $cd_b, "k1"); ?> <div class="iframe"> <!-- 본문 --> <!-- 폼 --> <form name="frm_edit_codec" id="frm_edit_codec" method="post"> <input type="hidden" name="SqlType" value="<?=$SqlType?>"> <input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>"><!-- 레이어ID --> <input type="hidden" name="cd_a" value="<?=$cd_a?>"><!-- 1차코드 --> <input type="hidden" name="cd_b" value="<?=$cd_b?>"><!-- 2차코드 --> <input type="hidden" name="seq" value="<?=$seq?>"><!-- 시퀀스번호 --> <input type="hidden" name="cd_memo4_source" value="<?=$row['cd_memo4']?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr> <th width="100" scope="row">2차 코드명</th> <td class="top_line"><input name="cd_nm" id="cd_nm" type="text" value="<?=$row['cd_nm']?>" size="25" class="input_text" hname="2차코드명" required /> <?=$tit1?></td> </tr> <tr> <th scope="row">코드(4자리)</th> <td><input name="code" id="code" type="text" value="<?=$row['code']?>" size="12" class="input_text" maxlength="7" style="text-align:center;ime-mode:disabled;text-transform:uppercase;" onChange="javascript:this.value=this.value.toUpperCase();" hname="코드(7자리)" required /> <?=$tit2?></td> </tr> <? if (($cd_a == "PRD") && ($cd_b == "INBK")) { ?> <tr> <th scope="row">계좌번호</th> <td><input name="cd_memo" id="cd_memo" type="text" value="<?=$row['cd_memo']?>" size="25" class="input_text"/></td> </tr> <tr> <th scope="row">예금주</th> <td><input name="cd_memo2" id="cd_memo2" type="text" value="<?=$row['cd_memo2']?>" size="25" class="input_text"/></td> </tr> <tr> <th scope="row">별칭</th> <td><input name="cd_memo3" id="cd_memo3" type="text" value="<?=$row['cd_memo3']?>" size="25" class="input_text"/></td> </tr> <tr> <th scope="row">실시간사용여부</th> <td> <select name="cd_memo4"> <option value="N" <?=(($row['cd_memo4']=="N")?"selected":"")?>>미사용</option> <option value="Y" <?=(($row['cd_memo4']=="Y")?"selected":"")?>>사용</option> </select> </td> </tr> <tr> <th scope="row">은행코드</th> <td> <select name="cd_memo5"> <? $data_inbk = base_codec("ACC", "AVNK", "", "N"); foreach ($data_inbk as $k) { ?> <option value="<?=$k['code']?>" <?=(($row['cd_memo5']==$k['code'])?"selected":"")?>><?=$k['cd_nm']?></option> <? } ?> </select> </td> </tr> <tr> <th scope="row">입출금 내역<br>수신 휴대폰번호</th> <td><input name="cd_memo6" id="cd_memo6" type="text" value="<?=$row['cd_memo6']?>" size="25" class="input_text"/></td> </tr> <? } else if (in_array($cd_b, array("TSPE", "TSIE", "TSIH", "TSIC"))) { ?> <tr> <th scope="row">이미지경로(모바일)</th> <td><input name="cd_memo" id="cd_memo" type="text" value="<?=$row['cd_memo']?>" size="35" class="input_text"/> <span style="color:#F00;">*등록시 전용이미지</span></td> </tr> <? } else { ?> <tr> <th scope="row">코드참고1</th> <td><input name="cd_memo" id="cd_memo" type="text" value="<?=$row['cd_memo']?>" size="35" class="input_text"/></td> </tr> <tr> <th scope="row">코드참고2</th> <td><input name="cd_memo2" id="cd_memo2" type="text" value="<?=$row['cd_memo2']?>" size="35" class="input_text"/></td> </tr> <? } ?> <tr> <th scope="row">이미지경로</th> <td><input name="cd_img" id="cd_img" type="text" value="<?=$row['cd_img']?>" size="35" class="input_text"/></td> </tr> </tbody> </table> <br> <!-- 영어,중국어 코드명 추가 --> <!-- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tr> <th width="100" scope="row">코드명(영문)</th> <td class="top_line"><input name="cd_nm_eng" id="cd_nm" type="text" value="<?=$row['cd_nm_eng']?>" size="25" class="input_text" /></td> </tr> <tr> <th scope="row">코드명(중문)</th> <td class="top_line"><input name="cd_nm_cn" id="cd_nm" type="text" value="<?=$row['cd_nm_cn']?>" size="25" class="input_text" /></td> </tr> </table>--> <div class="btn_wrap_C mt15"> <a class="Bbtn red" onclick="check_frm_codec();" href="javascript:;">저장</a> </div> </form> <!-- /폼 --> <!-- /본문 --> </div> <script Language="Javascript"> function check_frm_codec() { var f = document.frm_edit_codec; var result = to_validation(f); if(result==false) return false; if(!$("form#frm_edit_codec input[name='code']").val()){ alert('코드를 입력해 주세요.'); $("form#frm_edit_codec input[name='code']").select(); return false; } if(!confirm("수정하시겠습니까?")) return false; ajax_post("ajax_proc","basecode_setting_proc.php","frm_edit_codec"); } </script>