ÿØÿà 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/exchange/ |
Upload File : |
<?php include $_SERVER['DOCUMENT_ROOT'].'/admin/include/top.html'; // 접근권한 관리 //to_access_menu("exchange"); $m = new CommonTour(); $data = $m->exchangeList(); $currencyKorean = array( 'USD' => '미국', 'HKD' => '홍콩', 'TWD' => '대만', '위안' => '중국', 'SGD' => '싱가포르', 'MYR' => '말레이시아', 'THB' => '태국', 'PHP' => '필리핀', 'JPY' => '일본', ); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">환율<span class="arrow">></span><strong>환율설정</strong></div> <div class="contents_detail"> <div class="setting_wrap"> <div class="top_txt_s"> <div class="bar_wrap"> <p class="search_result_txt"><span>Total : <?=count($data)?></span></p> <!-- 상품정렬 --> <ul class="search_rt_btn"> <li><a href="javascript:;" class="Tbtn red" onClick="to_dialog.iframe('exchange_reg.html','환율등록','500','420',true,true,'no');">등록</a></li> </ul><!-- 상품등록 --> </div> </div> <!-- 폼 --> <form name="frm_exchange" id="frm_exchange" method="post"> <input type="hidden" name="SqlType" value=""> <table width="1200" border="0" cellspacing="0" cellpadding="0" class="t_list" style="float:left"> <colgroup> <col style=" width:5%" /> <col style=" width:5%" /> <col style=" width:5%" /> <col style=" width:12%" /> <col style=" width:12%" /> <col style=" width:12%" /> <col style=" width:14%" /> <col style=" width:12%" /> <col style=" width:12%" /> <col style=" width:*" /> </colgroup> <thead> <tr> <th>사용</th> <th><a href="#" onClick="change_ordernum();">순서</a></th> <th>No</th> <th>국가명</th> <th>화폐단위(영문)</th> <th>화폐기호</th> <th>교환가격(KRW)</th> <th>절삭단위</th> <th>올림/반올림/버림</th> <th>-</th> </tr> </thead> <tbody> <? for($i=0,$j=1 ; $i < count($data) ; $i++,$j++){ $row = $data[$i]; ?> <tr> <td><span id="delflag_<?=$row['exid']?>"><img src="<?=$row['del_fg_icon']?>" alt="사용" onclick="ajax_obj_loader('exchange_proc.html?SqlType=use_change&exid=<?=$row['exid']?>&delflag=<?=$row['del_fg_opp']?>&j=<?=$j?>','delflag_<?=$row['exid']?>');" style='cursor:pointer;' /></span></td> <td> <input name="ordernum_arr[]" type="text" value="<?=$row['order_num']?>" 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="exid_arr[]" value="<?=$row['exid']?>"> </td> <td><?=$j?></td> <td style="text-align:center;"><?=$currencyKorean[$row['ext_nm']]?></td> <td style="text-align:center;"><?=$row['ext_eng']?></td> <td style="text-align:center;"><?=$row['ext_mark']?></td> <td style="text-align:right;padding-right:10px;"><?=$row['ext_to_krw']?>원</td> <td style="text-align:center;"><?=$row['ext_unit']?>원</td> <td style="text-align:center;"><?=$row['ext_round2']?></td> <td> <input type="button" class="Table_btn" value="수정" onClick="to_dialog.iframe('exchange_reg.html?exid=<?=$row['exid']?>','환율수정','500','420',true,true,'no');" /> <input type="button" class="Table_btn gray" value="삭제" onClick="<?php if($row['is_del']==false){?>alert('상품에 적용중인 환율은 삭제 불가합니다.');return;<?php }?>if(confirm('정말 삭제하시겠습니까?')) ajax_loader('exchange_proc.html?SqlType=ex_delete&exid='+<?=$row['exid']?>)" /> </td> </tr> <?}?> </tbody> </table> <table width="" border="0" cellspacing="0" cellpadding="0" class="t_list" style="float:right;"> <thead> <th colspan="2">실시간 환율 : <span id="exchangeRefreshBtn" style="cursor:pointer"><?=$getCurrencyData['ins_dt']?> <i class="xi-renew" style="font-size: 14px;position: relative;top: 2px;" ></i></span> <img src="/js/jquery-file-upload/img/loading.gif" id="loadingGif" style="width: 15px;display:none"/> </th> </thead> <tbody> <tr> <td style="width:115px;padding-top:13px;padding-bottom:14px">USD</td> <td style="width:115px;" id="exchageUsdData"><?=number_format($getCurrencyData['USD'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">HKD</td> <td id="exchageHkdData"><?=number_format($getCurrencyData['HKD'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">TWD</td> <td id="exchageTwdData"><?=number_format($getCurrencyData['TWD'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">CNY</td> <td id="exchageCnyData"><?=number_format($getCurrencyData['CNY'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">SGD</td> <td id="exchageSgdData"><?=number_format($getCurrencyData['SGD'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">MYR</td> <td id="exchageMyrData"><?=number_format($getCurrencyData['MYR'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">THB</td> <td id="exchageThbData"><?=number_format($getCurrencyData['THB'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">PHP</td> <td id="exchagePhpData"><?=number_format($getCurrencyData['PHP'],2)?>원</td> </tr> <tr> <td style="padding-top:13px;padding-bottom:14px">JPY</td> <td id="exchageJpyData"><?=number_format($getCurrencyData['JPY'],2)?>원</td> </tr> </tbody> </table> </form> <!-- /폼 --> </div> </div> </div> </div> <? include "../include/footer.html"; ?> <script type="text/javascript"> $(function(){ $('#exchangeRefreshBtn').click(function(){ $('#loadingGif').show(); setTimeout(function(){ refreshExchangeData(); },100); }) function refreshExchangeData() { $.ajax({ type: "POST", url: "/admin/exchange/getExternalData/", data: {mode: 'exchangeDataGet'}, dataType: 'json', async: false, success: function (data) { if(data.result == true){ $('#exchageHkdData').text(data.HKD + '원'); $('#exchageTwdData').text(data.TWD + '원'); $('#exchageUsdData').text(data.USD + '원'); $('#exchageCnyData').text(data.CNY + '원'); $('#exchageSgdData').text(data.SGD + '원'); $('#exchageMyrData').text(data.MYR + '원'); $('#exchageThbData').text(data.THB + '원'); $('#exchagePhpData').text(data.PHP + '원'); $('#exchageJpyData').text(data.JPY + '원'); iziToast.show({ timeout:1000, color: 'green', title: '<i style="position:relative;top:2px" class="xi-bell"></i>환율 데이터', message: "업데이트가 완료되었습니다.", }); $('#loadingGif').hide(); } }, error: function (e) { } }); } }) function check_frm() { var f=document.frm_edit; // 폼체크 var result = to_validation(f); if (result == false) return false; if(!confirm("수정하시겠습니까?")) return false; f.submit(); } function chk_form2() { var f=document.frm_exchange2; // 폼체크 f.action = "exchange_proc2.html"; f.submit(); } function chk_form3() { var f=document.frm_exchange2; // 폼체크 f.action = "exchange_proc2.html"; f.submit(); } //순서수정 function change_ordernum() { if (!confirm('순서를 수정하시겠습니까?')) return; $("#frm_exchange input[name='SqlType']").val('order_chg'); ajax_post('ajax_proc',"exchange_proc.html","frm_exchange"); } </script>