Refactored user, vlan and zone
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{$lang_users} ({$users|@count})
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="useradd.php"><img src="images/user_add.png" alt="{$lang_user_add}" /></a>
|
||||
<a href="user.php?f=add"><img src="images/user_add.png" alt="{$lang_user_add}" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +28,7 @@
|
||||
{foreach item=user from=$users}
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="userview.php?user_id={$user.id}">{$user.name}</a>
|
||||
<a href="user.php?f=view&id={$user.id}">{$user.name}</a>
|
||||
</td>
|
||||
<td class="value">
|
||||
{$user.realm}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="user">
|
||||
<form method="POST" action="user.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="images/user_add.png" alt="{$lang_submit}" />
|
||||
<input type="image" name="submit[insert]" src="images/user_add.png" alt="{$lang_submit}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="user">
|
||||
<input type="hidden" name="user_id" value="{$user->id}">
|
||||
<form method="POST" action="user.php">
|
||||
<input type="hidden" name="id" value="{$user->id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -10,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="images/user_delete.png" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[delete]" src="images/user_delete.png" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -29,7 +28,7 @@
|
||||
{$lang_user_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="userview.php?user_id={$user->id}">{$user->name}</a>
|
||||
<a href="user.php?f=view&id={$user->id}">{$user->name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="user">
|
||||
<input type="hidden" name="user_id" value="{$user->id}">
|
||||
<form method="POST" action="user.php">
|
||||
<input type="hidden" name="id" value="{$user->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>
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<tr>
|
||||
<td class="header">
|
||||
<img class="icon" src="images/user.png" alt="" />
|
||||
{$user_name}
|
||||
{$user->name}
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="useredit.php?user_id={$user->id}"><img src="images/user_edit.png" alt="{$lang_user_edit}"></a>
|
||||
<a href="userdel.php?user_id={$user->id}"><img src="images/user_delete.png" alt="{$lang_user_del}"></a>
|
||||
<a href="user.php?f=edit&id={$user->id}"><img src="images/user_edit.png" alt="{$lang_user_edit}"></a>
|
||||
<a href="user.php?f=del&id={$user->id}"><img src="images/user_delete.png" alt="{$lang_user_del}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -25,7 +25,7 @@
|
||||
{$lang_user_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="userview.php?user_id={$user->id}">{$user->name}</a>
|
||||
<b>{$user->name}</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add || $suser_admin}
|
||||
<a href="vlanadd.php"><img src="image.php?icon=add" alt="{$lang_vlan_add}" {if $suser_tooltips}title="{$lang_vlan_add}" {/if}/></a>
|
||||
<a href="vlan.php?f=add"><img src="image.php?icon=add" alt="{$lang_vlan_add}" {if $suser_tooltips}title="{$lang_vlan_add}" {/if}/></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -31,7 +31,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
<img src="image.php?color={$vlan.color}" alt="#{$vlan.color}">
|
||||
<a href="vlanview.php?vlan_id={$vlan.id}">{$vlan.name}</a>
|
||||
<a href="vlan.php?f=view&id={$vlan.id}">{$vlan.name}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$vlan.info}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="vlan">
|
||||
<form method="POST" action="vlan.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="vlan">
|
||||
<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=cancel" alt="{$lang_cancel}"></a>
|
||||
<input type="image" src="image.php?icon=delete" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[delete]" src="images/bin.png" alt="{$lang_delete}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,7 +27,7 @@
|
||||
{$lang_vlan_name}
|
||||
</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="edit" value="vlan">
|
||||
<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>
|
||||
@@ -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_save}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<a href="assignvlantosubnet.php?vlan_id={$vlan->id}"><img src="image.php?icon=add" alt="{$lang_assignvlantosubnet}"></a>
|
||||
{/if}
|
||||
{if $suser_edit}
|
||||
<a href="vlanedit.php?vlan_id={$vlan->id}"><img src="image.php?icon=edit" alt="{$lang_vlan_edit}"></a>
|
||||
<a href="vlan.php?f=edit&id={$vlan->id}"><img src="image.php?icon=edit" alt="{$lang_vlan_edit}"></a>
|
||||
{/if}
|
||||
{if $suser_delete}
|
||||
<a href="vlandel.php?vlan_id={$vlan->id}"><img src="image.php?icon=delete" alt="{$lang_vlan_del}"></a>
|
||||
<a href="vlan.php?f=del&id={$vlan->id}"><img src="image.php?icon=delete" alt="{$lang_vlan_del}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -32,7 +32,7 @@
|
||||
{$lang_vlan_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="vlanview.php?vlan_id={$vlan->id}">{$vlan->name}</a>
|
||||
<a href="vlan.php?f=view&id={$vlan->id}">{$vlan->name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add || $suser_admin}
|
||||
<a href="zoneadd.php"><img src="image.php?icon=add" alt="{$lang_zone_add}"></a>
|
||||
<a href="zone.php?f=add"><img src="image.php?icon=add" alt="{$lang_zone_add}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -27,7 +27,7 @@
|
||||
{foreach item=zone from=$zones}
|
||||
<tr>
|
||||
<td class="label">
|
||||
<a href="zoneview.php?zone_id={$zone.id}">{$zone.origin}</a>
|
||||
<a href="zone.php?f=view&id={$zone.id}">{$zone.origin}</a>
|
||||
</td>
|
||||
<td class="value">
|
||||
{$zone.hostmaster}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="zone">
|
||||
<form method="POST" action="zone.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[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="zone">
|
||||
<input type="hidden" name="zone_id" value="{$zone.zone_id}">
|
||||
<form method="POST" action="zone.php">
|
||||
<input type="hidden" name="id" value="{$zone->zone_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="images/table_delete.png" alt="{$lang_submit}">
|
||||
<input type="image" name="submit[delete]" src="images/table_delete.png" alt="{$lang_submit}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -28,8 +27,8 @@
|
||||
{$lang_zone}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="zoneview.php?zone_id={$zone.zone_id}">{$zone.zone_origin}</a>
|
||||
({$zone.zone_serial})
|
||||
<a href="zone.php?f=view&id={$zone->zone_id}">{$zone->zone_origin}</a>
|
||||
({$zone->zone_serial})
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="zone">
|
||||
<input type="hidden" name="zone_id" value="{$zone->zone_id}">
|
||||
<form method="POST" action="zone.php">
|
||||
<input type="hidden" name="id" value="{$zone->zone_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_save}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -141,7 +140,7 @@
|
||||
Zone Info
|
||||
</td>
|
||||
<td class="value">
|
||||
<textarea name="zone_info" cols="30" rows="10">{$zone.zone_info}</textarea>
|
||||
<textarea name="zone_info" cols="30" rows="10">{$zone->zone_info}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_edit || $suser_admin}
|
||||
<a href="zoneedit.php?zone_id={$zone->zone_id}"><img src="images/table_edit.png" alt="{$lang_zone_edit}" /></a>
|
||||
<a href="zone.php?f=edit&id={$zone->zone_id}"><img src="images/table_edit.png" alt="{$lang_zone_edit}" /></a>
|
||||
{/if}
|
||||
{if $suser_delete || $suser_admin}
|
||||
<a href="zonedel.php?zone_id={$zone->zone_id}"><img src="images/table_delete.png" alt="{$lang_zone_del}" /></a>
|
||||
<a href="zone.php?f=del&id={$zone->zone_id}"><img src="images/table_delete.png" alt="{$lang_zone_del}" /></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user