{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}

{$layout.pagetitle}

{block name="customerlist-list-columns"} {assign var='number_of_table_columns' value='4'} {/block} {block name="customerlist-list-header"} {/block} {block name="customerlist-list-filters"} {/block} {block name="customerlist-list-header-pagination"} {if $pagination->getTotal() != 0} {/if} {/block} {block name="customerlist-list-footer-pagination"} {if $pagination->getTotal() != 0} {/if} {/block} {block name="customerlist-list-footer"} {/block} {foreach $customerlist as $customer} {block name="customerlist-list-row"} {/block} {foreachelse} {block name="customerlist-list-empty-row"} {/block} {/foreach}
{icon name="customer"} {trans("First/last or Company name")} {if $filter.order == "customername"}{/if} / {icon name="karma"} {trans("Karma")} {if $filter.order == "karma"}{/if}
{icon name="home"} {trans("Address")} {if $filter.order == "address"}{/if}
{trans("External ID")} {if $filter.order == "extid"}{/if} / {trans("ID")} {if $filter.order == "id"}{/if}
{trans("Services")}
{if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_finances')} {trans("Balance")} {if $filter.order == "balance"}{/if}
{trans("Subscription")} {if $filter.order == "tariff"}{/if} {/if}
{t a=$pagination->getTotal()}Total: $a{/t}
{icon name="filter"} {division_selection name="d" selected=$filter.division onchange="document.choosefilter.submit();" label="Division" tip=""} {if is_array($customergroups) && count($customergroups)} {else} {/if} {if !empty($nodegroups) && count($nodegroups)} {else} {/if}
{persistent_filter}
{include file="pagination.html"}
{include file="pagination.html"}
  {if ConfigHelper::checkConfig('privileges.superuser') || (!ConfigHelper::checkConfig('privileges.hide_finances') && !ConfigHelper::checkConfig('privileges.hide_summaries'))} {trans("Outstandings")}:
{trans("Overcharges")}: {/if}
{if ConfigHelper::checkConfig('privileges.superuser') || (!ConfigHelper::checkConfig('privileges.hide_finances') && !ConfigHelper::checkConfig('privileges.hide_summaries'))} {$filter.below|money_format}
{$filter.over|money_format} {/if}
{t a=$pagination->getTotal()}Total: $a{/t}
{if $customer.info} {/if} {$customer.customername|escape} {if !empty($customer.karma)} ({$customer.karma}) {/if}
 {$customer.full_address}{if $customer.country != ""}, {t}{$customer.country}{/t}{/if}
({if $customer.extid}{$customer.extid|escape} / {/if}{$customer.id|string_format:"%04d"})
{if $customer.account} {else} --- {/if}
{if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_finances')} {$customer.balance|money_format}
{$customer.tariffvalue|money_format} {/if}
{if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_finances')} {if $customer.balance < 0} {button type="link" class="balanceok-customer" href="?m=customerbalanceok&id={$customer.id}" icon="settle" tip="Account"} {/if} {/if} {if $customer.account} {if $customer.status == $smarty.const.CSTATUS_CONNECTED} {if $customer.nodeac == 1} {button type="link" icon="connected" tip="Disconnect All" href="?m=nodeset&ownerid={$customer.id}"} {else} {if $customer.nodeac == 2} {button type="link" icon="mixconnected" tip="Disconnect All" href="?m=nodeset&ownerid={$customer.id}"} {else} {button type="link" icon="disconnected" tip="Connect All" href="?m=nodeset&ownerid={$customer.id}&access=1"} {/if} {/if} {/if} {/if} {if $customer.warncount} {if $customer.status == $smarty.const.CSTATUS_CONNECTED} {if $customer.nodewarn == 1} {if $customer.message}{$tip=htmlspecialchars($customer.message)}{else}{$tip="Disable notices for all"}{/if} {button type="link" icon="warnon" tip=$tip href="?m=nodewarn&ownerid={$customer.id}"} {else} {if $customer.nodewarn == 2} {if $customer.message}{$tip=htmlspecialchars($customer.message)}{else}{$tip="Disable notices for all"}{/if} {button type="link" icon="warnmix" tip=$tip href="?m=nodewarn&ownerid={$customer.id}"} {else} {if $customer.message}{$tip=htmlspecialchars($customer.message)}{else}{$tip="Enable notices for all"}{/if} {button type="link" icon="warnoff" tip=$tip href="?m=nodewarn&ownerid={$customer.id}&warning=1"} {/if} {/if} {/if} {/if} {if $customer.deleted} {if ConfigHelper::checkPrivilege('permanent_customer_removal')} {button type="link" class="remove-button" icon="clear" tip="Remove permanently" href="?m=customerdel&id={$customer.id}&type=permanent"} {/if} {button type="link" icon="restore" tip="Recover" href="?m=customeredit&id={$customer.id}&action=recover"} {else} {if ConfigHelper::checkPrivilege('customer_removal')} {button type="link" class="delete-customer" icon="delete" tip="Delete" href="?m=customerdel&id={$customer.id}"} {/if} {button type="link" icon="edit" tip="Edit" href="?m=customeredit&id={$customer.id}"} {/if} {button type="link" icon="info" tip="Info" href="?m=customerinfo&id={$customer.id}"}
{trans("No such customers matching search criteria or list is empty.")}
{/block}