-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
104 lines (104 loc) · 6.61 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
$JSONKur = json_decode(file_get_contents('https://api.genelpara.com/embed/para-birimleri.json'), true);
if(str_replace(',', '.', $JSONKur['XU100']['degisim']) >= 0) { $KurDegisimXU100 = "up"; } else { $KurDegisimXU100 = "down"; }
if(str_replace(',', '.', $JSONKur['USD']['degisim']) >= 0) { $KurDegisimUSD = "up"; } else { $KurDegisimUSD = "down"; }
if(str_replace(',', '.', $JSONKur['EUR']['degisim']) >= 0) { $KurDegisimEUR = "up"; } else { $KurDegisimEUR = "down"; }
if(str_replace(',', '.', $JSONKur['GBP']['degisim']) >= 0) { $KurDegisimGBP = "up"; } else { $KurDegisimGBP = "down"; }
if(str_replace(',', '.', $JSONKur['BTC']['degisim']) >= 0) { $KurDegisimBTC = "up"; } else { $KurDegisimBTC = "down"; }
if(str_replace(',', '.', $JSONKur['ETH']['degisim']) >= 0) { $KurDegisimETH = "up"; } else { $KurDegisimETH = "down"; }
if(str_replace(',', '.', $JSONKur['XRP']['degisim']) >= 0) { $KurDegisimXRP = "up"; } else { $KurDegisimXRP = "down"; }
if(str_replace(',', '.', $JSONKur['BCH']['degisim']) >= 0) { $KurDegisimBCH = "up"; } else { $KurDegisimBCH = "down"; }
if(str_replace(',', '.', $JSONKur['LTC']['degisim']) >= 0) { $KurDegisimLTC = "up"; } else { $KurDegisimLTC = "down"; }
if(str_replace(',', '.', $JSONKur['GA']['degisim']) >= 0) { $KurDegisimGA = "up"; } else { $KurDegisimGA = "down"; }
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8" />
<title>Ücretsiz Döviz Script</title>
<meta name="description" content="Ücretsiz Döviz Script" />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="shortcut icon" href="fav.jpg" />
</head>
<body>
<section class="default-card">
<div class="container card">
<h1 class="title-main">Döviz Kurları</h1>
<p class="subheading">Veriler 15dk gecikmeli olarak güncellenmektedir.</p>
<div class="doviz-tablo">
<div class="doviz-tablos">
<ul class="doviz-bas">
<li>BIRIM</li>
<li>YON</li>
<li>FIYAT</li>
<li>DEGISIM</li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/BIST.png">Bist 100<span>XU100</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimXU100; ?>.png"></li>
<li class="fiyat"><span>₺ <?php echo number_format($JSONKur['XU100']['satis'], 0, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimXU100; ?>"><?php echo $JSONKur['XU100']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/ALTIN.png">Gram Altın<span>GA</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimGA; ?>.png"></li>
<li class="fiyat"><span>₺ <?php echo number_format($JSONKur['GA']['satis'], 2, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimGA; ?>"><?php echo $JSONKur['GA']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/USD.png">Dolar<span>USD</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimUSD; ?>.png"></li>
<li class="fiyat"><span>₺ <?php echo number_format($JSONKur['USD']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimUSD; ?>"><?php echo $JSONKur['USD']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/EUR.png">Euro<span>EUR</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimEUR; ?>.png"></li>
<li class="fiyat"><span>₺ <?php echo number_format($JSONKur['EUR']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimEUR; ?>"><?php echo $JSONKur['EUR']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/GBP.png">Sterlin<span>GBP</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimGBP; ?>.png"></li>
<li class="fiyat"><span>₺ <?php echo number_format($JSONKur['GBP']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimGBP; ?>"><?php echo $JSONKur['GBP']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/BTC.png">Bitcoin<span>BTC</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimBTC; ?>.png"></li>
<li class="fiyat"><span>$ <?php echo number_format($JSONKur['BTC']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimBTC; ?>"><?php echo $JSONKur['BTC']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/ETH.png">Ethereum<span>ETH</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimETH; ?>.png"></li>
<li class="fiyat"><span>$ <?php echo number_format($JSONKur['ETH']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimETH; ?>"><?php echo $JSONKur['ETH']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/XRP.png">Ripple<span>XRP</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimXRP; ?>.png"></li>
<li class="fiyat"><span>$ <?php echo number_format($JSONKur['XRP']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimXRP; ?>"><?php echo $JSONKur['XRP']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/BCH.png">Bitcoin Cash<span>BCH</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimBCH; ?>.png"></li>
<li class="fiyat"><span>$ <?php echo number_format($JSONKur['BCH']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimBCH; ?>"><?php echo $JSONKur['BCH']['degisim']; ?>%</span></li>
</ul>
<ul class="doviz-list">
<li class="title"><img src="/img/LTC.png">Litecoin<span>LTC</span></li>
<li class="yon"><img src="/img/<?php echo $KurDegisimLTC; ?>.png"></li>
<li class="fiyat"><span>$ <?php echo number_format($JSONKur['LTC']['satis'], 4, ',', '.'); ?></span></li>
<li class="degisim"><span class="<?php echo $KurDegisimLTC; ?>"><?php echo $JSONKur['LTC']['degisim']; ?>%</span></li>
</ul>
</div>
</div>
<p class="text">Piyasa verileri <a href="https://www.genelpara.com/" target="_blank">GenelPara</a> tarafından sağlanmaktadır.</p>
<div class="clear"></div>
</div>
</section>
</body>
</html>