Files
anpdf/app/views/payments.phtml
Andrey Kuvshinov 6ea2e6f996 add oplata report
2020-05-16 09:46:43 +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?>