📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
firmarehberiv1.demodesign.com.tr
/
modules
📝
index-kurlar.php
← Geri Dön
<div class="card"> <div class="card-body text-dark"> <div class="statistics-info"> <div class="row text-center"> <?php $url = 'http://api.bigpara.hurriyet.com.tr/doviz/headerlist/anasayfa'; $cekVeri = file_get_contents($url); $gelenVeri = json_decode($cekVeri); foreach($gelenVeri->data as $veri){ if($veri->SEMBOL == 'USDTRY' && $veri->YUZDEDEGISIM < 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:red;"> <div class="counter-status"> <h5>USD/TRY <i class="fa fa-arrow-down" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'USDTRY' && $veri->YUZDEDEGISIM > 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:green;"> <div class="counter-status"> <h5>USD/TRY <i class="fa fa-arrow-up" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'USDTRY' && $veri->YUZDEDEGISIM == 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:blue;"> <div class="counter-status"> <h5>USD/TRY <i class="fa fa-circle" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; } /**************************************************************************************/ if($veri->SEMBOL == 'EURTRY' && $veri->YUZDEDEGISIM < 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:red;"> <div class="counter-status"> <h5>EUR/TRY <i class="fa fa-arrow-down" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'EURTRY' && $veri->YUZDEDEGISIM > 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:green;"> <div class="counter-status"> <h5>EUR/TRY <i class="fa fa-arrow-up" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'EURTRY' && $veri->YUZDEDEGISIM == 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:blue;"> <div class="counter-status"> <h5>EUR/TRY <i class="fa fa-circle" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; } /**************************************************************************************/ if($veri->SEMBOL == 'XU100' && $veri->YUZDEDEGISIM < 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:red;"> <div class="counter-status"> <h5>BIST100 <i class="fa fa-arrow-down" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'XU100' && $veri->YUZDEDEGISIM > 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:green;"> <div class="counter-status"> <h5>BIST100 <i class="fa fa-arrow-up" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'XU100' && $veri->YUZDEDEGISIM == 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:blue;"> <div class="counter-status"> <h5>BIST100 <i class="fa fa-circle" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; } /**************************************************************************************/ if($veri->SEMBOL == 'GLDGR' && $veri->YUZDEDEGISIM < 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:red;"> <div class="counter-status"> <h5>ALTIN/GRAM <i class="fa fa-arrow-down" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'GLDGR' && $veri->YUZDEDEGISIM > 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:green;"> <div class="counter-status"> <h5>ALTIN/GRAM <i class="fa fa-arrow-up" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'GLDGR' && $veri->YUZDEDEGISIM == 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:blue;"> <div class="counter-status"> <h5>ALTIN/GRAM <i class="fa fa-circle" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; } /**************************************************************************************/ if($veri->SEMBOL == 'GBPTRY' && $veri->YUZDEDEGISIM < 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:red;"> <div class="counter-status"> <h5>GBP/TRY <i class="fa fa-arrow-down" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'GBPTRY' && $veri->YUZDEDEGISIM > 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:green;"> <div class="counter-status"> <h5>GBP/TRY <i class="fa fa-arrow-up" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'GBPTRY' && $veri->YUZDEDEGISIM == 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6 " style="color:blue;"> <div class="counter-status"> <h5>GBP/TRY <i class="fa fa-circle" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; } /**************************************************************************************/ if($veri->SEMBOL == 'TAHVIL' && $veri->YUZDEDEGISIM < 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:red;"> <div class="counter-status"> <h5>BONO <i class="fa fa-arrow-down" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'TAHVIL' && $veri->YUZDEDEGISIM > 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:green;"> <div class="counter-status"> <h5>BONO <i class="fa fa-arrow-up" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; }else if($veri->SEMBOL == 'TAHVIL' && $veri->YUZDEDEGISIM == 0){ echo '<div id="kurlar" class="col-lg-2 col-md-6" style="color:blue;"> <div class="counter-status"> <h5>BONO <i class="fa fa-circle" aria-hidden="true"></i></h5> <h5 style="margin-bottom:0px;">'.$veri->KAPANIS.' <span style="font-size:10px;">('.$veri->YUZDEDEGISIM.')</span></h5> </div> </div>'; } /**************************************************************************************/ } ?> </div> </div> </div> </div>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula