forked from pharesim/hz-blockexplorer
/
assets.phtml
121 lines (109 loc) · 5.07 KB
/
assets.phtml
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
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$('#assets').DataTable( {
"iDisplayLength": 5,
"language": {"search": "", "sSearchPlaceholder": "SEARCH FOR AN ASSET HERE" },
"order": [[ 4, "desc" ]]
} );
} );
</script>
<section id="title" class="alizarin" style="padding:0px;">
<div id="visible-phone-title" class="col-sm-12" style="text-align:center; margin-bottom:10px; padding:20px; padding-top:10px;">
<div class="titleh1">
<h2>Horizon Assets</h2>
</div>
</div>
<div id="visible-desktop-title" class="col-sm-12" style="text-align:center; margin-bottom:40px; padding:20px; padding-top:30px;">
<div class="titleh1">
<h1>Horizon Assets</h1>
</div>
<p>The complete list of Horizon assets.</p>
</div>
<div id="visible-tablet-title" class="col-sm-12" style="text-align:center; margin-bottom:80px; padding:20px; padding-top:40px;">
<div class="titleh1">
<h2>Horizon Assets</h2>
</div>
<p>The complete list of Horizon assets.</p>
</div>
</section>
<div class="container">
<div id="content" class="site-content" role="main">
<article id="post-94" class="post-94 page type-page status-publish has-post-thumbnail hentry">
<div class="entry-content">
<div class="su-row">
<div class="su-column su-column-size-3-4">
<div class="su-column-inner su-clearfix" >
<table id="assets" class="display" data-page-length='25'>
<thead>
<tr>
<th style="padding-left:10px;"><h5>Asset Name</h5></th>
<th style="text-align:center;"><h5>Asset ID</h5></th>
<th style="text-align:center;"><h5>Issuer</h5></th>
<th style="text-align:center;"><h5>Quantity</h5></th>
<th style="text-align:right;"><h5>Trades</h5></th>
</tr>
</thead>
<tbody>
<?php
foreach($this->data['assets'] as $key=>$asset):
?>
<?php $assettableid = 'id="'.$asset['asset'].'"'; ?>
<tr <?=$assettableid?>>
<td><a href="?page=asset&id=<?=$asset['asset']?>"><p style="text-transform:uppercase">
<?=htmlspecialchars($asset['name'])?>
</p></a></td>
<td style="text-align:center;"><p style="text-transform:uppercase">
<?=$asset['asset']?>
</p></td>
<td style="text-align:center;"><p style="text-transform:uppercase"> <a href="/?page=account&id=<?=$asset['account']?>">
<?php if(isset($this->data['knownAddresses'][$asset['account']])): ?>
<?=$this->data['knownAddresses'][$asset['account']];?>
<?php else: ?>
<?=$asset['accountrs']?>
<?php endif; ?>
</a></p></td>
<td style="text-align:center;"><p>
<?php if ($asset['decimals'] == "0") {
$asset['quantity'] = $asset['quantity'];
} elseif ($asset['decimals'] == "1") {
$asset['quantity'] = $asset['quantity']/10;
} elseif ($asset['decimals'] == "2") {
$asset['quantity'] = $asset['quantity']/100;
} elseif ($asset['decimals'] == "3") {
$asset['quantity'] = $asset['quantity']/1000;
} elseif ($asset['decimals'] == "4") {
$asset['quantity'] = $asset['quantity']/10000;
} elseif ($asset['decimals'] == "5") {
$asset['quantity'] = $asset['quantity']/100000;
} elseif ($asset['decimals'] == "6") {
$asset['quantity'] = $asset['quantity']/1000000;
} elseif ($asset['decimals'] == "7") {
$asset['quantity'] = $asset['quantity']/10000000;
} else {
$asset['quantity'] = $asset['quantity']/100000000;
}?> <?=$asset['quantity']?>
</p></td>
<td style="text-align:right;"><p>
<?=$asset['trades']?>
</p></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div class="su-column su-column-size-1-4">
<div class="su-column-inner su-clearfix">
<table>
<tr>
<td><p class="dropcap">Please note that this page contains all of the assets available on the Horizon Platform and therefore we are unable to verify their quality.</p>
<p>We strongly advise you to check out our <strong>TRUSTED ASSETS</strong> section by clicking the button below in order to make an informed choice before you invest.</p><div style="margin-top:20px"><a type="button" class="btn btn-primary" style="width:100%" href="https://horizonplatform.io/category/trusted-horizon-assets/">VIEW TRUSTED ASSETS</a></div></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</article>
</div>
</div>