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