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/node.tpl

59 lines
1.6 KiB

<table class="title">
<tr>
<td class="header">
<img class="icon" src="images/network-ethernet.png" alt="" />
{$lang_nodes} {if $subnet_id}in {$subnet}{/if} ({$nodes|@count})
</td>
<td align="right">
{if $suser_add || $suser_admin}
<a href="node.php?f=add&subnet_id={$subnet_id}"><img src="images/add.png" alt="{$lang_node_add}"{if $suser_tooltips} title="{$lang_node_add}"{/if}></a>
{/if}
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{$lang_ip}
</td>
<td class="header">
{$lang_node_info}
</td>
<td class="header">
{$lang_asset_name}
</td>
<td class="header">
{$lang_assetclass}
</td>
<td class="header">
{$lang_asset_info}
</td>
</tr>
{foreach item=node from=$nodes}
{if not $node.deleted or $suser_admin or $suser_manage}
<tr>
<td class="label">
<a href="node.php?f=view&id={$node.node_id}">{if $node.node_ip}{if $node.deleted}<s>{$node.node_ip}</s>{else}{$node.node_ip}{/if}{else}(leer){/if}</a>
</td>
<td class="value">
{$node.node_info}
</td>
<td class="value">
<a href="asset.php?f=view&id={$node.asset_id}">{$node.asset_name}</a>
</td>
<td class="value">
{$node.assetclass_name}
</td>
<td class="value">
{$node.asset_info}
</td>
</tr>
{/if}
{foreachelse}
<tr>
<td colspan="5">
{$lang_node_none}
</td>
</tr>
{/foreach}
</table>