Moved towards smarty templates, support php7, switched to mysqli,

finalized language support and fixed some more bugs
This commit is contained in:
2023-02-13 16:41:38 +01:00
parent 76ccecca7f
commit ee582988e6
192 changed files with 13558 additions and 13476 deletions
+134 -53
View File
@@ -1,53 +1,134 @@
<table class="info">
<tr>
<td class="header">
{lang_search}
</td>
</tr>
</table>
[BLOCK nosearch]
<table class="info">
<tr>
<td class="value">
<img src="image.php?icon=error" alt="{lang_comments}">&nbsp;{lang_comments_search_nosearch}
</td>
</tr>
</table>
[END nosearch]
[BLOCK resultcount]
<table class="info">
<tr>
<td class="value">
{lang_search_results_found}&nbsp;{resultcounter}
</td>
</tr>
</table>
[END resultcount]
<p>
[BLOCK table AS asset]
<table class="info">
<tr>
<td class="header">
{item_name} ({counter})
</td>
</tr>
[BLOCK row]
<tr>
<td class="value">
<a href="{item}view.php?{item}_id={id}">{name}</a>
</td>
</tr>
[END row]
</table>
<p>
[END table]
[REUSE table AS location]
[REUSE table AS node]
[REUSE table AS subnet]
[REUSE table AS vlan]
<table class="info">
<tr>
<td class="header">
{$lang_search} ({$search})
</td>
</tr>
</table>
{if $nosearch eq TRUE}
<table class="info">
<tr>
<td class="value">
<img src="image.php?icon=error" alt="{$lang_comments}">&nbsp;{$lang_comments_search_nosearch}
</td>
</tr>
</table>
{else}
<table class="info">
<tr>
<td class="value">
{$lang_search_results_found}&nbsp;{$resultcounter}
</td>
</tr>
</table>
{if $assets|@count > 0}
<table class="info">
<tr>
<td class="header">
{$lang_assets} ({$assets|@count})
</td>
<td class="header"></td>
</tr>
{foreach item=asset from=$assets}
<tr>
<td class="value">
<a href="assetview.php?asset_id={$asset.id}">{$asset.name}</a>
</td>
<td class="value">
{$asset.description}
</td>
</tr>
{/foreach}
</table>
{/if}
{if $locations|@count > 0}
<table class="info">
<tr>
<td class="header">
{$lang_locations} ({$locations|@count})
</td>
</tr>
{foreach item=location from=$locations}
<tr>
<td class="value">
<a href="locationview.php?location_id={$location.id}">{$location.name}</a>
</td>
</tr>
{/foreach}
</table>
{/if}
{if $nodes|@count > 0}
<table class="info">
<tr>
<td class="header">
{$lang_nodes} ({$nodes|@count})
</td>
</tr>
{foreach item=node from=$nodes}
<tr>
<td class="value">
<a href="nodeview.php?node_id={$node.id}">{$node.ip}</a>
</td>
</tr>
{/foreach}
</table>
{/if}
{if $subnets|@count > 0}
<table class="info">
<tr>
<td class="header">
{$lang_subnets} ({$subnets|@count})
</td>
</tr>
{foreach item=subnet from=$subnets}
<tr>
<td class="value">
<a href="subnetview.php?subnet_id={$subnet.id}">{$subnet.address}</a>
</td>
</tr>
{/foreach}
</table>
{/if}
{if $vlans|@count > 0}
<table class="info">
<tr>
<td class="header">
{$lang_vlans} ({$vlans|@count})
</td>
</tr>
{foreach item=vlan from=$vlans}
<tr>
<td class="value">
<a href="vlanview.php?vlan_id={$vlan.id}">{$vlan.name}</a>
</td>
</tr>
{/foreach}
</table>
{/if}
{if $zones|@count > 0}
<table class="info">
<tr>
<td class="header">
{$lang_zones} ({$zones|@count})
</td>
</tr>
{foreach item=zone from=$zones}
<tr>
<td class="value">
<a href="zoneview.php?zone_id={$zone.id}">{$zone.origin}</a>
</td>
</tr>
{/foreach}
</table>
{/if}
{/if}