{if !$customer_details}
{if $customers_has_been_exported_succefully == 1}
{$smarty.const.ADMIN_CUSTOMERS_HAS_BEEN_EXPORTED_SUCCESSFULLY}!
{$smarty.const.ADMIN_DOWN_LOAD} ( {$file_size} b )

{/if}

{$smarty.const.ADMIN_CUSTOMER_LOGIN} | {$smarty.const.ADMIN_CUSTOMER_FIRST_NAME} | {$smarty.const.ADMIN_CUSTOMER_LAST_NAME} | {$smarty.const.ADMIN_CUSTOMER_EMAIL} | {$smarty.const.ADMIN_CUSTOMER_GROUP_NAME} | {$smarty.const.ADMIN_REGISTRATION_TIME} | {$smarty.const.STR_ACTSTATE} | Del
{assign var="admhl" value=0} {section name=i loop=$customers} {if $admhl eq 1}
{else}{assign var="admhl" value=1}{/if}
{$customers[i].Login} | {$customers[i].first_name} | {$customers[i].last_name} | {if $smarty.const.CONF_BACKEND_SAFEMODE eq 0}{$customers[i].Email}{else}{$smarty.const.ADMIN_SAFEMODE_BLOCKED}{/if} | {$customers[i].custgroup_name} | {$customers[i].reg_datetime} | {if $customers[i].ActivationCode}{$smarty.const.STR_NOTACTIVATED} {$smarty.const.ACTIVATE_BUTTON}{else}{$smarty.const.STR_ACTIVATED}{/if} | {if $customers[i].allowToDelete}X{/if}
{sectionelse}
{$smarty.const.ADMIN_NO_VALUES}
{/section} {if $navigator}
{$navigator}

{else}

{/if}
{if $customers}

{$smarty.const.ADMIN_EXPORT_USER_TO_FILE}{/if} {else} {if $customerID eq NULL} {$smarty.const.ADMIN_NO_RECORD_FOUND} {if $returnUrl} {else} {/if} <<{$smarty.const.ADMIN_BACK_TO_SEARCH_FORM} {else}

{if $customer_details == 'contact_info'} {$smarty.const.STRING_CONTACT_INFORMATION_DOWN_CASE} {else} | {$smarty.const.STRING_CONTACT_INFORMATION_DOWN_CASE} {/if} {if $customer_details == 'address_book'} | {$smarty.const.STRING_ADDRESS_BOOK} {else} | {$smarty.const.STRING_ADDRESS_BOOK} {/if} {if $customer_details == 'order_history'} | {$smarty.const.STRING_ORDER_HISTORY} {else} | {$smarty.const.STRING_ORDER_HISTORY} {/if} {if $customer_details == 'visit_log'} | {$smarty.const.STRING_VISIT_HISTORY} {else} | {$smarty.const.STRING_VISIT_HISTORY} {/if} {if $customer_details == 'affiliate'} | {$smarty.const.STRING_AFFILIATE_PROGRAM} {else} | {$smarty.const.STRING_AFFILIATE_PROGRAM} {/if}

{if $customer_details == 'contact_info'}
{$smarty.const.CUSTOMER_LOGIN} | {$customerInfo.Login|replace:"<":"<"}
{$smarty.const.CUSTOMER_FIRST_NAME} | {$customerInfo.first_name|replace:"<":"<"}
{$smarty.const.CUSTOMER_LAST_NAME} | {$customerInfo.last_name|replace:"<":"<"}
{$smarty.const.CUSTOMER_EMAIL} | {if $smarty.const.CONF_BACKEND_SAFEMODE eq 0}{$customerInfo.Email|replace:"<":"<"}{else}{$smarty.const.ADMIN_SAFEMODE_BLOCKED}{/if}
{section name=i loop=$reg_fields_values}
{$reg_fields_values[i].reg_field_name}: | {$reg_fields_values[i].reg_field_value|replace:"<":"<"}
{/section}
{$smarty.const.CUSTOMER_SUBSCRIBE_FOR_NEWS} |
{$smarty.const.ADMIN_CUSTOMER_GROUP_NAME} | {if $customerInfo.custgroup_name}{$customerInfo.custgroup_name} {/if}{$smarty.const.ADMIN_CHANGE}
{$smarty.const.STR_ACTSTATE} | {if $customerInfo.ActivationCode} {$smarty.const.STR_NOTACTIVATED} {$smarty.const.ACTIVATE_BUTTON} {else} {$smarty.const.STR_ACTIVATED} {/if}
{if $customerInfo.ActivationCode}
{$smarty.const.STR_ACTCODE} | {$customerInfo.ActivationCode}
{/if} {if $customerInfo.allowToDelete}
{/if} {/if} {if $customer_details == 'address_book'} {section name=i loop=$addresses}
{$smarty.const.CUSTOMER_ADDRESS} {$smarty.section.i.index+1} {if $addresses[i].addressID == $defaultAddressID} ({$smarty.const.STRING_DEFAULT}) {/if} {$addresses[i].addressStr|replace:"<":"<"|replace:"<br>":" "}
{/section} {/if} {if $customer_details == 'order_history'} {if $orders} {include file='admin/admin_order_history.tpl.html'} {else} < {$smarty.const.ADMIN_NO_RECORD_FOUND} > {/if} {/if} {if $customer_details == 'visit_log'} {if $visits}
IP | {$smarty.const.ADMIN_CUSTOMER_ENTER_TIME}
{section name=i loop=$visits}
{$visits[i].customer_ip} | {$visits[i].customer_logtime}
{/section} {if $navigator}
{$navigator}
{/if} {else} < {$smarty.const.ADMIN_NO_RECORD_FOUND} > {/if} {/if} {if $customer_details == 'affiliate'} {include file="admin/custord_custlist_affiliate.tpl.html"} {/if}

{if $returnUrl} {else} {/if}{$smarty.const.ADMIN_BACK_TO_SEARCH_FORM} {/if} {/if}

{$smarty.const.USEFUL_FOR_YOU} {$smarty.const.ALERT_ADMIN2}