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
+89 -101
View File
@@ -1,101 +1,89 @@
<table class="title">
<tr>
<td class="header">
{asset_name}
</td>
<td align="right">
<a href="assignnodetoasset.php?asset_id={asset_id}"><img src="image.php?icon=add" alt="{lang_assignnodetoasset}"></a>
<a href="assetedit.php?asset_id={asset_id}"><img src="image.php?icon=edit" alt="{lang_asset_edit}"></a>
<a href="assetdel.php?asset_id={asset_id}"><img src="image.php?icon=delete" alt="{lang_asset_edit}"></a>
</td>
</tr>
</table>
<p>
[BLOCK asset_table AS asset_table]
<table class="info">
[BLOCK asset_row]
<tr>
<td class="header">
{lang_asset}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_asset_name}
</td>
<td class="value">
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a>
</td>
</tr>
<tr>
<td class="label">
{lang_asset_hostname}
</td>
<td class="value">
{asset_hostname}
</td>
</tr>
<tr>
<td class="label">
{lang_asset_info}
</td>
<td class="value">
{asset_info}
</td>
</tr>
[END asset_row]
</table>
[END asset_table]
<p>
[BLOCK assetclass_table AS assetclass_table]
<table class="info">
<tr>
<td class="header">
{lang_assetclass}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclass_name}
</td>
<td class="value">
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a>
</td>
</tr>
</table>
[END assetclass_table]
<p>
<table class="info">
<tr>
<td class="header">
{lang_nodes}
</td>
<td class="header_right">
<a href="assignnodetoasset.php"><img src="image.php?icon=edit" alt="{lang_assignnodetoasset}"></a>
</td>
</tr>
<tr>
<td class="label">
{lang_nodes} ({node_counter})
</td>
<td class="value">
[BLOCK node_table AS node_table]
[BLOCK node_row]
<a href="nodeview.php?node_id={node_id}">{node_ip}</a><br>
[END node_row]
[END node_table]
</td>
</tr>
</table>
<table class="title">
<tr>
<td class="header">
{$asset_name}
</td>
<td align="right">
<a href="assignnodetoasset.php?asset_id={$asset_id}"><img src="image.php?icon=add" alt="{$lang_assignnodetoasset}"></a>
<a href="assetedit.php?asset_id={$asset_id}"><img src="image.php?icon=edit" alt="{$lang_asset_edit}"></a>
<a href="assetdel.php?asset_id={$asset_id}"><img src="image.php?icon=delete" alt="{$lang_asset_edit}"></a>
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{$lang_asset}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{$lang_asset_name}
</td>
<td class="value">
<a href="assetview.php?asset_id={$asset_id}">{$asset_name}</a>
</td>
</tr>
<tr>
<td class="label">
{$lang_asset_hostname}
</td>
<td class="value">
{$asset_hostname}
</td>
</tr>
<tr>
<td class="label">
{$lang_asset_info}
</td>
<td class="value">
{$asset_info}
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{$lang_assetclass}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{$lang_assetclass_name}
</td>
<td class="value">
<a href="assetclassview.php?assetclass_id={$assetclass_id}">{$assetclass_name}</a>
</td>
</tr>
</table>
<table class="info">
<tr>
<td class="header">
{$lang_nodes}
</td>
<td class="header_right">
<a href="assignnodetoasset.php?asset_id={$asset_id}"><img src="image.php?icon=edit" alt="{$lang_assignnodetoasset}"></a>
</td>
</tr>
<tr>
<td class="label">
{$lang_nodes} ({$nodes|@count})
</td>
<td class="value">
{foreach item=node from=$nodes}
<a href="nodeview.php?node_id={$node.node_id}">{if $node.node_ip}{$node.node_ip}{else}(leer){/if}</a>
{if $node.node_info}{$node.node_info}{/if}<br>
{/foreach}
</td>
</tr>
</table>