{if $submitResult.name == 'add'}
{if $submitResult.status == 5}
{"Admin User %s has been added."|i18n:$submitResult.title}
{else}
{"Admin not added."|i18n}
{if $submitResult.status == 4}
{"This user already exists in global authentication table. You can either add that user, or create another one with a different username."|i18n}
{elseif $submitResult.status == 3}
{"Unable to create image library for user. Ensure your images folder is set to 777."|i18n}
{elseif $submitResult.status == 2}
{"Username exists. Please click back and try another."|i18n}
{elseif $submitResult.status == 1}
{"Ensure you enter both username and password."|i18n}
{elseif $submitResult.status == 0}
{"Disabled in demo."|i18n}
{elseif $submitResult.status == -1}
{"You have reached the limit of users you can add."|i18n}
{/if}
{/if}
{elseif $submitResult.name == 'addglobal'}
{if $submitResult.status}
{"Admin User \"%s\" added from the global users list."|i18n:$submitResult.user}
{else}
{"Admin User could not be added from the global users list. Probable cause is: Absolute User does not exists."|i18n:$submitResult.user}
{/if}
{elseif $submitResult.name == 'edit'}
{if $submitResult.status}
{"Changes successfully changed."|i18n}
{else}
{"Admin Info has not been updated. Please, try again later."|i18n}
{/if}
{elseif $submitResult.name == 'delete'}
{if $submitResult.status}
{"Admin successfully deleted."|i18n}
{else}
{"Admin User not deleted. Reasons can be:"|i18n}
{"1) Admin User not found;"|i18n}
{"2) You are trying to delete an Admin User who cannot be deleted ('admin' or your account);"|i18n}
{"3) You do not have privileges to delete Admin Users."|i18n}
{/if}
{elseif $submitResult.name == 'deleteglobal'}
{if $submitResult.status}
{"Global User \"%s\" deleted."|i18n:$submitResult.user}
{else}
{"User not deleted. Reasons can be:"|i18n}
{"1) User not found;"|i18n}
{"2) You are trying to delete a user who cannot be deleted ('admin' or your account);"|i18n}
{"3) You do not have privileges to delete users (you are not Absolute Admin)."|i18n}
{/if}
{elseif $submitResult.name == 'license'}
{if $submitResult.status}
{"License sucessfully updated."|i18n}
{else}
{"License NOT updated."|i18n}
{/if}
{/if}
{/if}
{"Admin Users"|i18n}
{if !$action}
{if $admin.id == 1}
{"You have a total of %d admin user spots. %d admin user spots are left and %d admin user spots have been used. You have %d report-only users."|i18n:$site.adminsMax:$site.adminsLeft:$adminsCnt:$reportOnlyCnt}
{/if}
{"Username"|i18n}
{"Name"|i18n}
{"Email"|i18n}
{"Lists"|i18n}
{"Subscribers"|i18n}
{"Options"|i18n}
{foreach from=$users item=u name=users}
{if $u.parentid == 0}
{if $admin.id == 1 or $u.id == $admin.id or ( $admin.parentid != 0 and $u.id == $admin.parentid )}
{$u.user}
{$u.firstname} {$u.lastname}
{$u.email}
{$u.list_count}
{$u.subscriber_count}
{if $admin.admin_add}
{if !isset($iseig) or $usercount < $admin.users_limit}
{"Add"|i18n}
{/if}
{/if}
{if $admin.admin_edit and !($u.id == 1 and $u.id != $admin.id)}
{"Edit"|i18n}
{/if}
{if $u.id != 1}
{if $u.parentid == 0}
{"Default List Settings"|i18n}
{/if}
{if $admin.id == 1 or ( $admin.id == $u.id and $admin.allow_branding )}
{"Branding"|i18n}
{/if}
{if $admin.id == 1 and !$admin.brand_demo}
{"Delete"|i18n}
{/if}
{else}
{if $admin.id == 1}
{"Branding"|i18n}
{/if}
{/if}
{/if}
{if $admin.admin_add and $absUsersCnt > 0 and ( !$action or $action == 'add' )}
{"Admin Users not in mailing software"|i18n}
{"Username"|i18n}
{"Name"|i18n}
{"Email"|i18n}
{"Options"|i18n}
{foreach from=$absUsers item=u name=absUsers}
{$u.username}
{$u.first_name} {$u.last_name}
{$u.email}
{if $admin.admin_add}
{/if}
{if $admin.absid == 1 and $admin.admin_delete}
{/if}
{/foreach}
{/if}
{if !isset($iseig) or $usercount < $admin.users_limit}
{if ( $site.adminsLeft > 0 and $admin.admin_add ) or ( $action == 'edit' and $admin.admin_edit )}
{* ADD/EDIT ADMIN FORM *}
{if $user.id == 0}{if $user.parentid == 0}{"Add A New Top-Level User"|i18n}{else}{"Add A New Sub-User"|i18n}{/if}{else}{"Edit User: %s"|i18n:$user.user}{/if}
{/if}
{elseif $site.limited == 0 and $action != 'edit' and $admin.admin_add and $site.adminsLeft == 0}
{"All of your user spots are currently filled. To add more visit support."|i18n}
{/if}
{if !$action and $admin.id == 1 and !$site.trial and !$site.free AND !$site.limited and !isset($iseig)}
{/if}