Moved towards smarty templates, support php7, switched to mysqli,
finalized language support and fixed some more bugs
This commit is contained in:
+188
-180
@@ -1,180 +1,188 @@
|
||||
<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>
|
||||
|
||||
<p>
|
||||
|
||||
[BLOCK subnet_table AS subnet_table]
|
||||
<table class="info">
|
||||
<tr>
|
||||
<td class="header">
|
||||
{lang_subnet}
|
||||
</td>
|
||||
<td class="header" align="right">
|
||||
[BLOCK noselect]
|
||||
{iprange1}.{iprange2}.{iprange3}.{iprange4}
|
||||
[END noselect]
|
||||
[BLOCK one_select]
|
||||
{iprange1}.{iprange2}.
|
||||
<select name="pagination" onchange="changelink(this.options[this.selectedIndex].value);">
|
||||
[BLOCK one_select_row]
|
||||
<option value="{subnet_id}&page={iprange1}.{iprange2}.{iprange3}.0" {row_selected}>{iprange3}.0</option>
|
||||
[END one_select_row]
|
||||
</select>
|
||||
[END one_select]
|
||||
[BLOCK two_select]
|
||||
<select name="pagination" onchange="changelink(this.options[this.selectedIndex].value);">
|
||||
[BLOCK two_select_row1]
|
||||
<option value="{subnet_id}&page={iprange1}.{iprange2}.{iprange3}.0" {row1_selected}>{iprange1}.{iprange2}</option>
|
||||
[END two_select_row1]
|
||||
</select>
|
||||
<select name="pagination" onchange="changelink(this.options[this.selectedIndex].value);">
|
||||
[BLOCK two_select_row2]
|
||||
<option value="{subnet_id}&page={iprange1}.{iprange2}.{iprange3}.0" {row2_selected}>{iprange3}.0</option>
|
||||
[END two_select_row2]
|
||||
</select>
|
||||
[END two_select]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" colspan="2">
|
||||
[BLOCK node_table AS node_table]
|
||||
<table class="subnetview">
|
||||
<tr>
|
||||
[BLOCK node_row]
|
||||
<td>
|
||||
<a href="{url}" onMouseOver="changetext('remotetext','{remotetext}')" onMouseOut="changetext('remotetext',' ')"><img src="image.php?color={assetclassgroup_color}" alt="{remotetext}"></a>
|
||||
</td>
|
||||
{tr}
|
||||
[END node_row]
|
||||
</tr>
|
||||
</table>
|
||||
<a id="remotetext"> </a>
|
||||
[END node_table]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
{lang_subnet_subnetaddress}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
{lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
{subnetmask1}.{subnetmask2}.{subnetmask3}.{subnetmask4}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
{lang_subnet_nodesinsubnet}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="node.php?subnet_id={subnet_id}">{node_counter}</a> / {host_counter} ({subnet_usedpercentage}%)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
{lang_subnet_info}
|
||||
</td>
|
||||
<td class="value">
|
||||
{subnet_info}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
[END subnet_table]
|
||||
|
||||
<p>
|
||||
|
||||
<table class="info">
|
||||
<tr>
|
||||
<td class="header">
|
||||
{lang_assetclasses}
|
||||
</td>
|
||||
<td class="header_right">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
<img src="image.php?color={config_color_unused}" alt="{lang_unassigned}"> {lang_unassigned}
|
||||
</td>
|
||||
<td>
|
||||
{free_counter}
|
||||
</td>
|
||||
</tr>
|
||||
[BLOCK assetclassgroup_table AS assetclassgroup_table]
|
||||
[BLOCK assetclassgroup_row]
|
||||
<tr>
|
||||
<td class="label">
|
||||
<img src="image.php?color={assetclassgroup_color}" alt="{assetclassgroup_name}"> <a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
|
||||
</td>
|
||||
<td>
|
||||
{assetclassgroup_node_counter}
|
||||
</td>
|
||||
</tr>
|
||||
[END assetclassgroup_row]
|
||||
[END assetclassgroup_table]
|
||||
</table>
|
||||
|
||||
<p>
|
||||
|
||||
<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} ({vlan_counter})
|
||||
</td>
|
||||
<td class="value">
|
||||
[BLOCK vlan_table AS vlan_table]
|
||||
[BLOCK vlan_row]
|
||||
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name} ({vlan_number})</a><br>
|
||||
[END vlan_row]
|
||||
[END vlan_table]
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
|
||||
<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} ({location_counter})
|
||||
</td>
|
||||
<td class="value">
|
||||
[BLOCK location_table AS location_table]
|
||||
[BLOCK location_row]
|
||||
<a href="locationview.php?location_id={location_id}">{location_name}</a><br>
|
||||
[END location_row]
|
||||
[END location_table]
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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',' ')"><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"> </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} / {$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> / {$host_counter} ({$subnet_usedpercentage}%)
|
||||
{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">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{if $subnet_proto_vers eq 4}
|
||||
<tr>
|
||||
<td class="label">
|
||||
<img src="image.php?color={$config_color_unused}" alt="{$lang_unassigned}"> {$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}"> <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>
|
||||
|
||||
Reference in New Issue
Block a user