View file PF.Base/module/ad/template/default/controller/invoice/index.html.php

File size: 0.98Kb
<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond_Benc
 * @package 		Phpfox
 * @version 		$Id: index.html.php 1581 2010-05-07 10:16:40Z Miguel_Espinoza $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
{if !count($aInvoices)}
<div class="extra_info">
	{_p var='you_do_not_have_any_invoices'}
</div>
{else}
<table class="default_table" cellpadding="0" cellspacing="0">
	<tr>
		<th>{_p var='id'}</th>
		<th>{_p var='status'}</th>
		<th>{_p var='price'}</th>
		<th>{_p var='date'}</th>
	</tr>
	{foreach from=$aInvoices item=aInvoice}
	<tr>
		<td class="t_center">{$aInvoice.invoice_id}</td>
		<td>{$aInvoice.status_phrase}{if $aInvoice.status === null} (<a href="{if $aInvoice.is_sponsor != 1}{url link='ad.add.completed' id=$aInvoice.ad_id}{else}{url link='ad.sponsor' pay=$aInvoice.ad_id}{/if}">{_p var='pay_now'}</a>){/if}</td>
		<td>{$aInvoice.price|currency:$aInvoice.currency_id}</td>
		<td>{$aInvoice.time_stamp|date}</td>
	</tr>
	{/foreach}
</table>
{/if}