{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Customer'}{/block} {block name="check-permissions"}admin.customer.view{/block} {block name="main-content"} {assign var=customer_page value={$smarty.get.page|default:1}}
{module_include location='customer_top'}
{ifloop rel="customer_list"} {module_include location='category_list_header'} {loop name="customer_list" type="customer" visible="*" last_order="1" backend_context="1" page={$customer_page} limit={$display_customer}} {module_include location='customer_list_row'} {/loop} {/ifloop}
{intl l="Customers list"} {module_include location='customer_list_caption'} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.customers.create"} {/loop}
{intl l="customer ref"} {intl l="company"} {intl l="firstname & lastname"} {intl l="last order"} {intl l='order amount'} {intl l='Actions'}
{#REF} {#COMPANY} {#FIRSTNAME} {#LASTNAME} {format_date date=$LASTORDER_DATE} {format_number number=$LASTORDER_AMOUNT}
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.customer.edit"} {/loop} {loop type="auth" name="can_send_mail" roles="ADMIN" permissions="admin.customer.sendMail"} {/loop} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.customer.delete"} {/loop}
{module_include location='customer_bottom'}
    {if #customer_page != 1}
  • «
  • {else}
  • «
  • {/if} {pageloop rel="customer_list"} {if #PAGE != #CURRENT}
  • #PAGE
  • {else}
  • #PAGE
  • {/if} {if #PAGE == #LAST && #LAST != #CURRENT}
  • »
  • {else}
  • »
  • {/if} {/pageloop}
{/block}