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

{$layout.pagetitle}

{if $unlockedit}{/if} {if !$unlockedit} {else} {/if} {if !$unlockedit} {/if} {if $network.ownerid || $unlockedit} {/if} {if $network.hostid || $unlockedit} {/if} {if $network.authtype || $unlockedit} {/if} {if $network.notes || $unlockedit} {/if} {if $unlockedit}{/if} {if $network.page} {/if}
{$network.name} ({$network.id|string_format:"%04d"}) {trans("Name:")} ({$network.id|string_format:"%04d"})
{trans("Address/prefix:")} {if $unlockedit} / {else}{$network.address}/{$network.prefix}{/if} {trans("DHCP range:")} {if $unlockedit}
{else} {$network.dhcpstart}
{$network.dhcpend} {/if}
{trans("Network size:")} {t a=$network.size}$a addresses{/t}
{trans("Interface:")} {if $unlockedit} {trans("vlan:")} {else} {if !empty($network.interface)}{$network.interface}{/if}{if !empty($network.vlanid)}, {trans("vlan:")} {$network.vlanid}{/if} {/if}
{trans("Gateway:")} {if $unlockedit} {else} {$network.gateway} {/if} {trans("DNS servers:")} {if $unlockedit}
{else} {$network.dns}
{$network.dns2} {/if}
{trans("WINS server:")} {if $unlockedit} {else} {$network.wins} {/if} {trans("Domain:")} {if $unlockedit} {else} {$network.domain} {/if}
{trans("Customer:")} {if $unlockedit} {customerlist form="netedit" customers=$customers selected=$network.ownerid selectname="networkdata[customerid]" inputname="networkdata[ownerid]" selecttip="Assign network to customer" inputtip="Enter customer ID (optional)"} {else} {$network.customername} {/if}
{trans("Host:")} {if $unlockedit} {else} {$network.hostname} {/if}
{trans("Type:")} {$first = true} {foreach $_SESSIONTYPES as $idx => $sessiontype} {if $unlockedit} {else} {if $network.authtype & $idx} {if !$first} / {/if}{$sessiontype.label}{$first = false}{/if} {/if} {/foreach}
{if $unlockedit} {else}
{$network.notes|replace:"\n":"
"}
{/if}
{if $unlockedit}
{trans("Put in order")} {trans( {if $netlistsize > 1} {trans("Reassign to network:")} {/if} {trans("Submit")} {trans( {trans("Remove")} {trans( {trans("Cancel")} {trans(
{else} {trans("Edit")} {trans( {trans("Remove")} {trans( {/if}
{cycle values="light,lucid" print=false} {section name=network loop=$network.nodes.id max=$network.rows} {section name=subnetwork loop=$network.nodes.address start=$smarty.section.network.index step=$network.rows} {/section} {/section}
{trans("IP addresses status:")} {if $network.page > 1}«««{else}«««{/if} {t a=$network.page b=$network.pages}Page $a of $b{/t} {if $network.page < $network.pages}»»»{else}»»»{/if}
{if $network.page > 1}«««{else}«««{/if} {t a=$network.page b=$network.pages}Page $a of $b{/t} {if $network.page < $network.pages}»»»{else}»»»{/if} {t a=$network.assigned}Total: $a{/t} ({trans("this page:")} {$network.pageassigned|default:"0"}, {trans("free:")} {$network.free})
{if !$network.nodes.ownerid[subnetwork] && $network.nodes.netdev[subnetwork]} {$network.nodes.name[subnetwork]} {else} {if $network.nodes.id[subnetwork]} {$network.nodes.name[subnetwork]} {else} {if $network.nodes.name[subnetwork]} {$network.nodes.name[subnetwork]} {else} {$network.nodes.address[subnetwork]} {/if} {/if} {/if}
{if $unlockedit} {/if} {/block}