{* $Id: users.tpl,v 1.25.2.1 2003/04/04 06:26:48 svowl Exp $ *} {if $smarty.get.usertype eq "A"} {assign var="last_location" value="Manage administrators"} {elseif $smarty.get.usertype eq "P"} {assign var="last_location" value="Manage providers"} {elseif $smarty.get.usertype eq "B"} {assign var="last_location" value="Manage partners"} {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 4 types of user accounts: administrators, providers, customers and partners.

{capture name=dialog} {include file="admin/main/partner_manage.tpl"}
Manage administrators {include file="buttons/go.tpl"}

Manage providers {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 ne "C"} {/if} {if $smarty.get.usertype eq "C"} {/if}
Create new {if $smarty.get.usertype eq "A"} Administrator {elseif $smarty.get.usertype eq "P"} Provider {/if} {include file="buttons/go.tpl"}

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

{if $total_items gt "1"} {$total_items} account(s) found
{$lng.lbl_displaying}: {$first_item} - {$last_item} account(s) {elseif $total_items ge "0"} {$total_items} 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 $smarty.get.usertype eq "P"}{/if} {/if} {if $smarty.get.usertype eq "P"}{/if} { if %cat_num.last% }
UsernameItemsName Last login
{ $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="customer/main/navigation.tpl" } {/capture} {include file="dialog.tpl" title="Search results" content=$smarty.capture.dialog extra="width=100%"} {/if} {/if}