2016-09-15 13:01:20 +02:00

67 lines
2.0 KiB
Smarty

{capture name=path}<a href="{$link->getPageLink('my-account.php', TRUE)}">{l s='My Account' mod='paymentinfo'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Manage payment info' mod='paymentinfo'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1 class="title"><span>{l s='Manage payment info' mod='paymentinfo'}</span></h1>
{if isset($delete) && $delete}
<div id="block-history" class="block-center">
<p class="success">{l s='Delete success' mod='paymentinfo'}</p>
</div>
<br>
{/if}
<h4 class='subtitle'>{l s='My cards' mod='paymentinfo'}</h4>
{if $paybox_accounts}
<table class="std table_skin">
<tbody>
{foreach from=$paybox_accounts item=paybox}
<tr>
<td>
<b>{$paybox.payment_type}</b> - {$paybox.value} {substr_replace($paybox.date,'/',-2,0)}
</td>
<td><a onclick="return confirm('{l s='Are you sure?' mod='paymentinfo'}');" href="?delete_card={$paybox.id_paybox_card}">{l s='Delete' mod='paymentinfo'}</a></td>
</tr>
{/foreach}
</tbody>
</table>
{else}
<div id="block-history" class="block-center">
<p class="warning">{l s='No card register' mod='paymentinfo'}</p>
</div>
{/if}
<br />
<h4 class='subtitle'>{l s='My paypal account' mod='paymentinfo'}</h4>
{if $paypal_accounts}
<table class="std table_skin">
<tbody>
{foreach from=$paypal_accounts item=paypal}
<tr>
<td>
<b>{$paypal.name}</b>
<br />
<i>{$paypal.email}</i>
<br />
{$paypal.city}
</td>
<td><a onclick="return confirm('{l s='Are you sure?' mod='paymentinfo'}');" href="?delete_agreement={$paypal.id_paypal_agreement}">{l s='Delete' mod='paymentinfo'}</a></td>
</tr>
{/foreach}
</tbody>
</table>
{else}
<div id="block-history" class="block-center">
<p class="warning">{l s='No account register' mod='paymentinfo'}</p>
</div>
{/if}
<br />
<p class="footer_links">
<a class="back_account" href="{$link->getPageLink('my-account.php', true)}" class="button">
<i class="icon-user"></i><span>{l s='Back to my account' mod='paymentinfo'}</span>
</a>
</p>