ÿØÿà 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/good_en/ |
Upload File : |
<? include "../include/top.html"; include "_common.php"; // 상품정보 $data_good = good_list(" and g_uid='{$g_uid}' "); $row_good = good_list_replace($data_good[0]); $data = good_option($g_uid); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><?=$row_good['g_title']?><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="g_uid" value="<?=$g_uid?>"> <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 width="80">-</th> </tr> </thead> <tbody> <? for($i=0 ; $i<count($data) ; $i++){ $row = $data[$i]; $num = count($data)-$i; ?> <tr> <td><?=$num?></td> <td> <span id="disp_<?=$row['opid']?>"> <img src="<?=$row['disp_yn_icon']?>" onclick="ajax_obj_loader('good_options_proc.html?SqlType=chg_disp&g_uid=<?=$row['g_uid']?>&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_sell" id="op_price_sell_<?=$row['opid']?>" class="input_text pr10" value="<?=$row['op_price_sell']?>" style="width:50%; text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)"><?=$row_good['ext_nm']?></td> <!-- <td><input type="text" name="op_price_agent" id="op_price_agent_<?=$row['opid']?>" class="input_text pr10" value="<?=$row['op_price_agent']?>" style="width:50%;text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)"><?=$row_good['ext_nm']?></td>--> <td> <input class="Table_btn" type="button" value="수정" onclick="chk_edit_frm('<?=$row['opid']?>')" /> <input class="Table_btn gray" type="button" value="삭제" onclick="if(!confirm('정말삭제하시겠습니까?'))return;ajax_loader('good_options_proc.html?SqlType=option_del&g_uid=<?=$g_uid?>&opid=<?=$row['opid']?>');" /> </td> </tr> <?}?> <tr class="bg_gray"> <td colspan="3"> </td> <td><input type="text" name="op_nm" class="input_text pl10" value="" style="width:70%;" hname="옵션명" required></td> <td><input type="text" name="op_price_sell" class="input_text pr10" value="" style="width:50%;text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" hname="판매가" required><?=$row_good['ext_nm']?></td> <!-- <td><input type="text" name="op_price_agent" class="input_text pr10" value="" style="width:50%;text-align:right;ime-mode:disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" hname="대리점가" required><?=$row_good['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="g_uid" value="<?=$g_uid?>"> <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("","good_options_proc.html","frm_option"); } function chg_order() { if (!confirm('순서를 수정 하시겠습니까?')) return; $("#SqlType").val("order_chg"); ajax_post("","good_options_proc.html","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(); var result = to_validation(f); if(result == false) return; ajax_post("","good_options_proc.html","frm_option_edit"); } </script> <? include "../include/footer.html"; ?>