ÿØÿà 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 : |
<? include "../include/top.html"; include "_common.php"; $data_codea = array();//1차코드(왼쪽메뉴) $data_codeb = array();//2차코드(중앙) $data_codea = base_codea($CodeID); //1차코드 $data_codeb = base_codeb($CodeID); //2차코드 ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">기초코드설정<span class="arrow">></span><strong><?=$data_codea['CodeName']?> [<?=$data_codea['CodeID']?>]</strong></div> <div class="contents_detail"> <div class="setting_wrap mt30"> <ul class="hotel_code"> <li> <!-- 폼 --> <form name="frm_write_codeb" id="frm_write_codeb" method="post"> <input type="hidden" name="SqlType" value="codeb_ins"> <input type="hidden" name="CodeID" value="<?=$CodeID?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_s_register" summary="기초코드를 관리하실 수 있습니다."> <caption>기초코드 관리</caption> <thead> </thead> <tbody> <tr> <th scope="row"><label for="CdName">1차 코드명</label></th> <td><input name="CdName" id="CdName" type="text" size="30" class="input_text" tabIndex="10" onKeyDown="if(event.keyCode==13){Code.focus();}" hname="1차 코드명" required /></td> </tr> <tr> <th scope="row"><label for="Code">코드(4자리)</label></th> <td><input name="Code" id="Code" type="text" size="12" class="input_text" value="" tabIndex="11" maxlength="4" style="text-align:center;ime-mode:disabled;text-transform:uppercase;" onChange="javascript:this.value=this.value.toUpperCase();" onKeyDown="if(event.keyCode==13){basecodeb_ins();}" hname="코드(3자리)" required /> <input type="button" class="Table_btn gray" value="등록" tabIndex="12" onClick="basecodeb_ins();" /> </td> </tr> </tbody> </table> </form> <!-- /폼 --> <!-- 폼 --> <form name="frm_list_b" id="frm_list_b" method="post"> <input type="hidden" name="SqlType" value=""> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list" summary="기초코드를 수정 및 삭제하실 수 있습니다."> <caption>기초코드를 관리</caption> <colgroup> <col style=" width:35px" /> <col style=" width:50px" /> <col style=" width:65px" /> <col /> <col style=" width:50px" /> <col style=" width:85px" /> </colgroup> <thead> <tr> <th scope="col">사용</th> <th scope="col"><a href="#" onClick="change_codeb_ordernum();">순서</a></th> <th scope="col">코드</th> <th scope="col">1차코드명</th> <th scope="col">분류수</th> <th scope="col">수정</th> </tr> </thead> <tbody> <? for($i=0; $i<count($data_codeb) ; $i++){ $row = $data_codeb[$i]; ?> <tr> <td> <span id="use_codeb_<?=$row['CiDX']?>"><img src="../image/btn/<?=$row['DelFlag2']?>" onClick="<?=$row['perm_edit_str']?>;ajax_obj_loader('basecode_setting_proc.php?SqlType=codeb_change_flag&CiDX=<?=$row['CiDX']?>&delflag=<?=$row['DelFlag_opp']?>','use_codeb_<?=$row['CiDX']?>');" style="cursor:pointer;" /></span> </td><!-- 사용/중지 --> <td> <input name="OrderNum_arr[]" type="text" value="<?=$row['OrderNum']?>" class="t_no" maxlength="4" style="width:23px;text-align:center;ime-mode:inactive;ime-mode:disabled" onKeyDown="ChkNum(this,event);" autocomplete='off'/> <input type="hidden" name="CiDX_arr[]" value="<?=$row['CiDX']?>"> </td><!-- 순서 --> <td><?=$row['Code']?></td><!-- 2차코드 --> <td class="t_title"> <span id="nm_codeb_<?=$row['Code']?>" class=""><a href="javascript:;" onClick="ajax_loader('basecodec_list_ajax.php?cd_a=<?=$CodeID?>&cd_b=<?=$row['Code']?>','basecodec_ajax');"><?=$row['CdName']?></a></span> </td><!-- 2차코드명 --> <td><span id="nm_cntb_<?=$row['Code']?>"><?=$row['cnt_b']?></span></td><!-- 하위 분류 개수 --> <td> <input class="Table_btn" type="button" value="수정" onClick="<?=$data_codeb[$i]['perm_edit_str']?>to_dialog.ajax('basecodeb_edit_ajax.php?cdtype=a&CiDX=<?=$row['CiDX']?>','1차 기초코드정보수정','500','400',true,true)" style="cursor:pointer;" /> <input class="Table_btn gray" type="button" value="삭제" onClick="<?=$data_codeb[$i]['perm_delete_str']?>basecodeb_delete('<?=($row['cnt_b']==0)?$row['CiDX']:"false"?>')" /> </td><!-- 수정/삭제 --> </tr> <?}?> </tbody> </table> </form> <!-- /폼 --> </li> <li class="last"> <span id="basecodec_ajax"><div style="both:clean;width:100%;text-align:center;margin-top:50px;font-weight:bold;">:: 코드를 선택해 주세요. ::</div></span> </li> </ul> </div> </div> </div> </div> <script language="javascript"> var current_codec_id;//2차 코드 클릭했을때, 기존 클릭정보 저장. //2차코드 순서조정 function change_codeb_ordernum() { var f = document.frm_list_b; f.SqlType.value='codeb_change_ordernum'; ajax_post('ajax_proc','basecode_setting_proc.php','frm_list_b'); } //2차코드 수정 function check_frm_codeb() { var f = document.frm_edit_codeb; var result = to_validation(f); if(result==false) return false; if($("form#frm_edit_codeb input[name='Code']").val().length < 3){ alert('코드는 3자리 이상입니다.'); $("form#frm_edit_codeb input[name='Code']").select(); return false; } //if(!confirm("저장하시겠습니까?")) return false; ajax_post("ajax_proc","basecode_setting_proc.php","frm_edit_codeb"); } //2차 코드 삭제 function basecodeb_delete(cidx) { if(cidx=='false') { alert('하위 코드가 있습니다.\n삭제불가합니다.'); return; } if(!confirm('정말 삭제하시겠습니까?'))return; ajax_loader('basecode_setting_proc.php?SqlType=codeb_delete&CiDX='+cidx); } //2차 코드 새로저장 function basecodeb_ins() { var f = document.frm_write_codeb; var result = to_validation(f); if(result==false) return false; if($("form#frm_write_codeb input[name='Code']").val().length < 3){ alert('코드는 3자리이상입니다.'); $("form#frm_write_codeb input[name='Code']").select(); return false; } //if(!confirm("저장하시겠습니까?")) return false; ajax_post("ajax_proc","basecode_setting_proc.php","frm_write_codeb"); } window.onload=function() { $('#CdName').select(); } </script> <? include "../include/footer.html" ?>