- Add readme file

- Move vault transaction output to function
- Add list of all transactions from vault
- Start balance calculation functins
This commit is contained in:
Keith Solomon
2022-12-21 07:46:21 -06:00
parent 41807cf76a
commit eeb5f63885
6 changed files with 235 additions and 157 deletions
+8 -33
View File
@@ -21,43 +21,18 @@ include('functions.php');
<div class="gridLeft">
<h2>Transactions</h2>
<table>
<thead>
<td>User</td>
<td>Timestamp</td>
<td>Operation</td>
<td>Amount</td>
</thead>
<?php
foreach ($csv as $entry) {
if ($entry[2] == 'Vault withdraw') {
$class = 'debit';
} else {
$class = 'credit';
}
echo '<tr class="' . $class . '">';
echo '<td>';
echo $entry[0];
echo '</td>';
echo '<td>';
echo date("d/m/Y", $entry[1]);
echo '</td>';
echo '<td>';
echo $entry[2];
echo '</td>';
echo '<td>';
echo formatMoney($entry[3]);
echo '</td>';
echo '</tr>';
}
?>
</table>
<?php vaultTxns($csv); ?>
</div>
<div class="gridRght">
<h2>Balances</h2>
<?php
$zarVault = [];
$symVault = [];
?>
</div>
</div>
</body>