Refactored asset and location
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="asset">
|
||||
<form method="POST" action="asset.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}" {if $suser_tooltips}title="{$lang_cancel}" {/if}/></a>
|
||||
<input type="image" src="image.php?icon=save" alt="{$lang_submit}" {if $suser_tooltips}title="{$lang_submit}" {/if}/>
|
||||
<input type="image" name="submit[insert]" src="images/page_save.png" alt="{$lang_submit}" {if $suser_tooltips}title="{$lang_submit}" {/if}/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<tr>
|
||||
<td class="label">
|
||||
<img src="image.php?color={$acg.color}" alt="#{$acg.color}">
|
||||
<a href="assetclassgroupview.php?assetclassgroup_id={$acg.id}">{$acg.name}</a>
|
||||
<a href="assetclassgroup.php?f=view&id={$acg.id}">{$acg.name}</a>
|
||||
</td>
|
||||
<td>
|
||||
{$acg.description}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="asset">
|
||||
<input type="hidden" name="asset_id" value="{$asset_id}">
|
||||
<form method="POST" action="asset.php">
|
||||
<input type="hidden" name="id" value="{$asset_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}" {if $suser_tooltips}title="{$lang_cancel}" {/if}/></a>
|
||||
<input type="image" src="image.php?icon=shred" alt="{$lang_asset_del}" {if $suser_tooltips}title="{$lang_asset_del}" {/if}/>
|
||||
<input type="image" name="submit[delete]" src="images/bin.png" alt="{$lang_asset_del}" {if $suser_tooltips}title="{$lang_asset_del}" {/if}/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -29,7 +28,7 @@
|
||||
{$lang_asset_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="assetview.php?asset_id={$asset_id}">{$asset_name}</a>
|
||||
<a href="asset.php?f=view&id={$asset_id}">{$asset_name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="asset">
|
||||
<input type="hidden" name="asset_id" value="{$asset->asset_id}">
|
||||
<input type="hidden" name="assetclass_id" value="{$asset->assetclass_id}">
|
||||
<form method="POST" action="asset.php">
|
||||
<input type="hidden" name="id" value="{$asset->asset_id}">
|
||||
|
||||
<table class="title">
|
||||
<tr>
|
||||
@@ -11,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>
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<a href="assignnodetoasset.php?asset_id={$asset->asset_id}"><img src="image.php?icon=add" alt="{$lang_assignnodetoasset}"></a>
|
||||
{/if}
|
||||
{if $suser_edit}
|
||||
<a href="assetedit.php?asset_id={$asset->asset_id}"><img src="image.php?icon=edit" alt="{$lang_asset_edit}"></a>
|
||||
<a href="asset.php?f=edit&id={$asset->asset_id}"><img src="image.php?icon=edit" alt="{$lang_asset_edit}"></a>
|
||||
{/if}
|
||||
{if $suser_delete}
|
||||
<a href="assetdel.php?asset_id={$asset->asset_id}"><img src="image.php?icon=delete" alt="{$lang_asset_edit}"></a>
|
||||
<a href="asset.php?f=del&id={$asset->asset_id}"><img src="image.php?icon=delete" alt="{$lang_asset_edit}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -32,7 +32,7 @@
|
||||
{$lang_asset_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add || $suser_admin}
|
||||
<a href="locationadd.php"><img src="images/building_add.png" alt="{$lang_location_add}" title="{$lang_location_add}" /></a>
|
||||
<a href="location.php?f=add"><img src="images/building_add.png" alt="{$lang_location_add}" title="{$lang_location_add}" /></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="add" value="location">
|
||||
<form method="POST" action="location.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>
|
||||
|
||||
@@ -1,39 +1,38 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="del" value="location">
|
||||
<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">
|
||||
<img class="icon" src="images/building.png" alt="" />
|
||||
{$location_name}
|
||||
</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/building_delete.png" alt="{$lang_location_del}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="header">
|
||||
<img class="icon" src="images/building.png" alt="" />
|
||||
{$location->name}
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=cancel" alt="{$lang_cancel}"></a>
|
||||
<input type="image" name="submit[delete]" src="images/building_delete.png" alt="{$lang_location_del}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
|
||||
<table class="info">
|
||||
<tr>
|
||||
<td class="header">
|
||||
{$lang_location_del}
|
||||
</td>
|
||||
<td class="header_right">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
{$lang_location_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="locationview.php?location_id={$location->id}">{$location->name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="header">
|
||||
{$lang_location_del}
|
||||
</td>
|
||||
<td class="header_right">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">
|
||||
{$lang_location_name}
|
||||
</td>
|
||||
<td class="value">
|
||||
<a href="location.php?f=view&id={$location->id}">{$location->name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<form method="POST" action="submit.php">
|
||||
<input type="hidden" name="edit" value="location">
|
||||
<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>
|
||||
@@ -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,13 +6,13 @@
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $suser_add}
|
||||
<a href="locationadd.php?location_parent={$location->id}"><img src="images/building_add.png" alt="{$lang_sublocation_add}"></a>
|
||||
<a href="location.php?f=add&parent={$location->id}"><img src="images/building_add.png" alt="{$lang_sublocation_add}"></a>
|
||||
{/if}
|
||||
{if $suser_edit}
|
||||
<a href="locationedit.php?location_id={$location->id}"><img src="images/building_edit.png" alt="{$lang_location_edit}"></a>
|
||||
<a href="location.php?f=edit&id={$location->id}"><img src="images/building_edit.png" alt="{$lang_location_edit}"></a>
|
||||
{/if}
|
||||
{if $suser_delete}
|
||||
<a href="locationdel.php?location_id={$location->id}"><img src="images/building_delete.png" alt="{$lang_location_del}"></a>
|
||||
<a href="location.php?f=del&id={$location->id}"><img src="images/building_delete.png" alt="{$lang_location_del}"></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -64,7 +64,7 @@
|
||||
</td>
|
||||
<td class="value">
|
||||
{foreach item=sublocation from=$sublocations}
|
||||
<a href="locationview.php?location_id={$sublocation.sublocation_id}">{$sublocation.sublocation_name}</a>
|
||||
<a href="location.php?f=view&id={$sublocation.sublocation_id}">{$sublocation.sublocation_name}</a>
|
||||
{$sublocation.info_short}{if $sublocation.info_length>40}…{/if}
|
||||
<br>
|
||||
{/foreach}
|
||||
|
||||
Reference in New Issue
Block a user