{extends file="layout.html"} {block name=title}::: LMS :{$layout.pagetitle|striphtml} :::{/block} {block name=module_content} {if $layout.module=="accountsearch"}{assign var=suffix value="&s=1"}{/if}

{$layout.pagetitle}

{if $listdata.total != 0} {/if} {foreach $_ACCOUNTTYPES as $typeidx => $type} {$totalquota[$typeidx]=0} {/foreach} {cycle values="light,lucid" print=false} {section name=accountlist loop=$accountlist start=$start max=$pagelimit} {sectionelse} {/section} {if $listdata.total != 0} {/if}
{trans("Login")} {if $listdata.order == "login"}{/if} @ {trans("Domain:")} {if $listdata.order == "domain"}{/if}
{trans("Owner:")} {if $listdata.order == "customername"}{/if}
{trans("ID:")} {if $listdata.order == "id"}{/if} {trans("Type (sh/mail/www/ftp/sql/cloud):")}
{trans("Quota (sh/mail/www/ftp/sql/cloud):")}
{trans("Last login:")}{if $listdata.order == "lastlogin"} {/if}
{trans("Expiration date:")}{if $listdata.order == "expdate"} {/if}
{t a=$listdata.total}Total: $a{/t}
{if $suffix}{/if} {trans("Filter:")} {trans("Owner:")} {trans("Type:")} {trans("Status:")} {trans("Domain:")}
{trans("New Account")}
{include file="scroller.html" loop=$accountlist adlink=$suffix}
{$accountlist[accountlist].login}@{$accountlist[accountlist].domain} {if $accountlist[accountlist].ownerid}
{$accountlist[accountlist].customername|truncate:40:"...":true} ({$accountlist[accountlist].ownerid|string_format:"%04d"}) {/if}
({$accountlist[accountlist].id|string_format:"%04d"}) {foreach $_ACCOUNTTYPES as $typeidx => $type} {if ($accountlist[accountlist].type & $typeidx) == $typeidx}*{else}-{/if} {if !$type@last}/{/if} {/foreach}
{foreach $_ACCOUNTTYPES as $typeidx => $type} {$idx='quota_'|cat:$type.alias} {$accountlist[accountlist][$idx]} {$totalquota[$typeidx]=$totalquota[$typeidx]+$accountlist[accountlist][$idx]} {if !$type@last}/{/if} {/foreach}
{if $accountlist[accountlist].lastlogin}{$accountlist[accountlist].lastlogin|date_format:"%Y/%m/%d %H:%M"}{/if}
{if $accountlist[accountlist].expdate}{$accountlist[accountlist].expdate|date_format:"%Y/%m/%d"}{/if}
{assign var=account value="`$accountlist[accountlist].login`@`$accountlist[accountlist].domain`"} {trans( {trans( {trans( {trans( {trans(

{trans("No such accounts in database.")} {trans('Click $a to create.', ''|cat: trans("here")|cat: '')}

{include file="scroller.html" loop=$accountlist adlink=$suffix}
{trans("Total:")} {foreach $_ACCOUNTTYPES as $typeidx => $type} {$totalquota[$typeidx]} {if !$type@last}/{/if} {/foreach} {trans("New Account")}
{/block}