-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransactions_export.php
More file actions
79 lines (73 loc) · 3.72 KB
/
transactions_export.php
File metadata and controls
79 lines (73 loc) · 3.72 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
require_once 'include/layout.php';
render_header(
'SiaGraph - Transaction Export',
'Download or view transaction history for specific addresses.',
[
'<link rel="stylesheet" href="' . htmlspecialchars(versioned_asset_url('css/pages/transactions-export.css'), ENT_QUOTES, 'UTF-8') . '">'
]
);
?>
<section id="main-content" class="sg-container">
<h1 class="sg-container__heading text-center mb-2">
<i class="bi bi-file-earmark-arrow-down me-2"></i>Transaction Export
</h1>
<p class="text-center mb-4">
Specify an address and the earliest date to download aggregated transactions as a CSV file.
</p>
<div class="sg-container__row">
<div class="sg-container__row-content sg-container__row-content--center">
<section class="card tx-export-card">
<h2 class="card__heading">Export Parameters</h2>
<div class="card__content">
<form id="tx-export-form" class="d-flex flex-column gap-3" autocomplete="off" novalidate>
<div>
<label for="tx-address" class="form-label">Address</label>
<input
type="text"
id="tx-address"
class="form-control"
name="address"
placeholder="Enter a 76-character Sia address"
pattern="[0-9a-fA-F]{76}"
required
>
</div>
<div>
<label for="tx-currency" class="form-label">Currency</label>
<select id="tx-currency" class="form-select" name="currency">
<option value="usd">US Dollar (USD)</option>
<option value="eur">Euro (EUR)</option>
<option value="cad">Canadian Dollar (CAD)</option>
<option value="cny">Chinese Yuan (CNY)</option>
<option value="gbp">British Pound (GBP)</option>
<option value="jpy">Japanese Yen (JPY)</option>
<option value="rub">Russian Ruble (RUB)</option>
</select>
</div>
<div>
<label for="tx-date" class="form-label">Include transactions from</label>
<input
type="date"
id="tx-date"
class="form-control"
name="date"
required
>
</div>
<div class="d-flex flex-wrap gap-2 align-items-center">
<button type="submit" class="btn btn-primary" id="tx-download-btn">
<i class="bi bi-download me-1"></i>Download CSV
</button>
<button type="button" class="btn btn-outline-secondary" id="tx-view-raw-btn">
<i class="bi bi-box-arrow-up-right me-1"></i>View Raw Data
</button>
<span class="small status-indicator" id="tx-status" role="status" aria-live="polite"></span>
</div>
</form>
</div>
</section>
</div>
</div>
</section>
<?php render_footer(['js/transactions-export.js']); ?>