{** * templates/manager/people/searchUsers.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Search form for enrolled users. * * *} {strip} {translate|assign:"pageTitleTranslated" key="manager.people.roleEnrollment" role=$roleName|translate} {include file="common/header.tpl"} {/strip}
{if not $omitSearch}
 

{foreach from=$alphaList item=letter}{if $letter == $searchInitial}{$letter|escape}{else}{$letter|escape}{/if} {/foreach}{if $searchInitial==''}{translate key="common.all"}{else}{translate key="common.all"}{/if}

{/if}
{if !$roleId}

{translate key="manager.people.enrollUserAs"}

{/if}
{iterate from=users item=user} {assign var="userid" value=$user->getId()} {assign var="stats" value=$statistics[$userid]} {/iterate} {if $users->wasEmpty()} {else} {/if}
 
  {sort_heading key="user.username" sort="username"} {sort_heading key="user.name" sort="name"} {sort_heading key="user.email" sort="email"} {translate key="common.action"}
 
{$user->getUsername()|escape} {$user->getFullName(true)|escape} {assign var=emailString value=$user->getFullName()|concat:" <":$user->getEmail():">"} {url|assign:"url" page="user" op="email" to=$emailString|to_array} {$user->getEmail()|truncate:20:"..."|escape} {icon name="mail" url=$url} {if $roleId} getId()}" class="action">{translate key="manager.people.enroll"} {else} {translate key="manager.people.enroll"} {/if} {if $thisUser->getId() != $user->getId()} {if $user->getDisabled()} | getId()}" class="action">{translate key="manager.people.enable"} {else} | {translate key="manager.people.disable"} {/if} {/if}
 
{translate key="common.none"}
 
{page_info iterator=$users} {page_links anchor="users" name="users" iterator=$users searchInitial=$searchInitial searchField=$searchField searchMatch=$searchMatch search=$search dateFromDay=$dateFromDay dateFromYear=$dateFromYear dateFromMonth=$dateFromMonth dateToDay=$dateToDay dateToYear=$dateToYear dateToMonth=$dateToMonth roleId=$roleId sort=$sort sortDirection=$sortDirection}
{if $backLink} {translate key="$backLinkLabel"} {/if} {include file="common/footer.tpl"}