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

{$layout.pagetitle}

{$lastonline_limit=ConfigHelper::getConfig('phpui.lastonline_limit')} {if $pagination->getTotal() != 0} {/if} {foreach $netdevlist as $netdev} {if $netdevlist[netdevlist.index_next].ownerid == $netdev.ownerid && $listdata.order == "owner"}{cycle print=false}{/if} {foreachelse} {/foreach} {if $pagination->getTotal() != 0} {/if}
{icon name="netdev"} {trans("Name:")} {if $listdata.order == "name"}{/if}
{icon name="type"} {trans("Type")} {if $listdata.order == "type"}{/if} {icon name="producer"} {trans("Manufacturer:")} {if $listdata.order == "producer"}{/if} / {icon name="model"} {trans("Model:")} {if $listdata.order == "model"}{/if}
{icon name="location"} {trans("Location")} {if $listdata.order == "location"}{/if} {icon name="netnode"} {trans("Network node")} {if $listdata.order == "netnode"}{/if}
{icon name="customer"} {trans("Customer")} {if $listdata.order == "customername"}{/if}
{icon name="id"} ID {if $listdata.order == "id"}{/if} {icon name="port"}{trans("Number of ports:")} {if $listdata.order == "ports"}{/if} ({trans("Ports used:")}{if $listdata.order == "takenports"}{/if})
{icon name="serial"}{trans("Serial number")} {if $listdata.order == "serialnumber"}{/if}
{trans("Total:")} {$listdata.total|default:"0"}
{icon name="filter"}
{include file="pagination.html"}
{if $netdev.lastonline} {if ($smarty.now-$netdev.lastonline) > $lastonline_limit} {else} {/if} {else} {/if} "|default:trans("— no description —")}"> {$netdev.name}
{if $netdev.producer} {icon name="type"} {$netdev.producer} {if $netdev.model}/ {$netdev.model}{/if} {if !empty($netdev.devtype)} ({strip} {trans($netdev.devtypename)}  -  {if empty($netdev.devtypepassive)}{trans("active")}{else}{trans("passive")}{/if} {/strip}) {/if} {else}
{/if}
{if $netdev.location} {icon name="location" label=$netdev.location} {if $netdev.borough_name}
({$netdev.state_name} / {$netdev.district_name} / {$_BOROUGHTYPES[$netdev.borough_type]} {$netdev.borough_name})
{/if} {elseif $netdev.netnodeid && $netnodes[$netdev.netnodeid].location} {$netnodeid=$netdev.netnodeid} {$netnodes[$netnodeid].location} {trans("(from network node)")} {if $netnodes[$netnodeid].location_borough_name}
({$netnodes[$netnodeid].location_state_name} / {$netnodes[$netnodeid].location_district_name} / {$_BOROUGHTYPES[$netnodes[$netnodeid].location_borough_type]} {$netnodes[$netnodeid].location_borough_name})
{/if} {/if} {if $netdev.ownerid}
{button type="link" icon="customer" label=$netdev.customername href="?m=customerinfo&id={$netdev.ownerid}"}
{/if}
{if $netdev.netnode} {$netdev.netnode}{/if} {if $netdev.customerid} {$netdev.customerid}{/if} ({$netdev.id|string_format:"%04d"}) {icon name="port" label="{$netdev.ports} ({$netdev.takenports})"}
{icon name="serialnumber" label=$netdev.serialnumber}
{if $netdev.filecontainers} {foreach $netdev.filecontainers as $filecontainer} {if $filecontainer.files} {button class="models-toggle-file-list" type="link" icon="attachment" tip="Show file list" resourceid={$filecontainer.id} label="{$filecontainer.description|default:'---'}"} {/if} {/foreach} {/if} {foreach $netdev.customlinks as $link} {if isset($link.icon)} {$link.label} {else} {$link.label} {/if} {if isset($link.extra)}{$link.extra}{/if} {/foreach} {buttons} {button type="link" icon="delete" class="delete-netdev" tip="Delete" href="?m=netdevdel&id={$netdev.id}&is_sure=1"} {button type="link" icon="edit" tip="Edit" href="?m=netdevedit&id={$netdev.id}"} {button type="link" icon="clone" tip="Clone" href="?m=netdevadd&id={$netdev.id}&clone=1"} {button type="link" icon="info" tip="Info" href="?m=netdevinfo&id={$netdev.id}"} {/buttons}
{trans("There are no devices in your database.")}
{include file="pagination.html"}
{trans("Total:")} {$listdata.total|default:"0"}
{/block}