{* $Id: users.tpl,v 1.14.2.1 2002/12/30 07:09:31 svowl Exp $ *} {if $smarty.get.usertype eq "A"} {assign var="last_location" value="Manage administrators"} {elseif $smarty.get.usertype eq "B"} {assign var="last_location" value="Manage partners"} {elseif $smarty.get.usertype eq "P"} {assign var="last_location" value="Manage providers"} {else} {assign var="last_location" value="Manage customers"} {/if} {include file="location.tpl" last_location=$last_location} {if $smarty.get.usertype eq ""} This section allows you to manage user accounts. There are 3 types of user accounts: administrators, customers and partners.

{capture name=dialog} {include file="admin/main/partner_manage.tpl"}
Manage administrators {include file="buttons/go.tpl"}
Manage customers {include file="buttons/go.tpl"}
{/capture} {include file="dialog.tpl" title="Manage users" content=$smarty.capture.dialog extra="width=100%"} {else} This page allows you to search, modify or delete existing user accounts. As there can be thousands of customers in the database, the store cannot present all of them for selection purposes. Therefore, you need to use this page to select a portion (subset) of the customer list to display.

{capture name=dialog} {if $smarty.get.usertype eq "B"} {elseif $smarty.get.usertype ne "C"} {/if} {if $smarty.get.usertype eq "C"} {/if}
Create new Partner {include file="buttons/go.tpl"}

Create new Administrator {include file="buttons/go.tpl"}

Substring *
Membership
Registration type
    {include file="buttons/search.tpl"}       {include file="buttons/list_all.tpl"}
{/capture} {include file="dialog.tpl" title="Search for user" content=$smarty.capture.dialog extra="width=100%"}

{if $items_count ne ""} {$items_count} account(s) found {/if}

{if $users ne ""} {capture name=dialog} { include file="customer/main/navigation.tpl" }

{section name=cat_num loop=$users} { if %cat_num.first% } {/if} {if $smarty.get.usertype eq "P"}{/if} { if %cat_num.last% }
{ $users[cat_num].login }{ $users[cat_num].products_in_stock }  { $users[cat_num].firstname} {$users[cat_num].lastname} {if ($users[cat_num].last_login ne 0)} {$users[cat_num].last_login|date_format:"%d.%m.%Y %H:%M"} {else}Never logged {/if}
{/if} {/section}
{include file="buttons/modify.tpl"} {include file="buttons/delete.tpl"}
{ include file="customer/main/navigation.tpl" } {/capture} {include file="dialog.tpl" title="Search results" content=$smarty.capture.dialog extra="width=100%"} {/if} {/if}