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

125 lines
2.7 KiB

<script language="javascript">
function linkTo(optVal){
if(optVal=="")
return false;
window.location='subnetview.php?subnet_id='+optVal;
}
</script>
<script type="text/javascript">
function change(id,newtext) {
document.getElementById(id).innerHTML=newtext
}
</script>
<table border="0" width="100%">
<tr>
<td>
<b>{lang_subnet}:</b>
</td>
<td align="right">
<a href="subnetedit.php?subnet_id={subnet_id}"><img src="images/edit.gif" border="0" title="{lang_subnet_edit}"></a>
<a href="subnetdel.php?subnet_id={subnet_id}"><img src="images/del.gif" border="0" title="{lang_subnet_del}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
<table border="0" width="100%">
<tr>
<td>
<b>{lang_subnet_subnetaddress}:</b>&nbsp;{subnet_address}/{subnet_mask}
</td>
<td align="right">
{pagination}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
[BLOCK table AS subnet]
<table border="0">
<tr>
[BLOCK iprow]
<td><a href="{url}" onMouseOver="change('remotetext','{remotetext}')" onMouseOut="change('remotetext','&nbsp;')"><img src="image.php?color={color}" border="0"></a></td>{tr}
[END iprow]
</tr>
</table>
[END table]
</td>
</tr>
<tr>
<td>
<table border="0">
<tr>
<td>
<a id="remotetext">&nbsp;</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0">
<tr>
<td>
<table border="0">
<tr>
<td>
<b>{lang_vlans}:</b>
</td>
<td>
[BLOCK table AS vlan]
[BLOCK vlanrow]
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name}</a><br>
[END vlanrow]
[END table]
</td>
</tr>
<tr>
<td>
<b>{lang_locations}:</b>
</td>
<td>
[BLOCK table AS location]
[BLOCK locationrow]
<a href="locationview.php?location_id={location_id}">{location_name}</a><br>
[END locationrow]
[END table]
</td>
</tr>
<tr>
<td>
<b>{lang_subnet_info}:</b>
</td>
<td>
{subnet_info}
</td>
</tr>
</table>
</td>
<td width="100">
&nbsp;
</td>
<td>
[BLOCK table AS assetclassgroup]
<table border="0">
[BLOCK assetclassgrouprow]
<tr>
<td>
<img src="image.php?color={color}">&nbsp;<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
</td>
</tr>
[END assetclassgrouprow]
</table>
[END table]
</td>
</tr>
</table>