forked from phpcoinn/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccounts.php
More file actions
executable file
·62 lines (55 loc) · 2.46 KB
/
accounts.php
File metadata and controls
executable file
·62 lines (55 loc) · 2.46 KB
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
<?php
require_once dirname(__DIR__)."/apps.inc.php";
define("PAGE", true);
define("APP_NAME", "Explorer");
require_once ROOT. '/web/apps/explorer/include/functions.php';
$dm = get_data_model(Account::getCount(), "/apps/explorer/accounts.php?");
$accounts = Account::getAccounts($dm);
?>
<?php
require_once __DIR__. '/../common/include/top.php';
?>
<ol class="breadcrumb m-0 ps-0 h4">
<li class="breadcrumb-item"><a href="/apps/explorer">Explorer</a></li>
<li class="breadcrumb-item active">Accounts</li>
</ol>
<form class="app-search d-block pt-0" method="get" action="">
<div class="position-relative">
<input type="text" class="form-control" placeholder="Search: Address" name="search" value="<?php echo safeDisplay($_GET['search'] ?? '') ?>">
<button class="btn btn-primary" type="submit"><i class="bx bx-search-alt align-middle"></i></button>
</div>
</form>
<div class="table-responsive">
<table class="table table-sm table-striped dataTable">
<thead class="table-light">
<tr>
<th>Id</th>
<th>Public key</th>
<th>Block</th>
<?php echo sort_column('/apps/explorer/accounts.php?',$dm,'balance','Balance') ?>
<?php echo sort_column('/apps/explorer/accounts.php?',$dm,'height','Height') ?>
<?php echo sort_column('/apps/explorer/accounts.php?',$dm,'maturity','Maturity') ?>
<?php echo sort_column('/apps/explorer/accounts.php?',$dm,'weight','Weight') ?>
</tr>
</thead>
<tbody>
<?php foreach($accounts as $account) { ?>
<tr>
<td><?php echo explorer_address_link($account['id']) ?></td>
<td><?php echo explorer_address_pubkey($account['public_key']) ?></td>
<td><?php echo explorer_block_link($account['block']) ?></td>
<td align="right"><?php echo num($account['balance']); ?></td>
<td>
<a href="/apps/explorer/block.php?height=<?php echo $account['height']; ?>"><?php echo $account['height']; ?></a>
</td>
<td align="right"><?php echo $account['maturity']; ?></td>
<td align="right"><?php echo $account['weight']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php echo $dm['paginator'] ?>
<?php
require_once __DIR__ . '/../common/include/bottom.php';
?>