ÿØÿà 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.html"; include "_common.php"; // 호텔정보 $hotel_data = hotel_list(" and hseq='{$hseq}' "); $row_hotel = hotel_list_replace($hotel_data[0]); // 룸옵션 $data = hotel_option($hseq); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><?=$row_hotel['hotel_nm']?><span class="arrow">></span><strong>옵션 관리</strong></div> <div class="contents_detail"> <div id="Content_box"> <!-- 본문 --> <? include "_menu.html"; ?> <!-- 폼 --> <form name="frm_option" id="frm_option" method="post"> <input type="hidden" name="SqlType" id="SqlType" value="option_ins"> <input type="hidden" name="hseq" value="<?=$hseq?>"> <table border="0" cellspacing="0" cellpadding="0" class="t_list mt25" width="100%"> <thead> <tr> <th width="40">No.</th> <th width="40">사용</th> <th width="50"><a href="#" onclick="chg_order();">순서</a></th> <th>옵션명</th> <th>원가</th> <th>판매가</th> <th style="display:none;">대리점판매가</th> <th width="80"></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['opid']?>"> <img src="<?=$row['disp_yn_icon']?>" onclick="ajax_obj_loader('hotel_proc.php?SqlType=chg_opt_disp&hseq=<?=$row['hseq']?>&opid=<?=$row['opid']?>&disp_yn=<?=$row['disp_yn_opp']?>','disp_<?=$row['opid']?>');" style="cursor:pointer;"> </span> </td> <td> <input type="hidden" name="opid_arr[]" value="<?=$row['opid']?>"> <input type="text" name="order_num_arr[]" id="order_num_<?=$row['opid']?>" class="input_text" size="3" maxlength="3" value="<?=$row['order_num']?>"> </td> <td><input type="text" name="op_nm" id="op_nm_<?=$row['opid']?>" class="input_text pl10" style="width:70%;" value="<?=$row['op_nm']?>" hname="옵션명" required></td> <td><input type="text" name="op_price_cost" id="op_price_cost_<?=$row['opid']?>" class="input_text pl10" style="width:50%;" value="<?=$row['op_price_cost']?>" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10"><?=$row_hotel['ext_nm']?></td> <td><input type="text" name="op_price_sell" id="op_price_sell_<?=$row['opid']?>" class="input_text pl10" style="width:50%;" value="<?=$row['op_price_sell']?>" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10"><?=$row_hotel['ext_nm']?></td> <td style="display:none;"><input type="text" name="op_price_agent" id="op_price_agent_<?=$row['opid']?>" class="input_text pl10" style="width:50%;" value="<?=$row['op_price_agent']?>" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10"><?=$row_hotel['ext_nm']?></td> <td> <input type="button" name="" value="수정" class="Table_btn" onclick="chk_edit_frm('<?=$row['opid']?>')"> <input type="button" name="" value="삭제" class="Table_btn gray" style="cursor:pointer;" onclick="if(!confirm('정말삭제하시겠습니까?'))return;ajax_loader('hotel_proc.php?SqlType=option_del&hseq=<?=$hseq?>&opid=<?=$row['opid']?>');"> </td> </tr> <?}?> <tr class="bg_gray"> <td colspan="3"></td> <td><input type="text" name="op_nm" class="input_text pl10" style="width:70%;" value="" hname="옵션명" required></td> <td><input type="text" name="op_price_cost" class="input_text pl10" style="width:50%;" value="" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10" hname="원가" required><?=$row_hotel['ext_nm']?></td> <td><input type="text" name="op_price_sell" class="input_text pl10" style="width:50%;" value="" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10" hname="판매가" required><?=$row_hotel['ext_nm']?></td> <td style="display:none;"><input type="text" name="op_price_agent" class="input_text pl10" style="width:50%;" value="" style="text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="10" ><?=$row_hotel['ext_nm']?></td> <td><input class="Table_btn red2" type="button" value="저장하기" onclick="chk_frm();"></td> </tr> </tbody> </table> </form> <!-- /폼 --> </div> <!-- /본문 --> </div> </div> </div> </div> <!-- 폼 --> <form name="frm_option_edit" id="frm_option_edit" method="post"> <input type="hidden" name="SqlType" id="SqlType" value="option_updt"> <input type="hidden" name="hseq" value="<?=$hseq?>"> <input type="hidden" name="opid" 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> <input type="hidden" name="op_price_agent" value=""> </form> <!-- /폼 --> <script type="text/javascript"> function chk_frm() { var f=document.frm_option; var result = to_validation(f); if(result == false) return; if (!confirm('저장하시겠습니까?')) return; ajax_post("","hotel_proc.php","frm_option"); } function chg_order() { if (!confirm('순서를 수정 하시겠습니까?')) return; $("#SqlType").val("order_opt_chg"); ajax_post("","hotel_proc.php","frm_option"); } function chk_edit_frm(opid) { var f=document.frm_option_edit; if (!confirm('수정하시겠습니까?')) return; f.opid.value = opid; f.op_nm.value = $("#op_nm_"+opid).val(); f.order_num.value = $("#order_num_"+opid).val(); f.op_price_cost.value = $("#op_price_cost_"+opid).val(); f.op_price_sell.value = $("#op_price_sell_"+opid).val(); f.op_price_agent.value = $("#op_price_agent_"+opid).val(); //f.op_price_agent.value = $("#op_price_agent_"+opid).val(); var result = to_validation(f); if(result == false) return; ajax_post("","hotel_proc.php","frm_option_edit"); } </script> <? include "../include/footer.html"; ?>