add payments.phtml

This commit is contained in:
Andrey Kuvshinov
2020-05-16 02:30:13 +03:00
parent 5da486bbad
commit 0d3e319f1d
2 changed files with 65 additions and 0 deletions

27
app/views/payments.phtml Normal file
View File

@@ -0,0 +1,27 @@
<?if (is_array($payments)):?>
<table>
<tr>
<td><strong>Дата</strong></td>
<td><strong>Продукт</strong></td>
<td><strong>Статус</strong></td>
</tr>
<?foreach ($payments as $payment):?>
<tr>
<td><?=$payment['date']?></td>
<?if ($payment['category_id'] <> 2 && $payment['buy_status'] == 1):?>
<td><strong><a href="<?=SITE?>read/<?=$payment['pricehash']?>"><?=$payment['pricename']?></a></strong></td>
<?else:?>
<td><?=$payment['pricename']?></td>
<?endif?>
<?if ($payment['buy_status'] == 1):?>
<td>-<?=$payment['price']?> руб.</td>
<?else:?>
<td><em>неоплачен</em></td>
<?endif?>
</tr>
<?endforeach?>
</table>
<?endif?>