IP Reg is a IPAM tool to keep track of assets, nodes (IP addresses, MAC addresses, DNS aliases) within different subnets, over different locations or even VLAN's. Written in PHP, used with a MySQL-database to have a unique insight in your local network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
ipreg/tpl/subnetview.tpl

188 lines
4.6 KiB

<table class="title">
<tr>
<td class="header">
{$subnet_address}/{$subnet_mask}
</td>
<td align="right">
<a href="subnetedit.php?subnet_id={$subnet_id}"><img src="image.php?icon=edit" alt="{$lang_subnet_edit}"></a>
<a href="subnetdel.php?subnet_id={$subnet_id}"><img src="image.php?icon=delete" alt="{$lang_subnet_del}"></a>
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{$lang_subnet}
</td>
<td class="header" align="right">
{if $noselect eq TRUE}
{$subnet_address}
{/if}
</td>
</tr>
<tr>
<td class="label" colspan="2">
{if $subnet_proto_vers eq 4}
{foreach name=iptable item=adr from=$subnet}
<a href="{$adr.url}" onMouseOver="changetext('remotetext','{$adr.remotetext}')" onMouseOut="changetext('remotetext','&nbsp;')"><img src="image.php?color={$adr.assetclassgroup_color}" alt="{$adr.remotetext}"></a>
{if $smarty.foreach.iptable.iteration % $imagewrap eq 0}
<br />
{/if}
{/foreach}
{else}
Für IPv6 steht keine Graphik zur Verfügung.
{/if}
</td>
</tr>
{if $subnet_proto_vers eq 4}
<tr>
<td colspan="2">
<a id="remotetext">&nbsp;</a>
</td>
</tr>
{/if}
<tr>
<td class="label">
{$lang_subnet_subnetaddress}
</td>
<td class="value">
{if $subnet_proto_vers eq 4}
<a href="subnetview.php?subnet_id={$subnet_id}">{$subnet_address}</a>
{else}
{$subnet_address}&nbsp;/&nbsp;{$subnet_mask}
{/if}
</td>
</tr>
<tr>
<td class="label">
{$lang_proto_vers}
</td>
<td class="value">
{$subnet_proto_vers}
</td>
</tr>
{if $subnet_proto_vers eq 4}
<tr>
<td class="label">
{$lang_subnet_mask}
</td>
<td class="value">
{$subnetmask1}.{$subnetmask2}.{$subnetmask3}.{$subnetmask4}
</td>
</tr>
{/if}
{if $subnet_dhcpstart}
<tr>
<td class="label">
{$lang_subnet_dhcp}
</td>
<td class="value">
{$subnet_dhcpstart} - {$subnet_dhcpend}
</td>
</tr>
{/if}
<tr>
<td class="label">
{$lang_subnet_nodesinsubnet}
</td>
<td class="value">
{if $subnet_proto_vers eq 4}
<a href="node.php?subnet_id={$subnet_id}">{$node_counter}</a>&nbsp;/&nbsp;{$host_counter}&nbsp;({$subnet_usedpercentage}&#37;)
{else}
<a href="node.php?subnet_id={$subnet_id}">{$node_counter}</a>
{/if}
</td>
</tr>
{if $subnet_ntp_server}
<tr>
<td class="label">
NTP Server
</td>
<td class="value">
{$subnet_ntp_server}
</td>
</tr>
{/if}
<tr>
<td class="label">
{$lang_subnet_info}
</td>
<td class="value">
{$subnet_info}
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{$lang_assetclasses}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
{if $subnet_proto_vers eq 4}
<tr>
<td class="label">
<img src="image.php?color={$config_color_unused}" alt="{$lang_unassigned}">&nbsp;{$lang_unassigned}
</td>
<td>
{$free_counter}
</td>
</tr>
{/if}
{foreach item=assetclassgroup from=$assetclassgroups}
<tr>
<td class="label">
<img src="image.php?color={$assetclassgroup.color}" alt="{$assetclassgroup.name}">&nbsp;<a href="assetclassgroupview.php?assetclassgroup_id={$assetclassgroup.id}">{$assetclassgroup.name}</a>
</td>
<td>
{$assetclassgroup.counter}
</td>
</tr>
{/foreach}
</table>
<table class="info">
<tr>
<td class="header">
{$lang_vlans}
</td>
<td class="header_right">
<a href="subnetvlanedit.php?subnet_id={$subnet_id}"><img src="image.php?icon=edit" alt="{$lang_subnetvlan_edit}"></a>
</td>
</tr>
<tr>
<td class="label">
{$lang_vlans} ({$vlans|@count})
</td>
<td class="value">
{foreach item=vlan from=$vlans}
<a href="vlanview.php?vlan_id={$vlan.vlan_id}">{$vlan.vlan_name} ({$vlan.vlan_number})</a><br>
{/foreach}
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{$lang_locations}
</td>
<td class="header" align="right">
<a href="subnetlocationedit.php?subnet_id={$subnet_id}"><img src="image.php?icon=edit" alt="{$lang_location_edit}"></a>
</td>
</tr>
<tr>
<td class="label">
{$lang_locations} ({$locations|@count})
</td>
<td class="value">
{foreach item=location from=$locations}
<a href="locationview.php?location_id={$location.location_id}">{$location.location_name}</a><br>
{/foreach}
</td>
</tr>
</table>