Refactored, no more redirects. Improved error messaging system
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add}
|
||||
<a href="assetadd.php"><img src="image.php?icon=add" alt="{$lang_asset_add}" {if $suser_tooltips}title="{$lang_asset_add}" {/if}/></a>
|
||||
<a href="asset.php?f=add"><img src="image.php?icon=add" alt="{$lang_asset_add}" {if $suser_tooltips}title="{$lang_asset_add}" {/if}/></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -37,7 +37,7 @@
|
||||
{foreach item=asset from=$assets}
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="assetview.php?asset_id={$asset.asset_id}">{$asset.asset_name}</a>
|
||||
<a href="asset.php?f=view&id={$asset.asset_id}">{$asset.asset_name}</a>
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="assetclass.php?f=view&id={$asset.assetclass_id}">{$asset.assetclass_name}</a>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add}
|
||||
<a href="assetadd.php?assetclass_id={$assetclass->assetclass_id}"><img src="image.php?icon=add" alt="{$lang_asset_add}" {if $suser_tooltips}title="{$lang_asset_add}" {/if}/></a>
|
||||
<a href="asset.php?f=add&assetclass_id={$assetclass->assetclass_id}"><img src="image.php?icon=add" alt="{$lang_asset_add}" {if $suser_tooltips}title="{$lang_asset_add}" {/if}/></a>
|
||||
{/if}
|
||||
{if $suser_edit}
|
||||
<a href="assetclass.php?f=edit&id={$assetclass->assetclass_id}"><img src="image.php?icon=edit" alt="{$lang_assetclass_edit}" {if $suser_tooltips}title="{$lang_asset_edit}" {/if}/></a>
|
||||
@@ -82,7 +82,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{foreach item=asset from=$assets}
|
||||
<a href="assetview.php?asset_id={$asset.asset_id}">{$asset.asset_name}</a>
|
||||
<a href="asset.php?f=view&id={$asset.asset_id}">{$asset.asset_name}</a>
|
||||
{$asset.asset_info}
|
||||
<br>
|
||||
{/foreach}
|
||||
|
||||
@@ -84,4 +84,24 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{if $zabbix}
|
||||
<table class="info">
|
||||
<tr>
|
||||
<td class="header">
|
||||
Zabbix
|
||||
</td>
|
||||
<td class="header_right">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
Host ID
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" size="8" name="x_zbx_host" value="{$refid}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
</form>
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
</td>
|
||||
<td class="header_right">
|
||||
{if $suser_edit}
|
||||
<a href="assignnodetoasset.php?asset_id={$asset->asset_id}"><img src="image.php?icon=edit" alt="{$lang_assignnodetoasset}"></a>
|
||||
<a href="node.php?f=link&asset_id={$asset->asset_id}"><img src="image.php?icon=edit" alt="{$lang_assignnodetoasset}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -106,7 +106,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{foreach item=node from=$nodes}
|
||||
<a href="nodeview.php?node_id={$node.node_id}">{if $node.node_ip}{$node.node_ip}{else}(leer){/if}</a>
|
||||
<a href="node.php?f=view&id={$node.node_id}">{if $node.node_ip}{$node.node_ip}{else}(leer){/if}</a>
|
||||
{if $node.node_info}{$node.node_info}{/if}<br>
|
||||
{/foreach}
|
||||
</td>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="redirect" value="assigniptonode">
|
||||
<form method="POST" action="node.php">
|
||||
<input type="hidden" name="node_ip" value="{$node_ip}">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
|
||||
@@ -10,7 +9,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[link]" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -37,7 +36,7 @@
|
||||
{$lang_subnet}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$subnet->id}&page={$node_ip}">{$subnet->address}/{$subnet->mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}&page={$node_ip}">{$subnet->address}/{$subnet->mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -50,12 +49,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="value">
|
||||
<input type="radio" name="action" value="assignnodetoasset" checked> {$lang_assignnodetoasset_existing}
|
||||
<input type="radio" id="opt1" name="action" value="assignnodetoasset" checked> <label for="opt1">{$lang_assignnodetoasset_existing}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="value">
|
||||
<input type="radio" name="action" value="nodeadd"> {$lang_assignnodetoasset_new}
|
||||
<input type="radio" id="opt2" name="action" value="nodeadd"> <label for="opt2">{$lang_assignnodetoasset_new}</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="assignnodetoasset">
|
||||
<form method="POST" action="node.php">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -8,7 +7,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-link]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
{$lang_length}
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" size="10" name="length" maxlength="80"> m
|
||||
<input type="text" size="10" name="length" maxlength="10" value="{$length}"> m
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -55,7 +55,7 @@
|
||||
Type
|
||||
</td>
|
||||
<td class="value">
|
||||
{html_options name=cable_type options=$type_options selected=$cable->cable_type}
|
||||
{html_options name=cable_type options=$type_options selected=$type}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -63,7 +63,7 @@
|
||||
# Links
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" size="4" name="links" maxlength="4">
|
||||
<input type="text" size="4" name="links" maxlength="4" value="{$links}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -71,7 +71,7 @@
|
||||
{$lang_color}
|
||||
</td>
|
||||
<td class="value">
|
||||
#<input type="text" {literal}class="color {pickerPosition:'right'}"{/literal} name="color" size="6" maxlength="6" value="{$cable->color}">
|
||||
#<input type="text" {literal}class="color {pickerPosition:'right'}"{/literal} name="color" size="6" maxlength="6" value="{$color}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -79,7 +79,7 @@
|
||||
{$lang_info}
|
||||
</td>
|
||||
<td class="value">
|
||||
<textarea name="info" cols="30" rows="10"></textarea>
|
||||
<textarea name="info" cols="30" rows="10">{$info}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
<table class="title">
|
||||
<tr>
|
||||
<td class="header">
|
||||
{$lang_comments}
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="info">
|
||||
<tr>
|
||||
<td class="header">
|
||||
{$lang_comments}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="value">
|
||||
{$comments}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{$lang_ipreg}</title>
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="locationsubnet">
|
||||
<input type="hidden" name="location_id" value="{$location->id}">
|
||||
<form method="POST" action="location.php">
|
||||
<input type="hidden" name="id" value="{$location->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
<td class="header">
|
||||
{$lang_locationsubnet}
|
||||
{$lang_locationsubnet} ADD
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[subnetlink]" src="images/page_save.png" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_location_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="locationview.php?location_id={$location->id}">{$location->name}</a>
|
||||
<a href="location.php?f=view&id={$location->id}">{$location->name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="locationsubnet">
|
||||
<input type="hidden" name="location_id" value="{$location_id}">
|
||||
<form method="POST" action="location.php">
|
||||
<input type="hidden" name="id" value="{$location->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
<td class="header">
|
||||
{lang_locationsubnet}
|
||||
{$lang_locationsubnet} DEL
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
{* TODO link und unlink icons! *}
|
||||
<input type="image" name="submit[subnetunlink]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +28,7 @@
|
||||
{$lang_location_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="locationview.php?location_id={$location_id}">{$location_name}</a>
|
||||
<a href="location.php?f=view&id={$location->id}">{$location->name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<form method="POST" action="location.php">
|
||||
<input type="hidden" name="redirect" value="locationsubnet">
|
||||
<input type="hidden" name="location_id" value="{$location->id}">
|
||||
<input type="hidden" name="id" value="{$location->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +9,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-link]" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +28,7 @@
|
||||
{$lang_location_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="locationview.php?location_id={$location->id}">{$location->name}</a>
|
||||
<a href="location.php?f=view&id={$location->id}">{$location->name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
</td>
|
||||
<td class="header_right">
|
||||
{if $suser_edit}
|
||||
<a href="locationsubnetedit.php?location_id={$location->id}"><img src="image.php?icon=edit" alt="{$lang_locationsubnet_edit}"></a>
|
||||
<a href="location.php?f=link&id={$location->id}"><img src="image.php?icon=edit" alt="{$lang_locationsubnet_edit}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -89,7 +89,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{foreach item=subnet from=$subnets}
|
||||
<a href="subnetview.php?subnet_id={$subnet.subnet_id}">{$subnet.subnet_address}/{$subnet.subnet_mask}</a><br>
|
||||
<a href="subnet.php?f=view&id={$subnet.subnet_id}">{$subnet.subnet_address}/{$subnet.subnet_mask}</a><br>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
Rule #{$nat.id} {$nat.description}
|
||||
</td>
|
||||
<td class="label">
|
||||
<a href="nodeview.php?node_id={$nat.nat_ext}">{$nat.node_ip_ext}</a>
|
||||
<a href="node.php?f=view&id={$nat.nat_ext}">{$nat.node_ip_ext}</a>
|
||||
{if $nat.port_ext}:{$nat.port_ext}{/if}
|
||||
<td class="label">
|
||||
<a href="nodeview.php?node_id={$nat.nat_int}">{$nat.node_ip_int}</a>
|
||||
<a href="node.php?f=view&id={$nat.nat_int}">{$nat.node_ip_int}</a>
|
||||
{if $nat.port_int}:{$nat.port_int}{/if}
|
||||
</td>
|
||||
<td class="value">
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="nat">
|
||||
<form method="POST" action="nat.php">
|
||||
<input type="hidden" name="node_id_ext" value="{$node_id_ext}">
|
||||
|
||||
<table class="title">
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[insert]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_ip}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="nodeview.php?node_id={$node_id_ext}">{$node_ip_ext}</a>
|
||||
<a href="node.php?f=view&id={$node_id_ext}">{$node_ip_ext}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="nat">
|
||||
<form method="POST" action="nat.php">
|
||||
<input type="hidden" name="node_id_ext" value="{$node->id_ext}">
|
||||
|
||||
<table class="title">
|
||||
@@ -10,7 +9,7 @@
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
{if $nat_options}
|
||||
<input type="image" src="image.php?icon=delete" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[delete]" src="image.php?icon=delete" alt="{$lang_submit}">
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -30,7 +29,7 @@
|
||||
{$lang_ip}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="nodeview.php?node_id={$node->id_ext}">{$node->ip_ext}</a>
|
||||
<a href="node.php?f=view&id={$node->id_ext}">{$node->ip_ext}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="redirect" value="nat">
|
||||
<form method="POST" action="nat.php">
|
||||
<input type="hidden" name="node_id" value="{$node->id}">
|
||||
|
||||
<table class="title">
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_ip}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="nodeview.php?node_id={$node->id}">{$node->ip}</a>
|
||||
<a href="node.php?f=view&id={$node->id}">{$node->ip}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -41,12 +40,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="value">
|
||||
<input type="radio" name="action" value="natadd" checked> {$lang_nat_add}
|
||||
<input type="radio" name="action" id="opt1" value="natadd" checked> <label for="opt2">{$lang_nat_add}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="value">
|
||||
<input type="radio" name="action" value="natdel"> {$lang_nat_del}
|
||||
<input type="radio" name="action" id="opt2" value="natdel"> <label for="opt2">{$lang_nat_del}</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
14
tpl/node.tpl
14
tpl/node.tpl
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add || $suser_admin}
|
||||
<a href="nodeadd.php?subnet_id={$subnet_id}"><img src="image.php?icon=add" alt="{$lang_node_add}"></a>
|
||||
<a href="node.php?f=add&subnet_id={$subnet_id}"><img src="image.php?icon=add" alt="{$lang_node_add}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -22,6 +22,9 @@
|
||||
<td class="header">
|
||||
{$lang_asset_name}
|
||||
</td>
|
||||
<td class="header">
|
||||
{$lang_assetclass}
|
||||
</td>
|
||||
<td class="header">
|
||||
{$lang_asset_info}
|
||||
</td>
|
||||
@@ -29,13 +32,16 @@
|
||||
{foreach item=node from=$nodes}
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="nodeview.php?node_id={$node.node_id}">{if $node.node_ip}{$node.node_ip}{else}(leer){/if}</a>
|
||||
<a href="node.php?f=view&id={$node.node_id}">{if $node.node_ip}{$node.node_ip}{else}(leer){/if}</a>
|
||||
</td>
|
||||
<td class="value">
|
||||
{$node.node_info}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="assetview.php?asset_id={$node.asset_id}">{$node.asset_name}</a>
|
||||
<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}
|
||||
@@ -43,7 +49,7 @@
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<td colspan="4">
|
||||
{$lang_node_none}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="node">
|
||||
<form method="POST" action="node.php">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=cancel" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[insert]" src="images/page_save.png" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_ip}
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="node_ip" value="{$node_ip}">
|
||||
<input type="text" name="node_ip" value="{$node_ip}" autofocus>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="node">
|
||||
<input type="hidden" name="node_id" value="{$node->id}">
|
||||
<input type="hidden" name="asset_id" value="{$node->asset_id}">
|
||||
<form method="POST" action="node.php">
|
||||
<input type="hidden" name="id" value="{$node->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -11,7 +9,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=cancel" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=delete" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[delete]" src="image.php?icon=delete" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -30,7 +28,7 @@
|
||||
{$lang_ip}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="nodeview.php?node_id={$node->id}">{$node->ip}</a>
|
||||
<a href="node.php?f=view&id={$node->id}">{$node->ip}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="node">
|
||||
<input type="hidden" name="node_id" value="{$node->id}">
|
||||
<form method="POST" action="node.php">
|
||||
<input type="hidden" name="id" value="{$node->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -10,7 +9,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[update]" src="images/page_save.png" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_edit}
|
||||
<a href="nodeedit.php?node_id={$node->id}"><img src="image.php?icon=edit" alt="{$lang_node_edit}"></a>
|
||||
<a href="node.php?f=edit&id={$node->id}"><img src="image.php?icon=edit" alt="{$lang_node_edit}"></a>
|
||||
{/if}
|
||||
{if $suser_delete}
|
||||
<a href="nodedel.php?node_id={$node->id}"><img src="image.php?icon=delete" alt="{$lang_node_del}"></a>
|
||||
<a href="node.php?f=del&id={$node->id}"><img src="image.php?icon=delete" alt="{$lang_node_del}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -29,7 +29,7 @@
|
||||
{$lang_ip}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="nodeview.php?node_id={$node->id}">{$node->ip}</a>
|
||||
<a href="node.php?f=view&id={$node->id}">{$node->ip}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -96,7 +96,15 @@
|
||||
{$lang_asset_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="assetview.php?asset_id={$node->asset_id}">{$node->asset_name}</a>
|
||||
<a href="asset.php?f=view&id={$node->asset_id}">{$node->asset_name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
{$lang_assetclass}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="assetclass.php?f=view&id={$node->assetclass_id}">{$node->assetclass_name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -115,7 +123,7 @@
|
||||
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$node->subnet_id}&page={$node->ip}">{$node->subnet_address}/{$node->subnet_mask}</a>
|
||||
<a href="subnet.php?f=view&id={$node->subnet_id}&page={$node->ip}">{$node->subnet_address}/{$node->subnet_mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -126,7 +134,7 @@
|
||||
{$lang_nat}
|
||||
</td>
|
||||
<td class="header_right">
|
||||
<a href="natedit.php?node_id={$node->id}"><img src="image.php?icon=edit" alt="{$lang_nat_edit}"></a>
|
||||
<a href="nat.php?f=edit&node_id={$node->id}"><img src="image.php?icon=edit" alt="{$lang_nat_edit}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -137,10 +145,10 @@
|
||||
{foreach item=rule from=$natrules}
|
||||
{if $rule.node_id_int eq $node->id}
|
||||
<img src="images/arrow_left.png" alt="incoming" title="coming from">
|
||||
<a href="nodeview.php?node_id={$rule.node_id_ext}">{$rule.node_ip_ext}</a>/<a href="assetview.php?asset_id={$rule.asset_id_ext}">{$rule.asset_name_ext}</a> ({$rule.nat_type})<br />
|
||||
<a href="node.php?f=view&id={$rule.node_id_ext}">{$rule.node_ip_ext}</a>/<a href="asset.php?f=view&id={$rule.asset_id_ext}">{$rule.asset_name_ext}</a> ({$rule.nat_type})<br />
|
||||
{else}
|
||||
<img src="images/arrow_right.png" alt="outgoing" title="forwarding to">
|
||||
<a href="nodeview.php?node_id={$rule.node_id_int}">{$rule.node_ip_int}</a>/<a href="assetview.php?asset_id={$rule.asset_id_int}">{$rule.asset_name_int}</a> ({$rule.nat_type})<br />
|
||||
<a href="node.php?f=view&id={$rule.node_id_int}">{$rule.node_ip_int}</a>/<a href="asset.php?f=view&id={$rule.asset_id_int}">{$rule.asset_name_int}</a> ({$rule.nat_type})<br />
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="optionseditpassword.php">{$lang_options_password}</a>
|
||||
<a href="options.php?f=pass">{$lang_options_password}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="optionseditdisplay.php">{$lang_options_display}</a>
|
||||
<a href="options.php?f=edit">{$lang_options_display}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{if $suser_admin || $suser_manage}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="optionsdisplay">
|
||||
<form method="POST" action="options.php">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[update]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="optionspassword">
|
||||
<form method="POST" action="options.php">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-pass]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -37,6 +36,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="password" name="user_newpass1">
|
||||
(minimum length 5 chars)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -207,7 +207,9 @@ table.subnetview td {
|
||||
div.error, div.warning, div.info, div.note {
|
||||
padding: 0 1em 0 36px;
|
||||
margin: 1em 0 0 0;
|
||||
-moz-border-radius: 12px;
|
||||
border-radius: 12px;
|
||||
width: 750px;
|
||||
animation: fadeout 5s 2s forwards;
|
||||
}
|
||||
div.error {
|
||||
border: 1px solid #8b0000;
|
||||
@@ -239,3 +241,7 @@ div.info p,
|
||||
div.note p {
|
||||
margin: 0.5em 0.5em 0.5em 0;
|
||||
}
|
||||
@keyframes fadeout {
|
||||
from { opacity: 1; }
|
||||
to { opacity: 0; height: 0; }
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add || $suser_admin}
|
||||
<a href="subnetadd.php"><img src="image.php?icon=add" alt="{$lang_subnet_add}"></a>
|
||||
<a href="subnet.php?f=add"><img src="image.php?icon=add" alt="{$lang_subnet_add}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -27,7 +27,7 @@
|
||||
{foreach item=subnet from=$subnets}
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="subnetview.php?subnet_id={$subnet.subnet_id}">{$subnet.subnet_address}/{$subnet.subnet_mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet.subnet_id}">{$subnet.subnet_address}/{$subnet.subnet_mask}</a>
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="node.php?subnet_id={$subnet.subnet_id}">{$subnet.node_counter}</a>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="subnet">
|
||||
<form method="POST" action="subnet.php">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -8,7 +7,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=cancel" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[insert]" src="images/page_save.png" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="subnet">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=cancel" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=delete" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[delete]" src="image.php?icon=delete" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -25,7 +24,7 @@
|
||||
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -43,7 +42,7 @@
|
||||
{$lang_ip}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="nodeview.php?node_id={$node.id}">{$node.ip}</a>
|
||||
<a href="node.php?f=view&id={$node.id}">{$node.ip}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="subnet">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -53,7 +52,7 @@
|
||||
{$lang_subnet_dhcpstart}
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="subnet_dhcpstart" size="15" value="{$subnet->dhcp_start}">
|
||||
<input type="text" name="dhcp_start" size="15" value="{$subnet->dhcp_start}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -61,7 +60,7 @@
|
||||
{$lang_subnet_dhcpend}
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="subnet_dhcpend" size="15" value="{$subnet->dhcp_end}">
|
||||
<input type="text" name="dhcp_end" size="15" value="{$subnet->dhcp_end}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -69,7 +68,7 @@
|
||||
NTP Server
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="subnet_ntp_server" size="45" value="{$subnet->ntp_server}">
|
||||
<input type="text" name="ntp_server" size="45" value="{$subnet->ntp_server}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="subnetlocation">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-ladd]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -30,7 +29,7 @@
|
||||
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="subnetlocation">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-ldel]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="redirect" value="subnetlocation">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-ledit]" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -47,8 +46,8 @@
|
||||
{$lang_options}
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="radio" name="action" value="subnetlocationadd" checked> {$lang_location_add}<br>
|
||||
<input type="radio" name="action" value="subnetlocationdel"> {$lang_location_del}
|
||||
<input type="radio" name="action" id="opt1" value="subnetlocationadd" checked> <label for="opt1">{$lang_location_add}</label><br>
|
||||
<input type="radio" name="action" id="opt2" value="subnetlocationdel"> <label for="opt2">{$lang_location_del}</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_edit}
|
||||
<a href="subnetedit.php?subnet_id={$subnet->id}"><img src="image.php?icon=edit" alt="{$lang_subnet_edit}"></a>
|
||||
<a href="subnet.php?f=edit&id={$subnet->id}"><img src="image.php?icon=edit" alt="{$lang_subnet_edit}"></a>
|
||||
{/if}
|
||||
{if $suser_delete}
|
||||
<a href="subnetdel.php?subnet_id={$subnet->id}"><img src="image.php?icon=delete" alt="{$lang_subnet_del}"></a>
|
||||
<a href="subnet.php?f=del&id={$subnet->id}"><img src="image.php?icon=delete" alt="{$lang_subnet_del}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -53,7 +53,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{if $subnet->proto_vers eq 4}
|
||||
<a href="subnetview.php?subnet_id={$subnet->id}">{$subnet->address}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}">{$subnet->address}</a>
|
||||
{else}
|
||||
{$subnet->address} / {$subnet->mask}
|
||||
{/if}
|
||||
@@ -138,13 +138,13 @@
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreach item=assetclassgroup from=$assetclassgroups}
|
||||
{foreach item=assetclass from=$assetclasses}
|
||||
<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>
|
||||
<img src="image.php?color={$assetclass.color}" alt="{$assetclass.name}"> <a href="assetclass.php?f=view&id={$assetclass.id}">{$assetclass.name}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$assetclassgroup.counter}
|
||||
{$assetclass.counter}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
@@ -157,7 +157,7 @@
|
||||
</td>
|
||||
<td class="header_right">
|
||||
{if $suser_edit}
|
||||
<a href="subnetvlanedit.php?subnet_id={$subnet->id}"><img src="image.php?icon=edit" alt="{$lang_subnetvlan_edit}"></a>
|
||||
<a href="subnet.php?f=vedit&id={$subnet->id}"><img src="image.php?icon=edit" alt="{$lang_subnetvlan_edit}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -167,7 +167,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{foreach item=vlan from=$vlans}
|
||||
<a href="vlanview.php?vlan_id={$vlan.id}">{$vlan.name} ({$vlan.number})</a><br>
|
||||
<a href="vlan.php?f=view&id={$vlan.id}">{$vlan.name} ({$vlan.number})</a><br>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -180,7 +180,7 @@
|
||||
</td>
|
||||
<td class="header" align="right">
|
||||
{if $suser_edit}
|
||||
<a href="subnetlocationedit.php?subnet_id={$subnet->id}"><img src="image.php?icon=edit" alt="{$lang_location_edit}"></a>
|
||||
<a href="subnet.php?f=ledit&id={$subnet->id}"><img src="image.php?icon=edit" alt="{$lang_location_edit}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -190,7 +190,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{foreach item=location from=$locations}
|
||||
<a href="locationview.php?location_id={$location.location_id}">{$location.location_name}</a><br>
|
||||
<a href="location.php?f=view&id={$location.location_id}">{$location.location_name}</a><br>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="subnetvlan">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-vadd]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="subnetvlan">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet_id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-vdel]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$subnet_id}">{$subnet_address}/{$subnet_mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="redirect" value="subnetvlan">
|
||||
<input type="hidden" name="subnet_id" value="{$subnet->id}">
|
||||
<form method="POST" action="subnet.php">
|
||||
<input type="hidden" name="id" value="{$subnet->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-vedit]" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="subnetview.php?subnet_id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
<a href="subnet.php?f=view&id={$subnet->id}">{$subnet->address}/{$subnet->mask}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="vlansubnet">
|
||||
<input type="hidden" name="vlan_id" value="{$vlan->id}">
|
||||
<form method="POST" action="vlan.php">
|
||||
<input type="hidden" name="id" value="{$vlan->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-sadd]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_vlan_name} ({$lang_vlan_number})
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="vlanview.php?vlan_id={$vlan->id}">{$vlan->name} ({$vlan->number})</a>
|
||||
<a href="vlan.php?f=view&id={$vlan->id}">{$vlan->name} ({$vlan->number})</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="vlansubnet">
|
||||
<input type="hidden" name="vlan_id" value="{$vlan_id}">
|
||||
<form method="POST" action="vlan.php">
|
||||
<input type="hidden" name="id" value="{$vlan->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-sdel]" src="image.php?icon=save" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_vlan_name} ({$lang_vlan_number})
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="vlanview.php?vlan_id={$vlan_id}">{$vlan_name} ({$vlan_number})</a>
|
||||
<a href="vlan.php?f=view&id={$vlan->id}">{$vlan->name} ({$vlan->number})</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="redirect" value="vlansubnet">
|
||||
<input type="hidden" name="vlan_id" value="{$vlan->id}">
|
||||
<form method="POST" action="vlan.php">
|
||||
<input type="hidden" name="id" value="{$vlan->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -9,7 +8,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[exec-sedit]" src="image.php?icon=next" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_vlan_name} ({$lang_vlan_number})
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="vlanview.php?vlan_id={$vlan->id}">{$vlan->name} ({$vlan->number})</a>
|
||||
<a href="vlan.php?f=view&id={$vlan->id}">{$vlan->name} ({$vlan->number})</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
</td>
|
||||
<td class="header" align="right">
|
||||
{if $suser_edit}
|
||||
<a href="vlansubnetedit.php?vlan_id={$vlan->id}"><img src="image.php?icon=edit" alt="{$lang_subnetvlan_edit}"></a>
|
||||
<a href="vlan.php?f=sedit&id={$vlan->id}"><img src="image.php?icon=edit" alt="{$lang_subnetvlan_edit}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -79,7 +79,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{foreach item=subnet from=$subnets}
|
||||
<a href="subnetview.php?subnet_id={$subnet.subnet_id}">{$subnet.subnet_address}/{$subnet.subnet_mask}</a>
|
||||
<a href="subnet.php?f=wiew&id={$subnet.subnet_id}">{$subnet.subnet_address}/{$subnet.subnet_mask}</a>
|
||||
{$subnet.subnet_info}
|
||||
<br>
|
||||
{/foreach}
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_origin" size="40" value="{$zone->zone_origin}">
|
||||
(example.com.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -37,6 +38,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_ttl_default" size="40" value="{$zone->zone_ttl_default}">
|
||||
(3D)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -45,6 +47,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_soa" size="40" value="{$zone->zone_soa}">
|
||||
(server.example.com.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -53,6 +56,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_hostmaster" size="40" value="{$zone->zone_hostmaster}" />
|
||||
(hostmaster.example.com.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -61,6 +65,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_serial" size="10" maxlength="10" value="{$zone->zone_serial}" />
|
||||
(jjjjmmttnn)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -69,6 +74,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_refresh" size="6" maxlength="10" value="{$zone->zone_refresh}" />
|
||||
(8H)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -77,6 +83,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_retry" size="6" maxlength="10" value="{$zone->zone_retry}" />
|
||||
(2H)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -85,6 +92,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_expire" size="6" maxlength="10" value="{$zone->zone_expire}" />
|
||||
(4W)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -93,6 +101,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_ttl" size="6" maxlength="10" value="{$zone->zone_ttl}" />
|
||||
(1D)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -101,6 +110,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_ns1" size="40" maxlength="40" value="{$zone->zone_ns1}" />
|
||||
(ns1.example.com.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -125,6 +135,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" name="zone_mx1" size="40" maxlength="40" value="{$zone->zone_mx1}" />
|
||||
(50 mx.example.com.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user