{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}
| {icon name="network"} {$network.name} ({$network.id|string_format:"#%d"}) | {else}{icon name="network"} {trans("Name")} | ({$network.id|string_format:"#%d"}) | {/if}|||||
| {icon name="ipnetwork"} {trans("Address/prefix")} | {if $unlockedit} / {else} {$network.address}/{$network.prefix} {/if} | {icon name="hosting"} {trans("DHCP range")} |
{if $unlockedit}
{else} {$network.dhcpstart} {$network.dhcpend} {/if} |
{icon name="network"} {trans("Network size")} | {t a=$network.size}$a addresses{/t} | ||
| {icon name="hardware"} {trans("Interface")} | {if $unlockedit} {else} {$network.interface} {/if} | ||||||
| {icon name="vlan"} {trans("VLAN")} | {if $unlockedit} {else} {strip} {if !empty($network.vlanid)} ({$network.vlanid}) {/if} {if $network.vlandescription} , {$network.vlandescription|trunescape:45} {/if} {if $network.vlancustomername}{strip} , {$network.vlancustomername|escape} (#{$network.vlancustomerid}) {/if} {/strip} {/if} | ||||||
| {icon name="routing"} {trans("Gateway")} | {if $unlockedit} {else} {$network.gateway} {/if} | {icon name="hosting"} {trans("DNS servers")} |
{if $unlockedit}
{else} {$network.dns} {$network.dns2} {/if} |
||||
| {icon name="hosting"} {trans("WINS server")} | {if $unlockedit} {else} {$network.wins} {/if} | {icon name="node"} {trans("Domain")} | {if $unlockedit} {else} {$network.domain} {/if} | ||||
| {icon name="customer"} {trans("Customer")} | {if $unlockedit} {customerlist form="netedit" customers=$customers selected=$network.ownerid version=2 selectname="networkdata[customerid]" inputname="networkdata[ownerid]" selecttip="Assign network to customer" inputtip="Enter customer ID (optional)" form="netedit"} {else} {$network.customername} {/if} | ||||||
| {icon name="network"} {trans("Public network")} | {if $unlockedit} {elseif $network.pubnetid} {$network.pubnet.name} ({$network.pubnet.address}/{$network.pubnet.prefix}) {else} {trans("— none —")} {/if} | ||||||
| {icon name="hosting"} {trans("Host")} | {if $unlockedit} {else} {$network.hostname} {/if} | ||||||
| {icon name="node"} {trans("SNAT IP")} | {if $unlockedit} {elseif $network.snat != "0.0.0.0" && !empty($network.snat)} {$network.snat} {else} {trans("— none —")} {/if} | ||||||
| {icon name="netdev"} {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} {if !empty($network.allassignable)}{icon name="checked"}{/if} {/if} | |||||||
|
|||||||
|
{if $unlockedit && $netlistsize > 1}
{button id="change-net" data_name="{$network.name}" icon="transfer" label="Reassign to network"}
{/if} {if $unlockedit} {button id="putinorder-net" data_href="?m=netcmp&id={$network.id}" icon="sorting" label="Put in order"} {button accesskey="S" onclick="document.netedit.submit()" icon="save" label="Submit"} {button id="delete-net" type="link-button" data_href="?m=netdel&id={$network.id}" data_name="{$network.name}" icon="delete" label="Remove"} {button href="?m=netinfo&id={$network.id}" icon="cancel" label="Cancel"} {else} {button href="?m=netedit&id={$network.id}" accesskey="E" icon="edit" label="Edit"} {button id="delete-net" data_href="?m=netdel&id={$network.id}" data_name="{$network.name}" icon="delete" label="Remove"} {/if} |
|||||||
| {icon name="network"} {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.name[subnetwork]} {$icon="netdev"} {else} {$icon="node"} {/if} {icon name=$icon} {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} | {/section}|||