|
|
@ -14,7 +14,7 @@ if (!$user->hasPermission("HACHEPORTAL_VIEW")) {
|
|
|
|
|
|
|
|
|
|
|
|
$writeaccess = $user->hasPermission("HACHEPORTAL_EDIT");
|
|
|
|
$writeaccess = $user->hasPermission("HACHEPORTAL_EDIT");
|
|
|
|
|
|
|
|
|
|
|
|
$payments = $database->select("payments", ['paymentid (id)', 'familyid', 'amount', 'paid', 'date']);
|
|
|
|
$payments = $database->select("payments", ['paymentid (id)', 'familyid', 'amount', 'paid', 'date', 'type']);
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="btn-group">
|
|
|
|
<div class="btn-group">
|
|
|
@ -26,11 +26,12 @@ $payments = $database->select("payments", ['paymentid (id)', 'familyid', 'amount
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th data-priority="0"></th>
|
|
|
|
<th data-priority="0"></th>
|
|
|
|
<th data-priority="1"><?php $Strings->get('Actions'); ?></th>
|
|
|
|
<!--<th data-priority="1"><?php $Strings->get('Actions'); ?></th>-->
|
|
|
|
<th data-priority="1"><i class="fas fa-users hidden-sm"></i> <?php $Strings->get('Family'); ?></th>
|
|
|
|
<th data-priority="1"><i class="fas fa-users hidden-sm"></i> <?php $Strings->get('Family'); ?></th>
|
|
|
|
<th data-priority="1"><i class="fas fa-dollar-sign hidden-sm"></i> <?php $Strings->get('Amount'); ?></th>
|
|
|
|
<th data-priority="1"><i class="fas fa-dollar-sign hidden-sm"></i> <?php $Strings->get('Amount'); ?></th>
|
|
|
|
<th data-priority="2"><i class="fas fa-calendar hidden-sm"></i> <?php $Strings->get('Date'); ?></th>
|
|
|
|
<th data-priority="2"><i class="fas fa-calendar hidden-sm"></i> <?php $Strings->get('Date'); ?></th>
|
|
|
|
<th data-priority="2"><i class="far fa-check-square hidden-sm"></i> <?php $Strings->get('Paid'); ?></th>
|
|
|
|
<th data-priority="2"><i class="far fa-check-square hidden-sm"></i> <?php $Strings->get('Status'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="3"><i class="fas fa-bars hidden-sm"></i> <?php $Strings->get('Type'); ?></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
@ -39,7 +40,7 @@ $payments = $database->select("payments", ['paymentid (id)', 'familyid', 'amount
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
<!-- <td>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
if ($writeaccess) {
|
|
|
|
if ($writeaccess) {
|
|
|
|
?>
|
|
|
|
?>
|
|
|
@ -47,11 +48,12 @@ $payments = $database->select("payments", ['paymentid (id)', 'familyid', 'amount
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</td>-->
|
|
|
|
<td><a href="./app.php?page=viewfamily&id=<?php echo $p['familyid']; ?>"><?php echo (new Family())->load($p['familyid'])->getName(); ?></a></td>
|
|
|
|
<td><a href="./app.php?page=viewfamily&id=<?php echo $p['familyid']; ?>"><?php echo (new Family())->load($p['familyid'])->getName(); ?></a></td>
|
|
|
|
<td>$<?php echo number_format($p['amount'], 2); ?></td>
|
|
|
|
<td>$<?php echo number_format($p['amount'], 2); ?></td>
|
|
|
|
<td><?php echo date("Y-m-d H:i:s", strtotime($p['date'])); ?></td>
|
|
|
|
<td><?php echo date("Y-m-d H:i:s", strtotime($p['date'])); ?></td>
|
|
|
|
<td><?php $p['paid'] ? $Strings->get("Yes") : $Strings->get("No"); ?></td>
|
|
|
|
<td><?php $p['paid'] ? $Strings->get("Paid") : $Strings->get("Unpaid"); ?></td>
|
|
|
|
|
|
|
|
<td><?php $Strings->get($p["type"]); ?></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -60,11 +62,12 @@ $payments = $database->select("payments", ['paymentid (id)', 'familyid', 'amount
|
|
|
|
<tfoot>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th data-priority="0"></th>
|
|
|
|
<th data-priority="0"></th>
|
|
|
|
<th data-priority="1"><?php $Strings->get('Actions'); ?></th>
|
|
|
|
<!--<th data-priority="1"><?php $Strings->get('Actions'); ?></th>-->
|
|
|
|
<th data-priority="1"><i class="fas fa-users hidden-sm"></i> <?php $Strings->get('Family'); ?></th>
|
|
|
|
<th data-priority="1"><i class="fas fa-users hidden-sm"></i> <?php $Strings->get('Family'); ?></th>
|
|
|
|
<th data-priority="1"><i class="fas fa-dollar-sign hidden-sm"></i> <?php $Strings->get('Amount'); ?></th>
|
|
|
|
<th data-priority="1"><i class="fas fa-dollar-sign hidden-sm"></i> <?php $Strings->get('Amount'); ?></th>
|
|
|
|
<th data-priority="2"><i class="fas fa-calendar hidden-sm"></i> <?php $Strings->get('Date'); ?></th>
|
|
|
|
<th data-priority="2"><i class="fas fa-calendar hidden-sm"></i> <?php $Strings->get('Date'); ?></th>
|
|
|
|
<th data-priority="2"><i class="far fa-check-square hidden-sm"></i> <?php $Strings->get('Paid'); ?></th>
|
|
|
|
<th data-priority="2"><i class="far fa-check-square hidden-sm"></i> <?php $Strings->get('Status'); ?></th>
|
|
|
|
|
|
|
|
<th data-priority="3"><i class="fas fa-bars hidden-sm"></i> <?php $Strings->get('Type'); ?></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</table>
|