ÿØÿà 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 : |
<? include "../include/top_iframe.html"; include "_common.php"; if (!$hseq or !$hdidx) exit; // 예약정보 $data = hotel_date_option($hseq,$hdidx); ?> <div class="iframe" style="padding-left:0px;margin-left:10px;"> <!-- 본문 --> <!-- 폼 --> <form name="frm_option" id="frm_option" method="post"> <input type="hidden" name="SqlType" value="date_option_ins"> <input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>"> <input type="hidden" name="hseq" value="<?=$hseq?>"> <input type="hidden" name="hdidx" value="<?=$hdidx?>"> <input type="hidden" name="ridx" value="<?=$ridx?>"> <table border="0" cellspacing="0" cellpadding="0" class="setting_write" width="600px"> <thead> <tr> <th width="30">No.</th> <th width="30">사용</th> <th width="30"><img src="../image/btn/btn_num.gif" style="cursor:pointer;" onclick="chg_order();"></th> <th>옵션명</th> <th>원가</th> <th>판매가</th> <th width="80px"></th> </tr> </thead> <tbody> <? for($i=0 ; $i<count($data) ; $i++){ $row = $data[$i]; $num = count($data)-$i; ?> <tr align="center"> <td><?=$num?></td> <td> <span id="disp_<?=$row['seq']?>"> <img src="<?=$row['disp_yn_icon']?>" onclick="ajax_obj_loader('hotel_proc.php?SqlType=chg_date_opt_disp&hseq=<?=$row['hseq']?>&seq=<?=$row['seq']?>&disp_yn=<?=$row['disp_yn_opp']?>','disp_<?=$row['seq']?>');" style="cursor:pointer;"> </span> </td> <td> <input type="hidden" name="seq_arr[]" value="<?=$row['seq']?>"> <input type="text" name="order_num_arr[]" id="order_num_<?=$row['seq']?>" class="input_text" size="2" maxlength="2" value="<?=$row['order_num']?>"> </td> <td><input type="text" name="op_nm" id="op_nm_<?=$row['seq']?>" class="input_text" size="15" value="<?=$row['op_nm']?>" hname="옵션명" required></td> <td><input type="text" name="op_price_cost" id="op_price_cost_<?=$row['seq']?>" class="input_text" size="15" value="<?=$row['op_price_cost']?>" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10"></td> <td><input type="text" name="op_price_sell" id="op_price_sell_<?=$row['seq']?>" class="input_text" size="15" value="<?=$row['op_price_sell']?>" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10"></td> <td> <input type="button" name="" value="수정" class="btn_green_left" onclick="chk_edit_frm('<?=$row['seq']?>')"><span class="btn_green_right"></span> <input type="button" name="" value="삭제" class="btn_red_left" style="cursor:pointer;" onclick="if(!confirm('정말삭제하시겠습니까?'))return;ajax_loader('hotel_proc.php?SqlType=date_option_del&hseq=<?=$hseq?>&seq=<?=$row['seq']?>');"><span class="btn_red_right"></span> </td> </tr> <?}?> <tr align="center"> <td colspan="3"></td> <td><input type="text" name="op_nm" class="input_text" size="15" value="" hname="옵션명" required></td> <td><input type="text" name="op_price_cost" class="input_text" size="15" value="" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10" hname="원가" required></td> <td><input type="text" name="op_price_sell" class="input_text" size="15" value="" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10" hname="판매가" required></td> <td><input class="btn_blue_left" type="button" value="저장하기" onclick="chk_frm();"><span class="btn_blue_right"></span></td> </tr> </tbody> </table> </form> <!-- /폼 --> <!-- 폼 --> <form name="frm_option_edit" id="frm_option_edit" method="post"> <input type="hidden" name="SqlType" id="SqlType" value="date_option_updt"> <input type="hidden" name="hseq" value="<?=$hseq?>"> <input type="hidden" name="seq" value=""> <input type="hidden" name="op_nm" value=""> <input type="hidden" name="order_num" value=""> <input type="hidden" name="op_price_cost" value="" hname="원가" required> <input type="hidden" name="op_price_sell" value="" hname="판매가" required> </form> <!-- /폼 --> <script type="text/javascript"> // 저장 function chk_frm() { var f = document.frm_option; var result = to_validation(f) if( result == false ) return false; if(!confirm('저장하시겠습니까?')) return; ajax_post('ajax_proc','hotel_proc.php','frm_option'); } function chg_order() { if (!confirm('순서를 수정 하시겠습니까?')) return; $("form#frm_option input[name='SqlType']").val("date_order_opt_chg"); ajax_post("","hotel_proc.php","frm_option"); } function chk_edit_frm(seq) { var f=document.frm_option_edit; if (!confirm('수정하시겠습니까?')) return; f.seq.value = seq; f.op_nm.value = $("#op_nm_"+seq).val(); f.order_num.value = $("#order_num_"+seq).val(); f.op_price_cost.value = $("#op_price_cost_"+seq).val(); f.op_price_sell.value = $("#op_price_sell_"+seq).val(); var result = to_validation(f); if(result == false) return; ajax_post("","hotel_proc.php","frm_option_edit"); } </script> <!-- /본문 --> </div> <style type="text/css"> .setting_write tr{ height:30px;} </style> <? include "../include/footer_iframe.html"; ?>