-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjournal.php
More file actions
26 lines (23 loc) · 800 Bytes
/
journal.php
File metadata and controls
26 lines (23 loc) · 800 Bytes
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
<?php
require_once 'includes/header.php';
$journals = $pheal->WalletJournal(array('characterID' => $apiKeys['charId'], 'rowCount' => '2560'))->toArray()['result']['transactions'];
$pheal->scope = 'eve';
$refTypes = $pheal->RefTypes()->toArray()['result']['refTypes'];
?>
<h1>JOURNAL</h1>
<table border="1">
<tr>
<td>WHEN</td>
<td>TYPE</td>
<td>TOTAL</td>
<td>BALANCE<td>
</tr>
<?php foreach ($journals as $jrn): ?>
<tr>
<td><?=$jrn['date'] ?></td>
<td><?=$refTypes[$jrn['refTypeID']]['refTypeName'] ?></td>
<td style="color: <?=(int)$jrn['amount'] < 0 ? 'red' : 'green' ?>;"><?=number_format($jrn['amount']) ?> ISK</td>
<td><?=number_format($jrn['balance']) ?> ISK</td>
</tr>
<?php endforeach; ?>
</table>