Files
anpdf/app/views/payments.phtml
Andrey Kuvshinov 0d3e319f1d add payments.phtml
2020-05-16 02:30:13 +03:00

27 lines
957 B
PHTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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?>