-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcoins.php
123 lines (108 loc) · 3.39 KB
/
coins.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
require 'input.php';
require 'functions-utility.php';
require 'binance.php';
require 'bitfinex.php';
require 'paper.php';
require 'coinmarketcap.php';
require 'fiatexchange.php';
require 'calculations.php';
require 'watchlist.php';
require 'functions-display.php';
session_start();
if(!isset($_SESSION['UserData']['Username'])) {
header("location:index.php");
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=0.8">
<title>Cryptocurrency</title>
<link rel="stylesheet" type="text/css" href="coinstyle.css" />
</head>
<body>
<div class="tabmenu">
<button class="tablinks" data-tab="Summary" id="defaultOpen">Summary</button>
<button class="tablinks" data-tab="Paper Wallet">Paper Wallet</button>
<button class="tablinks" data-tab="Binance">Binance</button>
<button class="tablinks" data-tab="Bitfinex">Bitfinex</button>
<button class="tablinks" data-tab="Watchlist">Watchlist</button>
</div>
<div id="Summary" class="tabcontent" align="center" style="overflow-x:auto;">
<table>
<tr class="header blue">
<td>Summary (in dollars)</td>
</tr>
</table>
<?php echo build_table_summary($displayArray['total']); ?>
<table>
<tr class="header blue">
<td>Summary (in euros)</td>
</tr>
</table>
<?php echo build_table_summary($displayArray['total'],"euro",$fiatExchangeDataUSD); ?>
</div>
<div id="Paper Wallet" class="tabcontent" align="center">
<table>
<tr class="header blue">
<td>CoinMarketCap (in dollars)</td>
</tr>
</table>
<?php echo build_table($displayArray['paper']); ?>
<table>
<tr class="header blue">
<td>CoinMarketCap (in euros)</td>
</tr>
</table>
<?php echo build_table($displayArray['paper'], "euro",$fiatExchangeDataUSD); ?>
</div>
<div id="Binance" class="tabcontent" align="center">
<table>
<tr class="header blue">
<td>Binance (in dollars)</td>
</tr>
</table>
<?php echo build_table($displayArray['binance']); ?>
<table>
<tr class="header blue">
<td>Binance (in euros)</td>
</tr>
</table>
<?php echo build_table($displayArray['binance'], "euro", $fiatExchangeDataUSD); ?>
</div>
<div id="Bitfinex" class="tabcontent" align="center">
<table>
<tr class="header blue">
<td>Bitfinex (in dollars)</td>
</tr>
</table>
<?php echo build_table($displayArray['bitfinex']); ?>
<table>
<tr class="header blue">
<td>Bitfinex (in euros)</td>
</tr>
</table>
<?php echo build_table($displayArray['bitfinex'], "euro",$fiatExchangeDataUSD); ?>
</div>
<div id="Watchlist" class="tabcontent" align="center">
<table>
<tr class="header blue">
<td>Watchlist (in dollars)</td>
</tr>
</table>
<?php echo build_table($displayArray['watchlist']); ?>
<table>
<tr class="header blue">
<td>Watchlist (in euros)</td>
</tr>
</table>
<?php echo build_table($displayArray['watchlist'], "euro",$fiatExchangeDataUSD); ?>
</div>
<div class="logout table header green">
<a href="logout.php">Click here</a> to Logout
</div>
<script src="tabs.js"></script>
</body>
</html>