|
|
@ -169,5 +169,44 @@ $item = $database->get(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row mt-4 mx-0">
|
|
|
|
|
|
|
|
<table id="stocktable" class="table table-bordered table-hover table-sm">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th data-priority="1"><i class="fas fa-fw fa-calendar d-none d-md-inline"></i> <?php $Strings->get('date'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="2"><i class="fas fa-fw fa-hashtag d-none d-md-inline"></i> <?php $Strings->get('amount'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="3"><i class="fas fa-fw fa-sticky-note d-none d-md-inline"></i> <?php $Strings->get('description'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="4"><i class="fas fa-fw fa-user d-none d-md-inline"></i> <?php $Strings->get('changed by'); ?></th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$stockentries = $database->select('stock', [
|
|
|
|
|
|
|
|
'timestamp',
|
|
|
|
|
|
|
|
'stock',
|
|
|
|
|
|
|
|
'text1',
|
|
|
|
|
|
|
|
'userid'
|
|
|
|
|
|
|
|
], [
|
|
|
|
|
|
|
|
'itemid' => $item['itemid']
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
foreach ($stockentries as $stockentry) {
|
|
|
|
|
|
|
|
$user = new User($stockentry['userid'])
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td><?php echo $stockentry['timestamp']; ?></td>
|
|
|
|
|
|
|
|
<td><?php echo $stockentry['stock']; ?></td>
|
|
|
|
|
|
|
|
<td><?php echo $stockentry['text1']; ?></td>
|
|
|
|
|
|
|
|
<td><?php echo $user->getName() . " (" . $user->getUsername() . ")"; ?></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|