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

{$layout.pagetitle}

{if $listdata.total != 0} {/if} {foreach $customerlist as $customer} {/foreach} {section name=customerlist loop=$customerlist start=$start max=$pagelimit} {sectionelse} {/section} {if $listdata.total != 0} {/if}
{icon name="customer"} {trans("First/last or Company name:")} {if $listdata.order == "customername"}{/if} {icon name="karma"} {trans("Karma")} {if $filter.order == "karma"}{/if}
{icon name="home"} {trans("Address:")} {if $listdata.order == "address"}{/if}
{trans("ID:")} {if $listdata.order == "id"}{/if}
{trans("Services:")}
{if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_finances')}{trans("Balance:")} {if $listdata.order == "balance"}{/if}
{trans("Subscription:")} {if $listdata.order == "tariff"}{/if}{/if}
{t a=$listdata.total|default:"0"}Total: $a{/t} 
{include file="scroller.html" loop=$customerlist adlink="&search=1"}
{if $customerlist[customerlist].info} {/if} {$customerlist[customerlist].customername} {if !empty($customerlist[customerlist].karma)} ({$customerlist[customerlist].karma}) {/if}
 {$customerlist[customerlist].full_address}{if $customerlist[customerlist].country != ""}, {t}{$customerlist[customerlist].country}{/t}{/if}
({$customerlist[customerlist].id|string_format:"%04d"})
{if $customerlist[customerlist].account} {/if}
{if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_finances')} {if $customerlist[customerlist].balance < 0}{/if}{$customerlist[customerlist].balance|money_format}{if $customerlist[customerlist].balance < 0}{/if}
{$customerlist[customerlist].tariffvalue|money_format} {/if}
{if ConfigHelper::checkConfig('privileges.superuser') || !ConfigHelper::checkConfig('privileges.hide_finances')} {if $customerlist[customerlist].balance < 0} {button type="link" class="balanceok-customer" href="?m=customerbalanceok&id={$customerlist[customerlist].id}" icon="settle" tip="Account"} {/if} {/if} {if $customerlist[customerlist].account} {if $customerlist[customerlist].status == $smarty.const.CSTATUS_CONNECTED} {if $customerlist[customerlist].nodeac == 1} {button type="link" icon="connected" tip="Disconnect All" href="?m=nodeset&ownerid={$customerlist[customerlist].id}"} {else} {if $customerlist[customerlist].nodeac == 2} {button type="link" icon="mixconnected" tip="Disconnect All" href="?m=nodeset&ownerid={$customerlist[customerlist].id}"} {else} {button type="link" icon="disconnected" tip="Connect All" href="?m=nodeset&ownerid={$customerlist[customerlist].id}&access=1"} {/if} {/if} {/if} {/if} {if $customerlist[customerlist].warncount} {if $customerlist[customerlist].status == $smarty.const.CSTATUS_CONNECTED} {if $customerlist[customerlist].nodewarn == 1} {if $customerlist[customerlist].message}{$tip=htmlspecialchars($customerlist[customerlist].message)}{else}{$tip="Disable notices for all"}{/if} {button type="link" icon="warnon" tip=$tip href="?m=nodewarn&ownerid={$customerlist[customerlist].id}"} {else} {if $customerlist[customerlist].nodewarn == 2} {if $customerlist[customerlist].message}{$tip=htmlspecialchars($customerlist[customerlist].message)}{else}{$tip="Disable notices for all"}{/if} {button type="link" icon="warnmix" tip=$tip href="?m=nodewarn&ownerid={$customerlist[customerlist].id}"} {else} {if $customerlist[customerlist].message}{$tip=htmlspecialchars($customerlist[customerlist].message)}{else}{$tip="Enable notices for all"}{/if} {button type="link" icon="warnoff" tip=$tip href="?m=nodewarn&ownerid={$customerlist[customerlist].id}&warning=1"} {/if} {/if} {/if} {/if} {if $customerlist[customerlist].deleted} {if ConfigHelper::checkPrivilege('permanent_customer_removal')} {button type="link" class="remove-button" icon="clear" tip="Remove permanently" href="?m=customerdel&id={$customerlist[customerlist].id}&type=permanent"} {/if} {button type="link" icon="restore" tip="Recover" href="?m=customeredit&id={$customerlist[customerlist].id}&action=recover"} {else} {if ConfigHelper::checkPrivilege('customer_removal')} {button type="link" class="delete-customer" icon="delete" tip="Delete" href="?m=customerdel&id={$customerlist[customerlist].id}"} {/if} {button type="link" icon="edit" tip="Edit" href="?m=customeredit&id={$customerlist[customerlist].id}"} {/if} {button type="link" icon="info" tip="Info" href="?m=customerinfo&id={$customerlist[customerlist].id}"}
{trans("No such customers matching search criteria.")}
{include file="scroller.html" loop=$customerlist adlink="&search=1"}
{trans("Action:")} {if isset($groups)} {/if} {foreach $_CUSTOMERCONTACTTYPES as $contacttypeidx => $contacttype} {/foreach} {button icon="apply" label="Apply" id="customer-action-apply"}
  {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'))} {$listdata.below|money_format}
{$listdata.over|money_format}
{/if}
{trans("Total:")} {$listdata.total|default:"0"} 
{/block}