Refactored, no more redirects. Improved error messaging system
This commit is contained in:
+10
-10
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user