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

74 lines
2.7 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>{l s='Manage payment info' mod='paymentinfo'}</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}
<h3>{l s='My Cards' mod='paymentinfo'}</h3>
{if $paybox_accounts}
<div class="block-paybox">
<table class="std">
<thead>
<th class="item">{l s='Payment type' mod='paymentinfo'}</th>
<th class="item">{l s='Number' mod='paymentinfo'}</th>
<th class="item">{l s='Date validity' mod='paymentinfo'}</th>
<th class="item">{l s='Action' mod='paymentinfo'}</th>
</thead>
<tbody>
{foreach from=$paybox_accounts item=paybox name=cards}
<tr class="alternate_item {if $smarty.foreach.cards.index % 2 == 0}odd{else}even{/if}">
<td class="bold">{$paybox.payment_type}</td>
<td>{$paybox.value}</td>
<td>{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}" title="{l s='Delete' mod='paymentinfo'}">{l s='X' mod='paymentinfo'}</a></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{else}
<div id="block-history" class="block-center">
<p class="warning">{l s='No card register' mod='paymentinfo'}</p>
</div>
{/if}
<br>
<h3>{l s='My paypal account' mod='paymentinfo'}</h3>
{if $paypal_accounts}
<div class="block-paypal">
<table class="std">
<thead>
<th class="item">{l s='Name' mod='paymentinfo'}</th>
<th class="item">{l s='Email' mod='paymentinfo'}</th>
{* <th class="item">{l s='City' mod='paymentinfo'}</th> *}
<th class="item">{l s='Date add' mod='paymentinfo'}</th>
<th class="item">{l s='Action' mod='paymentinfo'}</th>
</thead>
<tbody>
{foreach from=$paypal_accounts item=paypal name=accounts}
<tr class="alternate_item {if $smarty.foreach.accounts.index % 2 == 0}odd{else}even{/if}">
<td class="bold">{$paypal.name}</td>
<td >{$paypal.email}</td>
{* <td>{$paypal.city}</td> *}
<td>{$paypal.date_add|date_format:'d/m/Y'}</td>
<td><a onclick="return confirm('{l s='Are you sure?' mod='paymentinfo'}');" href="?delete_agreement={$paypal.id_paypal_agreement}" title="{l s='Delete' mod='paymentinfo'}">{l s='X' mod='paymentinfo'}</a></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{else}
<div id="block-history" class="block-center">
<p class="warning">{l s='No account register' mod='paymentinfo'}</p>
</div>
{/if}