2016-05-02 15:30:12 +02:00
|
|
|
{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}
|
|
|
|
|
2016-09-09 13:07:01 +02:00
|
|
|
<h3>{l s='My Cards' mod='paymentinfo'}</h3>
|
2016-05-02 15:30:12 +02:00
|
|
|
|
2016-09-09 13:07:01 +02:00
|
|
|
{if $paybox_accounts}
|
|
|
|
<div class="block-paybox">
|
2016-05-02 15:30:12 +02:00
|
|
|
<table class="std">
|
|
|
|
<thead>
|
2016-09-09 13:07:01 +02:00
|
|
|
<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>
|
2016-05-02 15:30:12 +02:00
|
|
|
<th class="item">{l s='Action' mod='paymentinfo'}</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-09-09 13:07:01 +02:00
|
|
|
{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>
|
2016-09-09 13:09:43 +02:00
|
|
|
<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>
|
2016-05-02 15:30:12 +02:00
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-09-09 13:07:01 +02:00
|
|
|
</div>
|
2016-05-02 15:30:12 +02:00
|
|
|
{else}
|
|
|
|
<div id="block-history" class="block-center">
|
2016-09-09 13:07:01 +02:00
|
|
|
<p class="warning">{l s='No card register' mod='paymentinfo'}</p>
|
2016-05-02 15:30:12 +02:00
|
|
|
</div>
|
2016-07-18 11:45:18 +02:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2016-09-09 13:07:01 +02:00
|
|
|
<h3>{l s='My paypal account' mod='paymentinfo'}</h3>
|
2016-07-18 11:45:18 +02:00
|
|
|
|
2016-09-09 13:07:01 +02:00
|
|
|
{if $paypal_accounts}
|
|
|
|
<div class="block-paypal">
|
2016-07-18 11:45:18 +02:00
|
|
|
<table class="std">
|
|
|
|
<thead>
|
2016-09-09 13:07:01 +02:00
|
|
|
<th class="item">{l s='Name' mod='paymentinfo'}</th>
|
|
|
|
<th class="item">{l s='Email' mod='paymentinfo'}</th>
|
2016-09-15 13:01:20 +02:00
|
|
|
{* <th class="item">{l s='City' mod='paymentinfo'}</th> *}
|
2016-09-09 13:07:01 +02:00
|
|
|
<th class="item">{l s='Date add' mod='paymentinfo'}</th>
|
2016-07-18 11:45:18 +02:00
|
|
|
<th class="item">{l s='Action' mod='paymentinfo'}</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-09-09 13:07:01 +02:00
|
|
|
{foreach from=$paypal_accounts item=paypal name=accounts}
|
|
|
|
<tr class="alternate_item {if $smarty.foreach.accounts.index % 2 == 0}odd{else}even{/if}">
|
2016-09-09 13:09:43 +02:00
|
|
|
<td class="bold">{$paypal.name}</td>
|
2016-09-15 13:01:20 +02:00
|
|
|
<td >{$paypal.email}</td>
|
|
|
|
{* <td>{$paypal.city}</td> *}
|
2016-09-09 13:07:01 +02:00
|
|
|
<td>{$paypal.date_add|date_format:'d/m/Y'}</td>
|
2016-09-09 13:09:43 +02:00
|
|
|
<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>
|
2016-07-18 11:45:18 +02:00
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-09-09 13:07:01 +02:00
|
|
|
</div>
|
2016-07-18 11:45:18 +02:00
|
|
|
{else}
|
|
|
|
<div id="block-history" class="block-center">
|
2016-09-09 13:07:01 +02:00
|
|
|
<p class="warning">{l s='No account register' mod='paymentinfo'}</p>
|
2016-07-18 11:45:18 +02:00
|
|
|
</div>
|
2016-09-09 13:07:01 +02:00
|
|
|
{/if}
|