Changes adopted from version 0.5

This commit is contained in:
2023-02-13 10:42:09 +01:00
parent faf5f368f5
commit 76ccecca7f
198 changed files with 10261 additions and 5068 deletions

View File

@@ -1,73 +1,118 @@
<table border="0">
<table class="title">
<tr>
<td>
<b>IP Reg {config_version}</b>
<td class="header">
{lang_about}
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
Sourceforge Project Page:
<td class="header">
{lang_ipreg} {config_version}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_about_sfprojectpage}
</td>
<td class="value">
<a href="http://sourceforge.net/projects/ipreg">http://sourceforge.net/projects/ipreg</a>
</td>
</tr>
<tr>
<td>
License:
<td class="label">
{lang_about_license}
</td>
<td>
<a href="gpl-3.0.txt">GNU General Public License (GPL)</a>
<td class="value">
<a href="gpl-3.0.txt">{lang_about_gpl}</a>
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td width="200">
Yapter Template Engine
<td class="label">
{lang_about_yapter}
</td>
<td>
<td class="value">
<a href="http://yapter.sourceforge.net/">http://yapter.sourceforge.net</a>
</td>
</tr>
<tr>
<td>
OWeb2 Images
<td class="label">
{lang_about_iconset}
</td>
<td>
<a href="http://www.oweb2.com/free-web20-icons-pack/">http://www.oweb2.com/free-web20-icons-pack</a>
<td class="value">
<a href="http://www.famfamfam.com/lab/icons/silk/">http://www.famfamfam.com/lab/icons/silk/</a>
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
IP Reg, a PHP/MySQL IPAM tool<br>
Copyright (C) 2008 Wietse Warendorff<p>
This program is free software: you can redistribute it and/or modify<br>
it under the terms of the GNU General Public License as published by<br>
the Free Software Foundation, either version 3 of the License, or<br>
(at your option) any later version.<p>
This program is distributed in the hope that it will be useful,<br>
but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
GNU General Public License for more details.<p>
You should have received a copy of the GNU General Public License<br>
along with this program. If not, see http://www.gnu.org/licenses/.
<td class="header">
{lang_about_ipreg_ext}
</td>
</tr>
<tr>
<td class="label">
{lang_about_license_ext}
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_about_changelog}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_about_changelog_v05}
</td>
<td class="value">
{lang_about_changelog_v05_ext}
</td>
</tr>
<td class="label">
{lang_about_changelog_v04}
</td>
<td class="value">
{lang_about_changelog_v04_ext}
</td>
</tr>
<td class="label">
{lang_about_changelog_v03}
</td>
<td class="value">
{lang_about_changelog_v03_ext}
</td>
</tr>
<tr>
<td class="label">
{lang_about_changelog_v02}
</td>
<td class="value">
{lang_about_changelog_v02_ext}
</td>
</tr>
<tr>
<td class="label">
{lang_about_changelog_v01}
</td>
<td class="value">
{lang_about_changelog_v01_ext}
</td>
</tr>
</table>

View File

@@ -1,35 +1,49 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assets}:</b>
<td class="header">
{lang_assets} ({asset_counter})
</td>
<td align="right">
<a href="assetadd.php"><img src="images/add.gif" border="0" title="{lang_asset_add}"></a>
<a href="assetadd.php"><img src="image.php?icon=add" alt="{lang_asset_add}"></a>
</td>
</tr>
</table>
<p>
[BLOCK table AS asset]
<table border="0">
[BLOCK letter_table AS letter_table]
<table class="submenu">
<tr>
<td width="250">
<b>{lang_asset_name}</b>
</td>
[BLOCK letter_row]
<td>
<b>{lang_assetclass_name}</b>
<a href="asset.php?asset_letter={asset_letter}">{asset_letter}</a>&nbsp;
</td>
[END letter_row]
</tr>
</table>
[END letter_table]
<p>
[BLOCK asset_table AS asset_table]
<table class="info">
<tr>
<td class="header">
{lang_asset_name}
</td>
<td class="header">
{lang_assetclass_name}
</td>
</tr>
[BLOCK assetrow]
[BLOCK asset_row]
<tr>
<td>
<td class="label">
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a>
</td>
<td>
<td class="value">
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a>
</td>
</tr>
[END assetrow]
[END asset_row]
</table>
[END table]
[END asset_table]

View File

@@ -1,58 +1,80 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="asset">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_asset_add}:</b>
<td class="header">
{lang_asset_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_asset_name}:
<td class="header">
{lang_asset}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_asset_name}
</td>
<td class="value">
<input type="text" name="asset_name">
</td>
</tr>
<tr>
<td>
{lang_hostname}:
<td class="label">
{lang_asset_hostname}
</td>
<td>
<input type="text" name="hostname">
<td class="value">
<input type="text" name="asset_hostname">
</td>
</tr>
[BLOCK table AS assetclass]
<tr>
<td>
{lang_assetclass}:
<td class="label">
{lang_asset_info}
</td>
<td>
<select name="assetclass_id">
[BLOCK assetclassrow]
<option value="{assetclass_id}" {assetclass_selected}>{assetclass_name}</option>
[END assetclassrow]
</select>
</td>
</tr>
[END table]
<tr>
<td>
{lang_asset_info}:
</td>
<td>
<textarea name="asset_info"></textarea>
<td class="value">
<textarea name="asset_info" cols="30" rows="10"></textarea>
</td>
</tr>
</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">
<select name="assetclass_id">
[BLOCK assetclass_row]
<option value="{assetclass_id}" {assetclass_selected}>{assetclass_name}</option>
[END assetclass_row]
</select>
</td>
</tr>
</table>
[END assetclass_table]
</form>

View File

@@ -1,22 +1,35 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclass}:</b><br>
<td class="header">
{lang_assetclasses} ({assetclass_counter})
</td>
<td align="right">
<a href="assetclassadd.php"><img src="images/add.gif" border="0" title="{lang_assetclass_add}"></a>
<a href="assetclassadd.php"><img src="image.php?icon=add" alt="{lang_assetclass_add}"></a>
</td>
</tr>
</table>
[BLOCK table AS assetclass]
<table border="0">
[BLOCK assetclassrow]
<p>
[BLOCK assetclass_table AS assetclass_table]
<table class="info">
<tr>
<td>
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a>
<td class="header">
{lang_assetclass}
</td>
<td class="header">
{lang_assetclassgroup_name}
</td>
</tr>
[END assetclassrow]
[BLOCK assetclass_row]
<tr>
<td class="label">
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a>
</td>
<td class="value">
<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
</td>
</tr>
[END assetclass_row]
</table>
[END table]
[END assetclass_table]

View File

@@ -1,41 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="assetclass">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclass_add}:</b><br>
<td class="header">
{lang_assetclass_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<input type="image" src="image.php?icon=save" alt="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_assetclass_name}:
<td class="header">
{lang_assetclass}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclass_name}
</td>
<td class="value">
<input type="text" name="assetclass_name">
</td>
</tr>
[BLOCK table AS assetclassgroup]
</table>
<p>
[BLOCK assetclassgroup_table AS assetclassgroup_table]
<table class="info">
<tr>
<td>
{lang_assetclassgroup}:<br>
<td class="header">
{lang_assetclassgroup}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclassgroup}
</td>
<td class="value">
<select name="assetclassgroup_id">
[BLOCK assetclassgrouprow]
[BLOCK assetclassgroup_row]
<option value="{assetclassgroup_id}" {assetclassgroup_selected}>{assetclassgroup_name}</option>
[END assetclassgrouprow]
[END assetclassgroup_row]
</select>
</td>
</tr>
[END table]
</table>
[END assetclassgroup_table]
</form>

View File

@@ -2,27 +2,37 @@
<input type="hidden" name="del" value="assetclass">
<input type="hidden" name="assetclass_id" value="{assetclass_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclass_del}:</b><br>
<td class="header">
{lang_assetclass_del}
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>{lang_assetclass_name}:</b>
<td class="header">
{lang_assetclass}
</td>
<td>
{assetclass_name}
<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>
</form>

View File

@@ -2,41 +2,68 @@
<input type="hidden" name="edit" value="assetclass">
<input type="hidden" name="assetclass_id" value="{assetclass_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclass_edit}:</b><br>
<td class="header">
{assetclass_name}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK assetclass_table AS assetclass_table]
<table class="info">
[BLOCK assetclass_row]
<tr>
<td>
{lang_assetclass_name}:
<td class="header">
{lang_assetclass}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclass_name}
</td>
<td class="value">
<input type="text" name="assetclass_name" value="{assetclass_name}">
</td>
</tr>
[BLOCK table AS assetclassgroup]
[END assetclass_row]
</table>
[END assetclass_table]
<p>
[BLOCK assetclassgroup_table AS assetclassgroup_table]
<table class="info">
<tr>
<td>
{lang_assetclassgroup}:<br>
<td class="header">
{lang_assetclassgroup}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclassgroup}
</td>
<td class="value">
<select name="assetclassgroup_id">
[BLOCK assetclassgrouprow]
<option value="{assetclassgroup_id}" {selected}>{assetclassgroup_name}</option>
[END assetclassgrouprow]
[BLOCK assetclassgroup_row]
<option value="{assetclassgroup_id}" {assetclassgroup_selected}>{assetclassgroup_name}</option>
[END assetclassgroup_row]
</select>
</td>
</tr>
[END table]
</table>
[END assetclassgroup_table]
</form>

View File

@@ -1,22 +1,29 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclassgroups}:</b>
<td class="header">
{lang_assetclassgroups} ({assetclassgroup_counter})
</td>
<td align="right">
<a href="assetclassgroupadd.php"><img src="images/add.gif" border="0" title="{lang_assetclassgroup_add}"></a>
<a href="assetclassgroupadd.php"><img src="image.php?icon=add" alt="{lang_assetclassgroup_add}"></a>
</td>
</tr>
</table>
[BLOCK table AS assetclassgroup]
<table border="0">
[BLOCK assetclassgrouprow]
<p>
[BLOCK assetclassgroup_table AS assetclassgroup_table]
<table class="info">
<tr>
<td>
<td class="header">
{lang_assetclassgroup_name}
</td>
</tr>
[BLOCK assetclassgroup_row]
<tr>
<td class="label">
<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
</td>
</tr>
[END assetclassgrouprow]
[END assetclassgroup_row]
</table>
[END table]
[END assetclassgroup_table]

View File

@@ -1,33 +1,42 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="assetclassgroup">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclassgroup_add}:</b><br>
<td class="header">
{lang_assetclassgroup_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_assetclassgroup_name}:
<td class="header">
{lang_assetclassgroup}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclassgroup_name}
</td>
<td class="value">
<input type="text" name="assetclassgroup_name">
</td>
</tr>
<tr>
<td>
{lang_color}:
<td class="label">
{lang_color}
</td>
<td>
<td class="value">
<input type="text" name="color">
</td>
</tr>

View File

@@ -2,27 +2,37 @@
<input type="hidden" name="del" value="assetclassgroup">
<input type="hidden" name="assetclassgroup_id" value="{assetclassgroup_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclassgroup_del}:</b><br>
<td class="header">
{assetclassgroup_name}
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>{lang_assetclassgroup_name}:</b>
<td class="header">
{lang_assetclassgroup_del}
</td>
<td>
{assetclassgroup_name}
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclassgroup_name}
</td>
<td class="value">
<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
</td>
</tr>
</table>
</form>

View File

@@ -2,35 +2,47 @@
<input type="hidden" name="edit" value="assetclassgroup">
<input type="hidden" name="assetclassgroup_id" value="{assetclassgroup_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclassgroup_edit}:</b><br>
<td class="header">
{assetclassgroup_name}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK assetclassgroup_table AS assetclassgroup_table]
<table class="info">
<tr>
<td>
{lang_assetclassgroup_name}:
<td class="header">
{lang_assetclassgroup}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclassgroup_name}
</td>
<td class="value">
<input type="text" name="assetclassgroup_name" value="{assetclassgroup_name}">
</td>
</tr>
<tr>
<td>
{lang_color}:
<td class="label">
{lang_color}
</td>
<td>
<input type="text" name="color" value="#{color}">
<td class="value">
<input type="text" name="assetclassgroup_color" value="#{assetclassgroup_color}">
</td>
</tr>
</table>
[END assetclassgroup_table]
</form>

View File

@@ -1,45 +1,70 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclassgroup}:</b><br>
<td class="header">
{assetclassgroup_name}
</td>
<td align="right">
<a href="assetclassadd.php?assetclassgroup_id={assetclassgroup_id}"><img src="images/add.gif" border="0" title="{lang_assetclass_add}"></a>
<a href="assetclassgroupedit.php?assetclassgroup_id={assetclassgroup_id}"><img src="images/edit.gif" border="0" title="{lang_asset_edit}"></a>
<a href="assetclassgroupdel.php?assetclassgroup_id={assetclassgroup_id}"><img src="images/del.gif" border="0" title="{lang_asset_del}"></a>
<a href="assetclassadd.php?assetclassgroup_id={assetclassgroup_id}"><img src="image.php?icon=add" alt="{lang_assetclass_add}"></a>
<a href="assetclassgroupedit.php?assetclassgroup_id={assetclassgroup_id}"><img src="image.php?icon=edit" alt="{lang_assetclassgroup_edit}"></a>
<a href="assetclassgroupdel.php?assetclassgroup_id={assetclassgroup_id}"><img src="image.php?icon=delete" alt="{lang_assetclassgroup_del}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK assetclassgroup_table AS assetclassgroup_table]
<table class="info">
[BLOCK assetclassgroup_row]
<tr>
<td>
<b>{lang_assetclassgroup_name}:</b>
<td class="header">
{lang_assetclassgroup}
</td>
<td>
{assetclassgroup_name}
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_color}:</b>
<td class="label">
{lang_assetclassgroup_name}
</td>
<td>
<img src="image.php?color={color}">
<td class="value">
<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
</td>
</tr>
<tr>
<td>
<b>{lang_assetclasses}:</b>
<td class="label">
{lang_color}
</td>
[BLOCK table AS assetclass]
<td>
[BLOCK assetclassrow]
<td class="value">
<img src="image.php?color={assetclassgroup_color}" alt="{assetclassgroup_color}">
</td>
</tr>
[END assetclassgroup_row]
</table>
[END assetclassgroup_table]
<p>
<table class="info">
<tr>
<td class="header">
{lang_assetclass}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclasses} ({assetclass_counter})
</td>
<td class="value">
[BLOCK assetclass_table AS assetclass_table]
[BLOCK assetclass_row]
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a><br>
[END assetclassrow]
[END assetclass_row]
[END assetclass_table]
</td>
[END table]
</tr>
</table>

View File

@@ -1,45 +1,86 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_assetclass}:</b><br>
<td class="header">
{assetclass_name}
</td>
<td align="right">
<a href="assetadd.php?assetclass_id={assetclass_id}"><img src="images/add.gif" border="0" title="{lang_asset_add}"></a>
<a href="assetclassedit.php?assetclass_id={assetclass_id}"><img src="images/edit.gif" border="0" title="{lang_assetclass_edit}"></a>
<a href="assetclassdel.php?assetclass_id={assetclass_id}"><img src="images/del.gif" border="0" title="{lang_assetclass_del}"></a>
<a href="assetadd.php?assetclass_id={assetclass_id}"><img src="image.php?icon=add" alt="{lang_asset_add}"></a>
<a href="assetclassedit.php?assetclass_id={assetclass_id}"><img src="image.php?icon=edit" alt="{lang_assetclass_edit}"></a>
<a href="assetclassdel.php?assetclass_id={assetclass_id}"><img src="image.php?icon=delete" alt="{lang_assetclass_add}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK assetclass_table AS assetclass_table]
<table class="info">
[BLOCK assetclass_row]
<tr>
<td>
<b>{lang_assetclass_name}:</b>
<td class="header">
{lang_assetclass}
</td>
<td>
{assetclass_name}
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_assetclassgroup_name}:</b>
<td class="label">
{lang_assetclass_name}
</td>
<td>
<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
<td class="value">
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a>
</td>
</tr>
[BLOCK table AS asset]
[END assetclass_row]
</table>
[END assetclass_table]
<p>
[BLOCK assetclassgroup_table AS assetclassgroup_table]
<table class="info">
<tr>
<td>
<b>{lang_assets}:</b><br>
<td class="header">
{lang_assetclassgroup}
</td>
<td>
[BLOCK assetrow]
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assetclassgroup_name}
</td>
<td class="value">
<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a><br>
</td>
</tr>
</table>
[END assetclassgroup_table]
<p>
<table class="info">
<tr>
<td class="header">
{lang_assets}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_assets} ({asset_counter})
</td>
<td class="value">
[BLOCK asset_table AS asset_table]
[BLOCK asset_row]
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a><br>
[END assetrow]
[END asset_row]
[END asset_table]
</td>
</tr>
[END table]
</table>
</table>

View File

@@ -2,25 +2,33 @@
<input type="hidden" name="del" value="asset">
<input type="hidden" name="asset_id" value="{asset_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_asset_del}:</b>
<td class="header">
{asset_name}
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>{lang_asset_name}:</b>
<td class="header">
{lang_asset}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
<tr>
<td class="label">
{lang_asset_name}
</td>
<td class="value">
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a>
</td>
</tr>
@@ -28,24 +36,27 @@
<p>
[BLOCK table AS node]
<table border="0">
[BLOCK node_table AS node_table]
<table class="info">
<tr>
<td colspan="2">
<img src="images/comments.gif" title="{lang_comments}">&nbsp;{lang_comments_asset_del_nodes}
<td class="header">
<img src="image.php?icon=error" alt="{lang_warning}">
</td>
<td class="header_right">
{lang_comments_asset_del_nodes}
</td>
</tr>
[BLOCK noderow]
[BLOCK node_row]
<tr>
<td>
<b>{lang_ip}:</b>
<td class="label">
{lang_ip}
</td>
<td>
<a href="nodeview.php?node_id={node_id}">{ip}</a>
<td class="value">
<a href="nodeview.php?node_id={node_id}">{node_ip}</a>
</td>
</tr>
[END noderow]
[END node_row]
</table>
[END table]
[END node_table]
</form>

View File

@@ -1,59 +1,86 @@
<form method="POST" action="submit.php">
<input type="hidden" name="edit" value="asset">
<input type="hidden" name="asset_id" value="{asset_id}">
<input type="hidden" name="assetclass_id" value="{assetclass_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_asset_edit}:</b><br>
<td class="header">
{asset_name}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK asset_table AS asset_table]
<table class="info">
[BLOCK asset_row]
<tr>
<td>
{lang_asset_name}:
<td class="header">
{lang_asset}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_asset_name}
</td>
<td class="value">
<input type="text" name="asset_name" value="{asset_name}">
</td>
</tr>
<tr>
<td>
{lang_hostname}:
<td class="label">
{lang_asset_hostname}
</td>
<td>
<input type="text" name="hostname" value="{hostname}">
<td class="value">
<input type="text" name="asset_hostname" value="{asset_hostname}">
</td>
</tr>
[BLOCK table AS assetclass]
<tr>
<td>
{lang_assetclass}:
<td class="label">
{lang_asset_info}
</td>
<td>
<td class="value">
<textarea name="asset_info" cols="30" rows="10">{asset_info}</textarea>
</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}
</td>
<td class="value">
<select name="assetclass_id">
[BLOCK assetclassrow]
<option value="{assetclass_id}" {selected}>{assetclass_name}</option>
[END assetclassrow]
</select>
</td>
</tr>
[END table]
<tr>
<td>
{lang_asset_info}:
</td>
<td>
<textarea name="asset_info">{asset_info}</textarea>
[BLOCK assetclass_row]
<option value="{assetclass_id}" {assetclass_selected}>{assetclass_name}</option>
[END assetclass_row]
</select>
</td>
</tr>
</table>
[END assetclass_table]
</form>

View File

@@ -1,114 +1,101 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_asset}:</b>
<td class="header">
{asset_name}
</td>
<td align="right">
<a href="assigniptoasset.php?asset_id={asset_id}"><img src="images/add.gif" border="0" title="{lang_assigniptoasset}"></a>
<a href="assetedit.php?asset_id={asset_id}"><img src="images/edit.gif" border="0" title="{lang_asset_edit}"></a>
<a href="assetdel.php?asset_id={asset_id}"><img src="images/del.gif" border="0" title="{lang_asset_del}"></a>
<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>
<table border="0">
[BLOCK asset_table AS asset_table]
<table class="info">
[BLOCK asset_row]
<tr>
<td>
<b>{lang_asset_name}:</b>
<td class="header">
{lang_asset}
</td>
<td>
{asset_name}
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_hostname}:</b>
<td class="label">
{lang_asset_name}
</td>
<td>
{hostname}
<td class="value">
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a>
</td>
</tr>
<tr>
<td>
<b>{lang_assetclass}:</b>
<td class="label">
{lang_asset_hostname}
</td>
<td>
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a>
<td class="value">
{asset_hostname}
</td>
</tr>
</tr>
<tr>
<td>
<b>{lang_asset_info}:</b>
<td class="label">
{lang_asset_info}
</td>
<td>
<td class="value">
{asset_info}
</td>
</tr>
[END asset_row]
</table>
[END asset_table]
<p>
[BLOCK table AS node]
<table border="0">
[BLOCK noderow]
[BLOCK assetclass_table AS assetclass_table]
<table class="info">
<tr>
<td>
<td class="header">
{lang_assetclass}
</td>
<td class="header_right">
&nbsp;
</td>
<td>
<b>{lang_node} #{nodecount}</b>
</td>
</tr>
<tr>
<td>
<b>{lang_ip}:</b>
<td class="label">
{lang_assetclass_name}
</td>
<td>
<a href="nodeview.php?node_id={node_id}">{ip}</a>
<td class="value">
<a href="assetclassview.php?assetclass_id={assetclass_id}">{assetclass_name}</a>
</td>
</tr>
<tr>
<td>
<b>{lang_subnet}:</b>
</td>
<td>
<a href="subnetview.php?subnet_id={subnet_id}&page={ip}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
<tr>
<td>
<b>{lang_mac}:</b>
</td>
<td>
{mac}
</td>
</tr>
<tr>
<td>
<b>{lang_dns1}:</b>
</td>
<td>
{dns1}
</td>
</tr>
<tr>
<td>
<b>{lang_dns2}:</b>
</td>
<td>
{dns2}
</td>
</tr>
<tr>
<td>
<b>{lang_node_info}:</b>
</td>
<td>
{node_info}
</td>
</tr>
[END noderow]
</table>
[END 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>

View File

@@ -1,93 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="assigniptoasset">
<table border="0" width="100%">
<tr>
<td>
<b>{lang_assigniptoasset}:</b>
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
{lang_ip}:
</td>
<td>
<input type="text" name="ip" value="{ip}">
</td>
</tr>
[BLOCK table AS subnet]
<tr>
<td>
{lang_subnet}:
</td>
<td>
<select name="subnet_id">
[BLOCK subnetrow]
<option value="{subnet_id}" {subnet_selected}>{subnet_address}/{subnet_mask}</option>
[END subnetrow]
</select>
</td>
</tr>
[END table]
[BLOCK table AS asset]
<tr>
<td>
{lang_asset_name}:
</td>
<td>
<select name="asset_id">
[BLOCK assetrow]
<option value="{asset_id}" {asset_selected}>{asset_name}</option>
[END assetrow]
</select>
</td>
</tr>
[END table]
<tr>
<td>
{lang_mac}:
</td>
<td>
<input type="text" name="mac">
</td>
</tr>
<tr>
<td>
{lang_dns1}:
</td>
<td>
<input type="text" name="dns1">
</td>
<td>
<input type="checkbox" name="dns1suffix" checked>{config_dns1suffix}
</td>
</tr>
<tr>
<td>
{lang_dns2}:
</td>
<td>
<input type="text" name="dns2">
</td>
<td>
<input type="checkbox" name="dns2suffix" checked>{config_dns2suffix}
</td>
</tr>
<tr>
<td>
{lang_node_info}:
</td>
<td>
<textarea name="node_info"></textarea>
</td>
</tr>
</table>
</form>

View File

@@ -1,29 +1,67 @@
<table border="0">
<form method="POST" action="submit.php">
<input type="hidden" name="redirect" value="assigniptonode">
<input type="hidden" name="node_ip" value="{node_ip}">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table class="title">
<tr>
<td>
<b>{lang_ip}:</b>
<td class="header">
{lang_assigniptonode}
</td>
<td>
{ip}
<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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_ip}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_subnet}:</b>
<td class="label">
{lang_ip}
</td>
<td>
<a href="subnetview.php?subnet_id={subnet_id}&page={ip}">{subnet_address}/{subnet_mask}</a>
<td class="value">
{node_ip}
</td>
</tr>
<tr>
<td class="label">
{lang_subnet}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}&page={node_ip}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<a href="assigniptoasset.php?subnet_id={subnet_id}&ip={ip}">{lang_assigniptoasset}</a> / <a href="nodeadd.php?subnet_id={subnet_id}&ip={ip}">{lang_node_new}</a>
<td class="header">
{lang_options}
</td>
</tr>
<tr>
<td class="value">
<input type="radio" name="action" value="assignnodetoasset" checked>&nbsp;{lang_assignnodetoasset_existing}
</td>
</tr>
<tr>
<td class="value">
<input type="radio" name="action" value="nodeadd">&nbsp;{lang_assignnodetoasset_new}
</td>
</tr>
</table>

View File

@@ -1,44 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="assignlocationtosubnet">
<table border="0">
<tr>
<td colspan="2">
<b>{lang_assignlocationtosubnet}:</b>
</td>
</tr>
[BLOCK table AS location]
<tr>
<td>
{lang_location_name}:
</td>
<td>
<select name="location_id">
<option value="0">(none)</option>
[BLOCK locationrow]
<option value="{location_id}" {selected}>{location_name}</option>
[END locationrow]
</select>
</td>
</tr>
[END table]
[BLOCK table AS subnet]
<tr>
<td>
{lang_subnet}:
</td>
<td>
<select name="subnet_id">
[BLOCK subnetrow]
<option value="{subnet_id}" {selected}>{subnet_address}/{subnet_mask}</option>
[END subnetrow]
</select>
</td>
</tr>
[END table]
<tr>
<td colspan="2" align="right">
<input type="submit" value="{lang_submit}"><input type="reset" value="{lang_reset}">
</td>
</tr>
</table>
</form>

127
tpl/assignnodetoasset.tpl Normal file
View File

@@ -0,0 +1,127 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="assignnodetoasset">
<table class="title">
<tr>
<td class="header">
{lang_assignnodetoasset}
</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}">
</td>
</tr>
</table>
<p>
[BLOCK node_table AS node_table]
<table class="info">
[BLOCK node_row]
<tr>
<td class="header">
{lang_node}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_ip}
</td>
<td label="value">
<input type="text" name="node_ip" value="{node_ip}">
</td>
</tr>
<tr>
<td class="label">
{lang_mac}
</td>
<td label="value">
<input type="text" name="node_mac">
</td>
</tr>
<tr>
<td class="label">
{lang_dns1}
</td>
<td label="value">
<input type="text" name="node_dns1">
</td>
</tr>
<tr>
<td class="label">
{lang_dns2}
</td>
<td label="value">
<input type="text" name="node_dns2">
</td>
</tr>
<tr>
<td class="label">
{lang_node_info}
</td>
<td label="value">
<textarea name="node_info" cols="30" rows="10"></textarea>
</td>
</tr>
[END node_row]
</table>
[END node_table]
<p>
[BLOCK asset_table AS asset_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 label="value">
<select name="asset_id">
[BLOCK asset_row]
<option value="{asset_id}" {asset_selected}>{asset_name}</option>
[END asset_row]
</select>
</td>
</tr>
</table>
[END asset_table]
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<select name="subnet_id">
[BLOCK subnet_row]
<option value="{subnet_id}" {subnet_selected}>{subnet_address}/{subnet_mask}</option>
[END subnet_row]
</select>
</td>
</tr>
</table>
[END subnet_table]
</form>

View File

@@ -1,43 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="assignvlantosubnet">
<table border="0">
<tr>
<td colspan="2">
<b>{lang_assignvlantosubnet}:</b><br>
</td>
</tr>
[BLOCK table AS vlan]
<tr>
<td>
{lang_vlan}:
</td>
<td>
<select name="vlan_id">
[BLOCK vlanrow]
<option value="{vlan_id}" {selected}>{vlan_name} ({vlan_id})</option>
[END vlanrow]
</select>
</td>
</tr>
[END table]
[BLOCK table AS subnet]
<tr>
<td>
{lang_subnet}:
</td>
<td>
<select name="subnet_id">
[BLOCK subnetrow]
<option value="{subnet_id}" {selected}>{subnet_address}/{subnet_mask}</option>
[END subnetrow]
</select>
</td>
</tr>
[END table]
<tr>
<td colspan="2" align="right">
<input type="submit" value="{lang_submit}"><input type="reset" value="{lang_reset}">
</td>
</tr>
</table>
</form>

View File

@@ -1,7 +1,25 @@
<table border="0">
<table class="title">
<tr>
<td>
<img src="images/comments.gif" title="{lang_comments}">&nbsp;<b>{lang_comments}:</b>&nbsp;{comments}<br>
<td class="header">
{lang_comments}
</td>
<td align="right">
<a href="#" onClick="history.go(-1)"><img src="image.php?icon=back" alt="{lang_cancel}"></a>
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_comments}
</td>
</tr>
<tr>
<td class="value">
{comments}
</td>
</tr>
</table>

View File

@@ -1,13 +1,11 @@
<hr>
<table border="0" width="100%">
<p>
<table class="footer">
<tr>
<td align="center">
<a href="index.php" class="label">IP Reg {config_version}</a>
IP Reg {config_version}
</td>
</tr>
</table>
</body>
</html>

View File

@@ -1,30 +1,63 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>IP Reg {config_version}</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>{lang_ipreg}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="tpl/style.css" type="text/css">
<link rel="shortcut icon" href="images/shield.ico">
<script type="text/javascript" src="lib/changelink.js"></script>
<script type="text/javascript" src="lib/changetext.js"></script>
</head>
<body>
<form action="search.php" method="post">
<table border="0" width="100%">
<table class="menu">
<tr>
<td>
{lang_header_viewby}:&nbsp;<a href="asset.php">{lang_asset}</a> -
<a href="location.php">{lang_location}</a> -
<a href="subnet.php">{lang_subnet}</a> -
<a href="vlan.php">{lang_vlan}</a>&nbsp;
.:<input type="text" name="search" value="{search}">&nbsp;<input type="image" src="images/search.gif" title="{lang_search}">
&nbsp;<a href="index.php"><img src="image.php?icon=logo" alt="{lang_ipreg}"></a>&nbsp;|&nbsp;
[BLOCK menu_assets]
<a href="asset.php">{lang_assets}</a>&nbsp;|&nbsp;
[END menu_assets]
[BLOCK menu_assetclasses]
<a href="assetclass.php">{lang_assetclasses}</a>&nbsp;|&nbsp;
[END menu_assetclasses]
[BLOCK menu_assetclassgroups]
<a href="assetclassgroup.php">{lang_assetclassgroups}</a>&nbsp;|&nbsp;
[END menu_assetclassgroups]
[BLOCK menu_locations]
<a href="location.php">{lang_locations}</a>&nbsp;|&nbsp;
[END menu_locations]
[BLOCK menu_nodes]
<a href="node.php">{lang_nodes}</a>&nbsp;|&nbsp;
[END menu_nodes]
[BLOCK menu_subnets]
<a href="subnet.php">{lang_subnets}</a>&nbsp;|&nbsp;
[END menu_subnets]
[BLOCK menu_users]
<a href="user.php">{lang_users}</a>&nbsp;|&nbsp;
[END menu_users]
[BLOCK menu_vlans]
<a href="vlan.php">{lang_vlans}</a>&nbsp;|&nbsp;
[END menu_vlans]
<input type="text" name="search" value="{search}">&nbsp;<input type="image" src="image.php?icon=search" alt="{lang_search}">
</td>
<td align="right">
{lang_about} -
<a href="options.php">{lang_options}</a> -
{suser_name}&nbsp;|&nbsp;
<a href="about.php">{lang_about}</a>&nbsp;|&nbsp;
<a href="options.php">{lang_options}</a>&nbsp;|&nbsp;
<a href="logout.php">{lang_logout}</a>
</td>
</tr>
</table>
</form>
<hr>
<table class="header">
<tr>
<td>
&nbsp;{lang_ipreg}
</td>
</tr>
</table>
<p>

View File

@@ -1,57 +1,50 @@
<table border="0">
<table class="info">
<tr>
<td>
<b>IP Reg</b>
<td class="header">
{lang_statistics}
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td colspan="2">
<b>{lang_statistics}:</b>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td width="100">
{lang_assets}:
<td class="label">
{lang_assets}
</td>
<td align="right">
{assetcount}
<td class="value">
<a href="asset.php">{asset_counter}</a>
</td>
</tr>
<tr>
<td>
{lang_locations}:
<td class="label">
{lang_locations}
</td>
<td align="right">
{locationcount}
<td class="value">
<a href="location.php">{location_counter}</a>
</td>
</tr>
<tr>
<td>
{lang_nodes}:
<td class="label">
{lang_nodes}
</td>
<td align="right">
{nodecount}
<td class="value">
<a href="node.php">{node_counter}</a>
</td>
</tr>
<tr>
<td>
{lang_subnets}:
<td class="label">
{lang_subnets}
</td>
<td align="right">
{subnetcount}
<td class="value">
<a href="subnet.php">{subnet_counter}</a>
</td>
</tr>
<tr>
<td>
{lang_vlans}:
<td class="label">
{lang_vlans}
</td>
<td align="right">
{vlancount}
<td class="value">
<a href="vlan.php">{vlan_counter}</a>
</td>
</tr>
</table>

View File

@@ -1,24 +1,29 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_locations}:</b><br>
<td class="header">
{lang_locations} ({location_counter})
</td>
<td align="right">
<a href="locationadd.php"><img src="images/add.gif" border="0" title="{lang_location_add}"></a>
<a href="locationadd.php"><img src="image.php?icon=add" alt="{lang_location_add}"></a>
</td>
</tr>
</table>
<p>
[BLOCK table AS location]
<table border="0">
[BLOCK locationrow]
[BLOCK location_table AS location_table]
<table class="info">
<tr>
<td>
<td class="header">
{lang_location_name}
</td>
</tr>
[BLOCK location_row]
<tr>
<td class="value">
{nbsp}<a href="locationview.php?location_id={location_id}">{location_name}</a>
</td>
</tr>
[END locationrow]
[END location_row]
</table>
[END table]
[END location_table]

View File

@@ -1,51 +1,73 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="location">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_location_add}:</b><br>
<td class="header">
{lang_location_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_location_name}:
<td class="header">
{lang_location}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_location_name}
</td>
<td class="value">
<input type="text" name="location_name">
</td>
</tr>
[BLOCK table AS location]
</tr>
<tr>
<td>
{lang_location_parent}:
<td class="label">
{lang_location_info}
</td>
<td>
<select name="parent">
<option value="0">(none)</option>
[BLOCK locationrow]
<option value="{location_id}" {location_selected}>{location_name}</option>
[END locationrow]
</select>
</td>
</tr>
[END table]
<tr>
<td>
{lang_location_info}:
</td>
<td>
<textarea name="location_info"></textarea>
<td class="value">
<textarea name="location_info" cols="30" rows="10"></textarea>
</td>
</tr>
</table>
<p>
[BLOCK location_table AS location_table]
<table class="info">
<tr>
<td class="header">
{lang_location_parent}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_location_name}
</td>
<td class="value">
<select name="location_parent">
<option value="0">(none)</option>
[BLOCK location_row]
<option value="{location_id}" {location_selected}>{nbsp}{location_name}</option>
[END location_row]
</select>
</td>
</tr>
</table>
[END location_table]
</form>

View File

@@ -2,25 +2,34 @@
<input type="hidden" name="del" value="location">
<input type="hidden" name="location_id" value="{location_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_location_del}:</b><br>
<td class="header">
{location_name}
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>{lang_location_name}:</b>
<td class="header">
{lang_location}
</td>
<td>
<td class="header_right">
&nbsp;
</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>

View File

@@ -2,51 +2,75 @@
<input type="hidden" name="edit" value="location">
<input type="hidden" name="location_id" value="{location_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_location_edit}:</b><br>
<td class="header">
{location_name}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK location_table AS location_table]
<table class="info">
<tr>
<td>
{lang_location_name}:
<td class="header">
{lang_location}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_location_name}
</td>
<td class="value">
<input type="text" name="location_name" value="{location_name}">
</td>
</tr>
<tr>
<td>
{lang_location_parent}:
<td class="label">
{lang_location_info}
</td>
<td>
[BLOCK table AS parent]
<select name="parent">
<option value="0">(none)</option>
[BLOCK parentrow]
<option value="{parent_id}" {selected}>{parent_name}</option>
[END parentrow]
</select>
[END table]
</td>
</tr>
<tr>
<td>
{lang_location_info}:
</td>
<td>
<textarea name="location_info">{location_info}</textarea>
<td class="value">
<textarea name="location_info" cols="30" rows="10">{location_info}</textarea>
</td>
</tr>
</table>
[END location_table]
<p>
[BLOCK parentlocation_table AS parentlocation_table]
<table class="info">
<tr>
<td class="header">
{lang_location_parent}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_location_parent}
</td>
<td class="value">
<select name="parentlocation_id">
<option value="0">(none)</option>
[BLOCK parentlocation_row]
<option value="{parentlocation_id}" {parentlocation_selected}>{nbsp}{parentlocation_name}</option>
[END parentlocation_row]
</select>
</td>
</tr>
</table>
[END parentlocation_table]
</form>

63
tpl/locationsubnetadd.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="locationsubnet">
<input type="hidden" name="location_id" value="{location_id}">
<table class="title">
<tr>
<td class="header">
{lang_locationsubnet}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_location}
</td>
<td class="header_right">
&nbsp;
</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>
</table>
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet_add}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet}
</td>
<td class="value">
<select name="subnet_id">
[BLOCK subnet_row]
<option value="{subnet_id}">{subnet_address}/{subnet_mask}</option>
[END subnet_row]
</select>
</td>
</tr>
</table>
[END subnet_table]

63
tpl/locationsubnetdel.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="del" value="locationsubnet">
<input type="hidden" name="location_id" value="{location_id}">
<table class="title">
<tr>
<td class="header">
{lang_locationsubnet}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_location}
</td>
<td class="header_right">
&nbsp;
</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>
</table>
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet_del}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet}
</td>
<td class="value">
<select name="subnet_id">
[BLOCK subnet_row]
<option value="{subnet_id}">{subnet_address}/{subnet_mask}</option>
[END subnet_row]
</select>
</td>
</tr>
</table>
[END subnet_table]

View File

@@ -0,0 +1,60 @@
<form method="POST" action="submit.php">
<input type="hidden" name="redirect" value="locationsubnet">
<input type="hidden" name="location_id" value="{location_id}">
<table class="title">
<tr>
<td class="header">
{lang_locationsubnet}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_location}
</td>
<td class="header_right">
&nbsp;
</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>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_options}
</td>
<td class="value">
<input type="radio" name="action" value="locationsubnetadd" checked>&nbsp;{lang_subnet_add}<br>
<input type="radio" name="action" value="locationsubnetdel">&nbsp;{lang_subnet_del}
</td>
</tr>
</table>

View File

@@ -1,62 +1,99 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_location}:</b><br>
<td class="header">
{location_name}
</td>
<td align="right">
<a href="locationadd.php?location_id={location_id}"><img src="images/add.gif" border="0" title="{lang_sublocation_add}"></a>
<a href="locationedit.php?location_id={location_id}"><img src="images/edit.gif" border="0" title="{lang_location_edit}"></a>
<a href="locationdel.php?location_id={location_id}"><img src="images/del.gif" border="0" title="{lang_location_del}"></a>
<a href="locationadd.php?location_parent={location_id}"><img src="image.php?icon=add" alt="{lang_sublocation_add}"></a>
<a href="locationedit.php?location_id={location_id}"><img src="image.php?icon=edit" alt="{lang_location_edit}"></a>
<a href="locationdel.php?location_id={location_id}"><img src="image.php?icon=delete" alt="{lang_location_del}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK location_table AS location_table]
<table class="info">
<tr>
<td>
<b>{lang_location_name}:</b>
<td class="header">
{lang_location}
</td>
<td>
[BLOCK table AS locationcrumb]
[BLOCK locationcrumbrow]
{seperator}<a href="locationview.php?location_id={location_id}">{location_name}</a>
[END locationcrumbrow]
[END table]
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_location_info}:</b>
<td class="label">
{lang_location_name}
</td>
<td>
<td class="value">
[BLOCK locationcrumb_table AS locationcrumb_table]
[BLOCK locationcrumb_row]
{seperator}<a href="locationview.php?location_id={location_id}">{location_name}</a>
[END locationcrumb_row]
[END locationcrumb_table]
</td>
</tr>
<tr>
<td class="label">
{lang_location_info}
</td>
<td class="value">
{location_info}
</td>
</tr>
</table>
[END location_table]
<p>
<table class="info">
<tr>
<td>
<b>{lang_subnets}:</b>
<td class="header">
{lang_sublocation}
</td>
[BLOCK table AS subnet]
<td>
[BLOCK subnetrow]
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a><br>
[END subnetrow]
<td class="header_right">
&nbsp;
</td>
[END table]
</tr>
<tr>
<td>
<b>{lang_sublocations}:</b>
<td class="label">
{lang_sublocations} ({sublocation_counter})
</td>
[BLOCK table AS sublocation]
<td>
[BLOCK sublocationrow]
<td class="value">
[BLOCK sublocation_table AS sublocation_table]
[BLOCK sublocation_row]
<a href="locationview.php?location_id={sublocation_id}">{sublocation_name}</a><br>
[END sublocationrow]
[END sublocation_row]
[END sublocation_table]
</td>
[END table]
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
<a href="locationsubnetedit.php?location_id={location_id}"><img src="image.php?icon=edit" alt="{lang_locationsubnet_edit}"></a>
</td>
</tr>
<tr>
<td class="label">
{lang_subnets} ({subnet_counter})
</td>
<td class="value">
[BLOCK subnet_table AS subnet_table]
[BLOCK subnet_row]
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a><br>
[END subnet_row]
[END subnet_table]
</td>
</tr>
</table>

View File

@@ -1,43 +1,71 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>IP Reg</title>
<title>{lang_ipreg}</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="tpl/style.css" type="text/css">
<link rel="shortcut icon" href="images/shield.ico">
</head>
<body>
<table class="menu">
<tr>
<td>
&nbsp;
</td>
</tr>
</table>
<table class="header">
<tr>
<td>
{lang_ipreg}
</td>
</tr>
</table>
<p>
<hr>
<form method="POST" action="login.php">
<table border="0">
<table class="title">
<tr>
<td colspan="2">
<b>IP Reg</b>
<td class="header">
{lang_ipreg}&nbsp;{config_version}
</td>
<td align="right">
<input type="image" src="images/control_fastforward_blue.png" alt="{lang_login}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_login}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
Username:
<td class="label">
{lang_user_name}
</td>
<td>
<td class="value">
<input type="text" name="user_name">
</td>
</tr>
<tr>
<td>
Password:
<td class="label">
{lang_user_password}
</td>
<td>
<td class="value">
<input type="password" name="user_pass">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="Submit"><input type="reset" value="Reset">
</td>
</tr>
</table>
</form>

75
tpl/natadd.tpl Normal file
View File

@@ -0,0 +1,75 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="nat">
<input type="hidden" name="node_id_ext" value="{node_id_ext}">
<table class="title">
<tr>
<td class="header">
{lang_nat}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_node}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_ip}
</td>
<td class="value">
<a href="nodeview.php?node_id={node_id_ext}">{node_ip_ext}</a>
</td>
</tr>
</table>
<p>
[BLOCK node_table AS node_table]
<table class="info">
<tr>
<td class="header">
{lang_nat_add}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_ip}
</td>
<td class="value">
<select name="node_id_int">
[BLOCK node_row]
<option value="{node_id_int}">{node_ip_int}/{asset_name}</option>
[END node_row]
</select>
</td>
</tr>
<tr>
<td class="label">
{lang_nat_type}
</td>
<td class="value">
<select name="nat_type">
<option value="1">{lang_nat_type_1}</option>
<option value="2">{lang_nat_type_2}</option>
<option value="3">{lang_nat_type_3}</option>
</select>
</td>
</tr>
</table>
[END node_table]

63
tpl/natdel.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="del" value="nat">
<input type="hidden" name="node_id_ext" value="{node_id_ext}">
<table class="title">
<tr>
<td class="header">
{lang_nat}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_node}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_ip}
</td>
<td class="value">
<a href="nodeview.php?node_id={node_id_ext}">{node_ip_ext}</a>
</td>
</tr>
</table>
<p>
[BLOCK node_table AS node_table]
<table class="info">
<tr>
<td class="header">
{lang_nat_del}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_node}
</td>
<td class="value">
<select name="node_id_int">
[BLOCK node_row]
<option value="{node_id_int}">{node_ip_int}/{asset_name}</option>
[END node_row]
</select>
</td>
</tr>
</table>
[END node_table]

58
tpl/natedit.tpl Normal file
View File

@@ -0,0 +1,58 @@
<form method="POST" action="submit.php">
<input type="hidden" name="redirect" value="nat">
<input type="hidden" name="node_id" value="{node_id}">
<table class="title">
<tr>
<td class="header">
{lang_nat}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_node}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_ip}
</td>
<td class="value">
<a href="nodeview.php?node_id={node_id}">{node_ip}</a>
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_options}
</td>
</tr>
<tr>
<td class="value">
<input type="radio" name="action" value="natadd" checked>&nbsp;{lang_nat_add}
</td>
</tr>
<tr>
<td class="value">
<input type="radio" name="action" value="natdel">&nbsp;{lang_nat_del}
</td>
</tr>
</table>

35
tpl/node.tpl Normal file
View File

@@ -0,0 +1,35 @@
<table class="title">
<tr>
<td class="header">
{lang_nodes} ({node_counter})
</td>
<td align="right">
<a href="nodeadd.php?subnet_id={subnet_id}"><img src="image.php?icon=add" alt="{lang_node_add}"></a>
</td>
</tr>
</table>
<p>
[BLOCK node_table AS node_table]
<table class="info">
<tr>
<td class="header">
{lang_ip}
</td>
<td class="header">
{lang_asset_name}
</td>
</tr>
[BLOCK node_row]
<tr>
<td class="label">
<a href="nodeview.php?node_id={node_id}">{node_ip}</a>
</td>
<td class="value">
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a>
</td>
</tr>
[END node_row]
</table>
[END node_table]

View File

@@ -1,96 +1,154 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="node">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_node_add}:</b><br>
<td class="header">
{lang_node_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_asset_name}:
<td class="header">
{lang_node}
</td>
<td>
<input type="text" name="asset_name">
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
{lang_hostname}:
<td class="label">
{lang_ip}
</td>
<td>
<input type="text" name="hostname">
<td class="value">
<input type="text" name="node_ip" value="{node_ip}">
</td>
</tr>
<tr>
<td>
{lang_ip}:
<td class="label">
{lang_mac}
</td>
<td>
<input type="text" name="ip" value="{ip}">
</td>
</tr>
[BLOCK table AS subnet]
<tr>
<td>
{lang_subnet}:
</td>
<td>
<select name="subnet_id">
[BLOCK subnetrow]
<option value="{subnet_id}" {selected}>{subnet_address}/{subnet_mask}</option>
[END subnetrow]
</select>
</td>
</tr>
[END table]
[BLOCK table AS assetclass]
<tr>
<td>
{lang_assetclass}:
</td>
<td>
<select name="assetclass_id">
[BLOCK assetclassrow]
<option value="{assetclass_id}">{assetclass_name}</option>
[END assetclassrow]
</select>
</td>
</tr>
[END table]
<tr>
<td>
{lang_mac}:
</td>
<td>
<input type="text" name="mac">
<td class="value">
<input type="text" name="node_mac">
</td>
</tr>
<tr>
<td>
{lang_dns1}:
<td class="label">
{lang_dns1}
</td>
<td>
<input type="text" name="dns1">&nbsp;<input type="checkbox" name="dns1suffix" checked>{config_dns1suffix}
<td class="value">
<input type="text" name="node_dns1">&nbsp;<input type="checkbox" name="node_dns1suffix" checked>{user_dns1suffix}
</td>
</tr>
<tr>
<td>
{lang_dns2}:
<td class="label">
{lang_dns2}
</td>
<td>
<input type="text" name="dns2">&nbsp;<input type="checkbox" name="dns2suffix" checked>{config_dns2suffix}
<td class="value">
<input type="text" name="node_dns2">&nbsp;<input type="checkbox" name="dns2suffix" checked>{user_dns2suffix}
</td>
</tr>
<tr>
<td class="label">
{lang_node_info}
</td>
<td class="value">
<textarea name="node_info" cols="30" rows="10"></textarea>
</td>
</tr>
</table>
<p>
[BLOCK asset_table AS asset_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">
<input type="text" name="asset_name">
</td>
</tr>
<tr>
<td class="label">
{lang_asset_hostname}
</td>
<td class="value">
<input type="text" name="asset_hostname">
</td>
</tr>
</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">
<select name="assetclass_id">
[BLOCK assetclass_row]
<option value="{assetclass_id}">{assetclass_name}</option>
[END assetclass_row]
</select>
</td>
</tr>
</table>
[END assetclass_table]
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<select name="subnet_id">
[BLOCK subnet_row]
<option value="{subnet_id}" {subnet_selected}>{subnet_address}/{subnet_mask}</option>
[END subnet_row]
</select>
</td>
</tr>
</table>
[END subnet_table]
</form>

View File

@@ -3,26 +3,35 @@
<input type="hidden" name="node_id" value="{node_id}">
<input type="hidden" name="asset_id" value="{asset_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_node_del}:</b><br>
<td class="header">
{node_ip}
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>{lang_ip}:</b>
<td class="header">
{lang_node}
</td>
<td>
<a href="nodeview.php?node_id={node_id}">{ip}</a>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_ip}
</td>
<td class="value">
<a href="nodeview.php?node_id={node_id}">{node_ip}</a>
</td>
</tr>
</table>

View File

@@ -2,88 +2,127 @@
<input type="hidden" name="edit" value="node">
<input type="hidden" name="node_id" value="{node_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_node_edit}:</b><br>
<td class="header">
{node_ip}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK table AS asset]
[BLOCK node_table AS node_table]
<table class="info">
[BLOCK node_row]
<tr>
<td>
{lang_asset}:
<td class="header">
{lang_node}
</td>
<td>
<select name="asset_id">
[BLOCK assetrow]
<option value="{asset_id}" {asset_selected}>{asset_name}</option>
[END assetrow]
</select>
<td class="header_right">
&nbsp;
</td>
</tr>
[END table]
<tr>
<td>
<td class="label">
{lang_ip}
</td>
<td>
<input type="text" name="ip" value="{ip}">
</td>
</tr>
[BLOCK table AS subnet]
<tr>
<td>
{lang_subnet}:
</td>
<td>
<select name="subnet_id">
[BLOCK subnetrow]
<option value="{subnet_id}" {subnet_selected}>{subnet_address}/{subnet_mask}</option>
[END subnetrow]
</select>
</td>
</tr>
[END table]
<tr>
<td>
{lang_mac}:
</td>
<td>
<input type="text" name="mac" value="{mac}">
<td label="value">
<input type="text" name="node_ip" value="{node_ip}">
</td>
</tr>
<tr>
<td>
{lang_dns1}:
<td class="label">
{lang_mac}
</td>
<td>
<input type="text" name="dns1" value="{dns1}">
<td label="value">
<input type="text" name="node_mac" value="{node_mac}">
</td>
</tr>
<tr>
<td>
{lang_dns2}:
<td class="label">
{lang_dns1}
</td>
<td>
<input type="text" name="dns2" value="{dns2}">
<td label="value">
<input type="text" name="node_dns1" value="{node_dns1}">
</td>
</tr>
<tr>
<td>
{lang_node_info}:
<td class="label">
{lang_dns2}
</td>
<td>
<td label="value">
<input type="text" name="node_dns2" value="{node_dns2}">
</td>
</tr>
<tr>
<td class="label">
{lang_node_info}
</td>
<td label="value">
<textarea name="node_info">{node_info}</textarea>
</td>
</tr>
[END node_row]
</table>
[END node_table]
<p>
[BLOCK asset_table AS asset_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 label="value">
<select name="asset_id">
[BLOCK asset_row]
<option value="{asset_id}" {asset_selected}>{asset_name}</option>
[END asset_row]
</select>
</td>
</tr>
</table>
[END asset_table]
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<select name="subnet_id">
[BLOCK subnet_row]
<option value="{subnet_id}" {subnet_selected}>{subnet_address}/{subnet_mask}</option>
[END subnet_row]
</select>
</td>
</tr>
</table>
[END subnet_table]
</form>

View File

@@ -1,46 +0,0 @@
[BLOCK table AS node]
<table border="0">
<tr>
<td width="100">
<a href="nodelist.php?subnet_id={subnet_id}&order=ip"><b>{lang_ip}:</b></a>
</td>
<td width="150">
<a href="nodelist.php?subnet_id={subnet_id}&order=asset_name"><b>{lang_asset_name}:</b></a>
</td>
<td width="150">
<a href="nodelist.php?subnet_id={subnet_id}&order=hostname"><b>{lang_hostname}:</b></a>
</td>
<td width="150">
<a href="nodelist.php?subnet_id={subnet_id}&order=mac"><b>{lang_mac}:</b></a>
</td>
<td width="150">
<a href="nodelist.php?subnet_id={subnet_id}&order=dns1"><b>{lang_dns1}:</b></a>
</td>
<td width="150">
<a href="nodelist.php?subnet_id={subnet_id}&order=dns2"><b>{lang_dns2}:</b></a>
</td>
</tr>
[BLOCK noderow]
<tr>
<td>
<a href="nodeview.php?node_id={node_id}">{ip}</a>
</td>
<td>
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a>
</td>
<td>
{hostname}
</td>
<td>
{mac}
</td>
<td>
{dns1}
</td>
<td>
{dns2}
</td>
</tr>
[END noderow]
</table>
[END table]

View File

@@ -1,82 +1,139 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_node}:</b><br>
<td class="header">
{node_ip}
</td>
<td align="right">
<a href="nodeedit.php?node_id={node_id}"><img src="images/edit.gif" border="0" title="{lang_node_edit}"></a>
<a href="nodedel.php?node_id={node_id}"><img src="images/del.gif" border="0" title="{lang_node_del}"></a>
<a href="nodeedit.php?node_id={node_id}"><img src="image.php?icon=edit" alt="{lang_node_edit}"></a>
<a href="nodedel.php?node_id={node_id}"><img src="image.php?icon=delete" alt="{lang_node_del}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK node_table AS node_table]
<table class="info">
[BLOCK node_row]
<tr>
<td>
<b>{lang_ip}:</b>
<td class="header">
{lang_node}
</td>
<td>
{ip}
</td>
</tr>
<tr>
<td>
<b>{lang_subnet}:</b>
</td>
<td>
<a href="subnetview.php?subnet_id={subnet_id}&page={ip}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
<tr>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_asset_name}:</b>
<td class="label">
{lang_ip}
</td>
<td>
<a href="assetview.php?asset_id={asset_id}">{asset_name}</a>
<td class="value">
<a href="nodeview.php?node_id={node_id}">{node_ip}</a>
</td>
</tr>
<tr>
<td>
&nbsp;
<td class="label">
{lang_mac}
</td>
<td class="value">
{node_mac}
</td>
</tr>
<tr>
<td>
<b>{lang_mac}:</b>
<td class="label">
{lang_dns1}
</td>
<td>
{mac}
<td class="value">
{node_dns1}
</td>
</tr>
<tr>
<td>
<b>{lang_dns1}:</b>
<td class="label">
{lang_dns2}
</td>
<td>
{dns1}
<td class="value">
{node_dns2}
</td>
</tr>
<tr>
<td>
<b>{lang_dns2}:</b>
<td class="label">
{lang_node_info}
</td>
<td>
{dns2}
</td>
</tr>
<tr>
<td>
<b>{lang_node_info}:</b>
</td>
<td>
<td class="value">
{node_info}
</td>
</tr>
[END node_row]
</table>
[END node_table]
<p>
[BLOCK asset_table AS asset_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>
</table>
[END asset_table]
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}&page={node_ip}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
[END subnet_table]
<p>
<table class="info">
<tr>
<td class="header">
{lang_nat}
</td>
<td class="header_right">
<a href="natedit.php?node_id={node_id}"><img src="image.php?icon=edit" alt="{lang_nat_edit}"></a>
</td>
</tr>
<tr>
<td class="label">
{lang_nat_rules} ({nat_counter})
</td>
<td class="value">
[BLOCK nat_table AS nat_table]
[BLOCK nat_row]
<a href="nodeview.php?node_id={nat_node_id}">{nat_node_ip}</a>/<a href="assetview.php?asset_id={nat_asset_id}">{nat_asset_name}</a> ({nat_type})<br>
[END nat_row]
[END nat_table]
</td>
</tr>
</table>

View File

@@ -1,70 +1,35 @@
<table border="0">
<tr>
<td>
<b>{lang_options_ipreg}</b>
</td>
</tr>
</table>
<form method="POST" action="submit.php">
<input type="hidden" name="edit" value="options">
<table border="0">
<table class="title">
<tr>
<td>
<a href="assetclass.php">{lang_assetclasses}</a>
<td class="header">
{lang_options}
</td>
</tr>
<tr>
<td>
<a href="assetclassgroup.php">{lang_assetclassgroups}</a>
</td>
</tr>
<tr>
<td>
<a href="assigniptoasset.php">{lang_assigniptoasset}</a>
</td>
</tr>
<tr>
<td>
<a href="assignlocationtosubnet.php">{lang_assignlocationtosubnet}</a>
</td>
</tr>
<tr>
<td>
<a href="assignvlantosubnet.php">{lang_assignvlantosubnet}</a>
</td>
</tr>
<tr>
<td>
<a href="userclassauth.php">{lang_userclassauth}</a>
</td>
</tr>
<tr>
<td>
<a href="user.php">{lang_users}</a>
</td>
</tr>
<tr>
<td>
<a href="userclass.php">{lang_userclasses}</a>
<td align="right">
&nbsp;
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>Personal options</b>
<td class="header">
{lang_options_ipreg}
</td>
</tr>
<tr>
<td>
<a href="userpassedit.php">{lang_options_password_edit}</a>
<td class="label">
<a href="optionseditpassword.php">{lang_options_password}</a>
</td>
</tr>
<tr>
<td class="label">
<a href="optionseditdisplay.php">{lang_options_display}</a>
</td>
</tr>
</table>
<p>
</form>

View File

@@ -0,0 +1,92 @@
<form method="POST" action="submit.php">
<input type="hidden" name="edit" value="optionsdisplay">
<table class="title">
<tr>
<td class="header">
{lang_options}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_options_display}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_imagesize_help}">{lang_options_imagesize}</span>
</td>
<td class="value">
<input type="text" name="user_imagesize" value="{user_imagesize}" size="3">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_imagecount_help}">{lang_options_imagecount}</span>
</td>
<td class="value">
<input type="text" name="user_imagecount" value="{user_imagecount}" size="3">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_mac_help}">{lang_options_mac}</span>
</td>
<td class="value">
<input type="text" name="user_mac" value="{user_mac}">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_dateformat_help}">{lang_options_dateformat}</span>
</td>
<td class="value">
<input type="text" name="user_dateformat" value="{user_dateformat}">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_dns1suffix_help}">{lang_options_dns1suffix}</span>
</td>
<td class="value">
<input type="text" name="user_dns1suffix" value="{user_dns1suffix}">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_dns2suffix_help}">{lang_options_dns2suffix}</span>
</td>
<td class="value">
<input type="text" name="user_dns2suffix" value="{user_dns2suffix}">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_menu_help}">{lang_menu}</span>
</td>
<td class="value">
<input type="checkbox" name="user_menu_assets" {user_menu_assets_checked}>{lang_assets}<br>
<input type="checkbox" name="user_menu_assetclasses" {user_menu_assetclasses_checked}>{lang_assetclasses}<br>
<input type="checkbox" name="user_menu_assetclassgroups" {user_menu_assetclassgroups_checked}>{lang_assetclassgroups}<br>
<input type="checkbox" name="user_menu_locations" {user_menu_locations_checked}>{lang_locations}<br>
<input type="checkbox" name="user_menu_nodes" {user_menu_nodes_checked}>{lang_nodes}<br>
<input type="checkbox" name="user_menu_subnets" {user_menu_subnets_checked}>{lang_subnets}<br>
<input type="checkbox" name="user_menu_users" {user_menu_users_checked}>{lang_users}<br>
<input type="checkbox" name="user_menu_vlans" {user_menu_vlans_checked}>{lang_vlans}<br>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,53 @@
<form method="POST" action="submit.php">
<input type="hidden" name="edit" value="optionspassword">
<table class="title">
<tr>
<td class="header">
{lang_options}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_options_password}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_currentpassword_help}">{lang_options_currentpassword}</span>
</td>
<td class="value">
<input type="password" name="user_currentpass">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_newpassword1_help}">{lang_options_newpassword1}</span>
</td>
<td class="value">
<input type="password" name="user_newpass1">
</td>
</tr>
<tr>
<td class="label">
<span class="help" title="{lang_options_newpassword2_help}">{lang_options_newpassword2}</span>
</td>
<td class="value">
<input type="password" name="user_newpass2">
</td>
</tr>
</table>
</form>

View File

@@ -1,18 +1,26 @@
[BLOCK nosearch]
<table border="0">
<table class="info">
<tr>
<td>
<img src="images/comments.gif" title="{lang_comments}">&nbsp;{lang_comments_search_nosearch}
<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 border="0">
<table class="info">
<tr>
<td>
<b>{lang_search_results_found}:&nbsp;{resultcounter}</b>
<td class="value">
{lang_search_results_found}&nbsp;{resultcounter}
</td>
</tr>
</table>
@@ -21,20 +29,22 @@
<p>
[BLOCK table AS asset]
<table border="0">
<table class="info">
<tr>
<td>
<b>{item_name}&nbsp;{lang_search_found}&nbsp;({counter}):</b>
<td class="header">
{item_name} ({counter})
</td>
</tr>
[BLOCK row]
<tr>
<td>
<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]

View File

@@ -1,39 +1,164 @@
body {
background-color: #FFFFFF;
color: #000000;
background-color: #fff;
background-image: url("../images/background.png");
background-repeat: repeat-x;
font-family: Verdana, Arial, Helvetica, Sans-serif;
font-size: 11px;
margin: 12px;
margin-top: 12px;
font-size: 70%;
text-align: justify;
}
a {
color: #466A8D;
color: #000;
}
a:hover {
color: #E1B100;
color: #666;
}
img {
border: 0px;
}
input {
font-size: 100%;
position: relative;
top: -2px;
border: 0px;
font-family: Verdana, Arial, Helvetica, Sans-serif;
font-size: 100%;
}
select {
font-size: 100%;
font-family: Verdana, Sans-serif;
position: relative;
top: -2px;
}
table {
border: 0px;
font-family: Verdana, Arial, Helvetica, Sans-serif;
font-size: 100%;
}
td {
textarea {
border: 0px;
font-family: Verdana, Arial, Helvetica, Sans-serif;
font-size: 100%;
height: 120px;
width: 350px;
}
.help {
border-bottom: 1px dotted #333;
cursor: help;
}
table.footer {
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
width: 100%;
}
table.footer td {
background-color: #666;
color: #fff;
font-weight: bold;
height: 25px;
}
table.header {
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
width: 100%;
}
table.header td {
background-color: #666;
color: #fff;
font-weight: bold;
height: 25px;
}
table.info {
background-color: #666;
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
width: 800px;
}
table.info td {
background-color: #dcdcdc;
border: 1px #fff solid;
color: #000;
padding: 4px;
}
table.info td.header {
background-color: #666;
color: #fff;
font-weight: bold;
height: 25px;
}
table.info td.header_right {
background-color: #666;
color: #fff;
font-weight: bold;
height: 25px;
text-align: right;
}
table.info td.footer {
text-align: right;
}
table.info td.label {
vertical-align: top;
height: 18px;
width: 200px;
}
table.info td.value {
vertical-align: top;
}
table.info td.help {
vertical-align: top;
}
table.menu {
width: 100%;
}
table.menu td {
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
}
table.title {
width: 800px;
}
table.title td {
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
font-weight: bold;
}
table.submenu {
}
table.submenu td {
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
}
table.subnetview {
background-color: #dcdcdc;
}
table.subnetview td {
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
padding: 2px;
}

View File

@@ -1,24 +1,35 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_subnet}:</b><br>
<td class="header">
{lang_subnets} ({subnet_counter})
</td>
<td align="right">
<a href="subnetadd.php"><img src="images/add.gif" border="0" title="{lang_asset_add}"></a>
<a href="subnetadd.php"><img src="image.php?icon=add" alt="{lang_asset_add}"></a>
</td>
</tr>
</table>
<p>
[BLOCK table AS subnet]
<table border="0">
[BLOCK subnetrow]
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td>
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
<td class="header">
{lang_subnet_subnetaddress_mask}
</td>
<td class="header">
{lang_nodes}
</td>
</tr>
[END subnetrow]
[BLOCK subnet_row]
<tr>
<td class="label">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
<td class="value">
<a href="node.php?subnet_id={subnet_id}">{node_counter}</a>
</td>
</tr>
[END subnet_row]
</table>
[END table]
[END subnet_table]

View File

@@ -1,35 +1,81 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="subnet">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_subnet_add}:</b><br>
<td class="header">
{lang_subnet_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_subnet_subnetaddress}:
<td class="header">
{lang_subnet}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}
</td>
<td class="value">
<input type="text" name="subnet_address">
</td>
</tr>
<tr>
<td>
{lang_subnet_mask}:
<td class="label">
{lang_subnet_mask}
</td>
<td>
<td class="value">
<input type="text" name="subnet_mask" size="2">&nbsp;(8-30)
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_info}
</td>
<td class="value">
<textarea name="subnet_info" cols="30" rows="10"></textarea>
</td>
</tr>
</table>
<p>
[BLOCK vlan_table AS vlan_table]
<table class="info">
<tr>
<td class="header">
{lang_vlan}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan}
</td>
<td class="value">
<select name="vlan_id">
<option value="0">(none)</option>
[BLOCK vlan_row]
<option value="{vlan_id}" {vlan_selected}>{vlan_name}&nbsp;({vlan_number})</option>
[END vlan_row]
</select>
</td>
</tr>
</table>
[END vlan_table]
</form>

View File

@@ -1,17 +1,32 @@
<form method="POST" action="submit.php">
<input type="hidden" name="del" value="subnet">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table border="0">
<table class="title">
<tr>
<td>
<b>{lang_subnet_del}</b>
<td class="header">
{lang_subnet_del}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
</tr>
<tr>
<td>
<b>{lang_subnet}:</b>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
@@ -19,24 +34,27 @@
<p>
[BLOCK table AS node]
<table border="0">
[BLOCK node_table AS node_table]
<table class="info">
<tr>
<td colspan="2">
<img src="images/comments.gif">&nbsp;{lang_comments_asset_del_nodes}
<td class="header">
<img src="image.php?icon=comment" alt="{lang_comments}">&nbsp;{lang_comments_asset_del_nodes}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
[BLOCK noderow]
[BLOCK node_row]
<tr>
<td>
<b>{lang_ip}:</b>
<td class="label">
{lang_ip}
</td>
<td>
<a href="nodeview.php?node_id={node_id}">{ip}</a>
<td class="value">
<a href="nodeview.php?node_id={node_id}">{node_ip}</a>
</td>
</tr>
[END noderow]
[END node_row]
</table>
[END table]
[END node_table]
</form>

View File

@@ -2,58 +2,53 @@
<input type="hidden" name="edit" value="subnet">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_subnet_edit}:</b><br>
<td class="header">
{lang_subnet_edit}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_subnet_subnetaddress}:
<td class="header">
{lang_subnet}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}
</td>
<td class="value">
<input type="text" name="subnet_address" value="{subnet_address}">
</td>
</tr>
<tr>
<td>
{lang_subnet_mask}:
<td class="label">
{lang_subnet_mask}
</td>
<td>
<td class="value">
<input type="text" name="subnet_mask" size="2" value="{subnet_mask}">
</td>
</tr>
<tr>
<td>
{lang_vlan}
<td class="label">
{lang_subnet_info}
</td>
<td>
[BLOCK table AS vlan]
<select name="vlan_id">
<option value="0">(none)</option>
[BLOCK vlanrow]
<option value="{vlan_id}" {selected}>{vlan_name}&nbsp;({vlan_number})</option>
[END vlanrow]
[END table]
</select>
</td>
</tr>
<tr>
<td>
{lang_subnet_info}:
</td>
<td>
<textarea name="subnet_info">{subnet_info}</textarea>
<td class="value">
<textarea name="subnet_info" cols="30" rows="10">{subnet_info}</textarea>
</td>
</tr>
</table>
</form>

63
tpl/subnetlocationadd.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="subnetlocation">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table class="title">
<tr>
<td class="header">
{lang_subnetlocation}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
<p>
[BLOCK location_table AS location_table]
<table class="info">
<tr>
<td class="header">
{lang_location_add}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_location}
</td>
<td class="value">
<select name="location_id">
[BLOCK location_row]
<option value="{location_id}">{location_name}</option>
[END location_row]
</select>
</td>
</tr>
</table>
[END location_table]

63
tpl/subnetlocationdel.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="del" value="subnetlocation">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table class="title">
<tr>
<td class="header">
{lang_subnetlocation}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
<p>
[BLOCK location_table AS location_table]
<table class="info">
<tr>
<td class="header">
{lang_location_del}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_location}
</td>
<td class="value">
<select name="location_id">
[BLOCK location_row]
<option value="{location_id}">{location_name}</option>
[END location_row]
</select>
</td>
</tr>
</table>
[END location_table]

View File

@@ -0,0 +1,60 @@
<form method="POST" action="submit.php">
<input type="hidden" name="redirect" value="subnetlocation">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table class="title">
<tr>
<td class="header">
{lang_subnetlocation}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_location}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_options}
</td>
<td class="value">
<input type="radio" name="action" value="subnetlocationadd" checked>&nbsp;{lang_location_add}<br>
<input type="radio" name="action" value="subnetlocationdel">&nbsp;{lang_location_del}
</td>
</tr>
</table>

View File

@@ -1,125 +1,180 @@
<script language="javascript">
function linkTo(optVal){
if(optVal=="")
return false;
window.location='subnetview.php?subnet_id='+optVal;
}
</script>
<script type="text/javascript">
function change(id,newtext) {
document.getElementById(id).innerHTML=newtext
}
</script>
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_subnet}:</b>
<td class="header">
{subnet_address}/{subnet_mask}
</td>
<td align="right">
<a href="subnetedit.php?subnet_id={subnet_id}"><img src="images/edit.gif" border="0" title="{lang_subnet_edit}"></a>
<a href="subnetdel.php?subnet_id={subnet_id}"><img src="images/del.gif" border="0" title="{lang_subnet_del}"></a>
<a href="subnetedit.php?subnet_id={subnet_id}"><img src="image.php?icon=edit" alt="{lang_subnet_edit}"></a>
<a href="subnetdel.php?subnet_id={subnet_id}"><img src="image.php?icon=delete" alt="{lang_subnet_del}"></a>
</td>
</tr>
</table>
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header" align="right">
[BLOCK noselect]
{iprange1}.{iprange2}.{iprange3}.{iprange4}
[END noselect]
[BLOCK one_select]
{iprange1}.{iprange2}.
<select name="pagination" onchange="changelink(this.options[this.selectedIndex].value);">
[BLOCK one_select_row]
<option value="{subnet_id}&amp;page={iprange1}.{iprange2}.{iprange3}.0" {row_selected}>{iprange3}.0</option>
[END one_select_row]
</select>
[END one_select]
[BLOCK two_select]
<select name="pagination" onchange="changelink(this.options[this.selectedIndex].value);">
[BLOCK two_select_row1]
<option value="{subnet_id}&amp;page={iprange1}.{iprange2}.{iprange3}.0" {row1_selected}>{iprange1}.{iprange2}</option>
[END two_select_row1]
</select>
<select name="pagination" onchange="changelink(this.options[this.selectedIndex].value);">
[BLOCK two_select_row2]
<option value="{subnet_id}&amp;page={iprange1}.{iprange2}.{iprange3}.0" {row2_selected}>{iprange3}.0</option>
[END two_select_row2]
</select>
[END two_select]
</td>
</tr>
<tr>
<td class="label" colspan="2">
[BLOCK node_table AS node_table]
<table class="subnetview">
<tr>
[BLOCK node_row]
<td>
<a href="{url}" onMouseOver="changetext('remotetext','{remotetext}')" onMouseOut="changetext('remotetext','&nbsp;')"><img src="image.php?color={assetclassgroup_color}" alt="{remotetext}"></a>
</td>
{tr}
[END node_row]
</tr>
</table>
<a id="remotetext">&nbsp;</a>
[END node_table]
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}</a>
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_mask}
</td>
<td class="value">
{subnetmask1}.{subnetmask2}.{subnetmask3}.{subnetmask4}
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_nodesinsubnet}
</td>
<td class="value">
<a href="node.php?subnet_id={subnet_id}">{node_counter}</a>&nbsp;&#47;&nbsp;{host_counter}&nbsp;({subnet_usedpercentage}&#37;)
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_info}
</td>
<td class="value">
{subnet_info}
</td>
</tr>
</table>
[END subnet_table]
<table border="0">
<p>
<table class="info">
<tr>
<td>
<table border="0" width="100%">
<tr>
<td>
<b>{lang_subnet_subnetaddress}:</b>&nbsp;{subnet_address}/{subnet_mask}
</td>
<td align="right">
{pagination}
</td>
</tr>
</table>
<td class="header">
{lang_assetclasses}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
<img src="image.php?color={config_color_unused}" alt="{lang_unassigned}">&nbsp;{lang_unassigned}
</td>
<td>
[BLOCK table AS subnet]
<table border="0">
<tr>
[BLOCK iprow]
<td><a href="{url}" onMouseOver="change('remotetext','{remotetext}')" onMouseOut="change('remotetext','&nbsp;')"><img src="image.php?color={color}" border="0"></a></td>{tr}
[END iprow]
</tr>
</table>
[END table]
{free_counter}
</td>
</tr>
[BLOCK assetclassgroup_table AS assetclassgroup_table]
[BLOCK assetclassgroup_row]
<tr>
<td class="label">
<img src="image.php?color={assetclassgroup_color}" alt="{assetclassgroup_name}">&nbsp;<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
</td>
<td>
{assetclassgroup_node_counter}
</td>
</tr>
[END assetclassgroup_row]
[END assetclassgroup_table]
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_vlans}
</td>
<td class="header_right">
<a href="subnetvlanedit.php?subnet_id={subnet_id}"><img src="image.php?icon=edit" alt="{lang_subnetvlan_edit}"></a>
</td>
</tr>
<tr>
<td>
<table border="0">
<tr>
<td>
<a id="remotetext">&nbsp;</a>
</td>
</tr>
</table>
<td class="label">
{lang_vlans} ({vlan_counter})
</td>
<td class="value">
[BLOCK vlan_table AS vlan_table]
[BLOCK vlan_row]
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name} ({vlan_number})</a><br>
[END vlan_row]
[END vlan_table]
</td>
</tr>
</table>
<table border="0">
<p>
<table class="info">
<tr>
<td>
<table border="0">
<tr>
<td>
<b>{lang_vlans}:</b>
</td>
<td>
[BLOCK table AS vlan]
[BLOCK vlanrow]
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name}</a><br>
[END vlanrow]
[END table]
</td>
</tr>
<tr>
<td>
<b>{lang_locations}:</b>
</td>
<td>
[BLOCK table AS location]
[BLOCK locationrow]
<a href="locationview.php?location_id={location_id}">{location_name}</a><br>
[END locationrow]
[END table]
</td>
</tr>
<tr>
<td>
<b>{lang_subnet_info}:</b>
</td>
<td>
{subnet_info}
</td>
</tr>
</table>
<td class="header">
{lang_locations}
</td>
<td width="100">
&nbsp;
<td class="header" align="right">
<a href="subnetlocationedit.php?subnet_id={subnet_id}"><img src="image.php?icon=edit" alt="{lang_location_edit}"></a>
</td>
<td>
[BLOCK table AS assetclassgroup]
<table border="0">
[BLOCK assetclassgrouprow]
<tr>
<td>
<img src="image.php?color={color}">&nbsp;<a href="assetclassgroupview.php?assetclassgroup_id={assetclassgroup_id}">{assetclassgroup_name}</a>
</td>
</tr>
[END assetclassgrouprow]
</table>
[END table]
</tr>
<tr>
<td class="label">
{lang_locations} ({location_counter})
</td>
<td class="value">
[BLOCK location_table AS location_table]
[BLOCK location_row]
<a href="locationview.php?location_id={location_id}">{location_name}</a><br>
[END location_row]
[END location_table]
</td>
</tr>
</table>

63
tpl/subnetvlanadd.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="subnetvlan">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table class="title">
<tr>
<td class="header">
{lang_subnetvlan}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
<p>
[BLOCK vlan_table AS vlan_table]
<table class="info">
<tr>
<td class="header">
{lang_vlan_add}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan}
</td>
<td class="value">
<select name="vlan_id">
[BLOCK vlan_row]
<option value="{vlan_id}">{vlan_name} ({vlan_number})</option>
[END vlan_row]
</select>
</td>
</tr>
</table>
[END vlan_table]

63
tpl/subnetvlandel.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="del" value="subnetvlan">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table class="title">
<tr>
<td class="header">
{lang_subnetvlan}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
<p>
[BLOCK vlan_table AS vlan_table]
<table class="info">
<tr>
<td class="header">
{lang_vlan_del}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan}
</td>
<td class="value">
<select name="vlan_id">
[BLOCK vlan_row]
<option value="{vlan_id}">{vlan_name} ({vlan_number})</option>
[END vlan_row]
</select>
</td>
</tr>
</table>
[END vlan_table]

60
tpl/subnetvlanedit.tpl Normal file
View File

@@ -0,0 +1,60 @@
<form method="POST" action="submit.php">
<input type="hidden" name="redirect" value="subnetvlan">
<input type="hidden" name="subnet_id" value="{subnet_id}">
<table class="title">
<tr>
<td class="header">
{lang_subnetvlan}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet_subnetaddress}/{lang_subnet_mask}
</td>
<td class="value">
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a>
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_vlan}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_options}
</td>
<td class="value">
<input type="radio" name="action" value="subnetvlanadd" checked>&nbsp;{lang_vlan_add}<br>
<input type="radio" name="action" value="subnetvlandel">&nbsp;{lang_vlan_del}
</td>
</tr>
</table>

View File

@@ -1,22 +1,35 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_user}:</b><br>
<td class="header">
{lang_users} ({user_counter})
</td>
<td align="right">
<a href="useradd.php"><img src="images/add.gif" border="0" title="{lang_user_add}"></a>
<a href="useradd.php"><img src="image.php?icon=add" alt="{lang_user_add}"></a>
</td>
</tr>
</table>
[BLOCK table AS user]
<table border="0">
[BLOCK userrow]
<p>
[BLOCK user_table AS user_table]
<table class="info">
<tr>
<td>
<a href="userview.php?user_id={user_id}">{user_displayname}</a>
<td class="header">
{lang_user_name}
</td>
<td class="header">
{lang_user_displayname}
</td>
</tr>
[END userrow]
[BLOCK user_row]
<tr>
<td class="label">
<a href="userview.php?user_id={user_id}">{user_name}</a>
</td>
<td class="value">
{user_displayname}
</td>
</tr>
[END user_row]
</table>
[END table]
[END user_table]

View File

@@ -1,44 +1,51 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="user">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_user_add}:</b>
<td class="header">
{lang_user_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_user_name}:
<td class="header">
{lang_user}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_user_name}
</td>
<td class="value">
<input type="text" name="user_name">
</td>
</tr>
<tr>
<td>
{lang_user_pass}:
<td class="label">
{lang_user_displayname}
</td>
<td>
{user_pass}
<td class="value">
<input type="text" name="user_displayname">
</td>
</tr>
<tr>
<td>
{lang_user_level}:
<td class="label">
{lang_user_password}
</td>
<td>
<select name="user_level">
<option value="1">1</option>
<option value="2">2</option>
<td class="value">
<input type="text" name="user_password">
</td>
</tr>
</table>

View File

@@ -1,22 +0,0 @@
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclass}:</b>
</td>
<td align="right">
<a href="userclassadd.php"><img src="images/add.gif" border="0" title="{lang_userclass_add}"></a>
</td>
</tr>
</table>
[BLOCK table AS userclass]
<table border="0">
[BLOCK userclassrow]
<tr>
<td>
<a href="userclassview.php?userclass_id={userclass_id}">{userclass_name}</a>
</td>
</tr>
[END userclassrow]
</table>
[END table]

View File

@@ -1,27 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="userclass">
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclass_add}:</b><br>
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
{lang_userclass_name}:
</td>
<td>
<input type="text" name="userclass_name">
</td>
</tr>
</table>
</form>

View File

@@ -1,53 +0,0 @@
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclassauth}:</b>
</td>
<td align="right">
<a href="userclassauthadd.php"><img src="images/add.gif" border="0" title="{lang_userclassauth_add}"></a>
</td>
</tr>
</table>
<p>
[BLOCK table AS uca]
<table border="0">
<tr>
<td width="25">
<b>#</b>
</td>
<td width="150">
<b>{lang_userclass}:</b>
</td>
<td width="150">
<b>{lang_item}:</b>
</td>
<td width="150">
<b>{lang_subitem}:</b>
</td>
<td>
<b>{lang_userclassauth}:</b>
</td>
</tr>
[BLOCK ucarow]
<tr>
<td>
{count}
</td>
<td>
<a href="userclassview.php?userclass_id={userclass_id}">{userclass_name}</a>
</td>
<td>
{item_name}
</td>
<td>
{subitem_name}
</td>
<td>
{auth}
</td>
</tr>
[END ucarow]
</table>
[END table]

View File

@@ -1,33 +0,0 @@
<form method="POST" action="userclassauthadditem.php">
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclassauth_add}:</b>
</td>
<td align="right">
<input type="image" src="images/next.gif" title="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK table AS userclass]
<tr>
<td>
{lang_userclass_name}:
</td>
<td>
<select name="userclass_id">
[BLOCK userclassrow]
<option value="{userclass_id}">{userclass_name}</option>
[END userclassrow]
</select>
</td>
</tr>
[END table]
</table>
</form>

View File

@@ -1,42 +0,0 @@
<form method="POST" action="userclassauthaddsubitem.php">
<input type="hidden" name="userclass_id" value="{userclass_id}">
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclassauth_add}:</b>
</td>
<td align="right">
<input type="image" src="images/next.gif" title="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
{lang_userclass_name}:
</td>
<td>
{userclass_name}
</td>
</tr>
[BLOCK table AS item]
<tr>
<td>
{lang_item}:
</td>
<td>
<select name="item">
[BLOCK itemrow]
<option value="{authitem}">{authitem_name}</option>
[END itemrow]
</select>
</td>
</tr>
[END table]
</table>
</form>

View File

@@ -1,63 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="userclassauth">
<input type="hidden" name="userclass_id" value="{userclass_id}">
<input type="hidden" name="authitem" value="{authitem}">
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclassauth_add}:</b>
</td>
<td align="right">
<input type="image" src="images/next.gif" title="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
{lang_userclass_name}:
</td>
<td>
{userclass_name}
</td>
</tr>
[BLOCK table AS item]
<tr>
<td>
{lang_item}:
</td>
<td>
{authitem_name}
</td>
</tr>
[END table]
[BLOCK table AS items]
<tr>
<td>
{lang_subitem}:
</td>
<td>
<select name="item_id">
<option value="0">--- {lang_all} ---</option>
[BLOCK itemrow]
<option value="{item_id}">{item_name}</option>
[END itemrow]
</select>
</td>
</tr>
[END table]
<tr>
<td>
{lang_userclassauth}:
</td>
<td>
<input type="text" name="auth" size="2">
</td>
</tr>
</table>
</form>

View File

@@ -1,28 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="del" value="userclass">
<input type="hidden" name="userclass_id" value="{userclass_id}">
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclass_del}:</b><br>
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
<b>{lang_userclass_name}:</b>
</td>
<td>
{userclass_name}
</td>
</tr>
</table>
</form>

View File

@@ -1,48 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="edit" value="userclass">
<input type="hidden" name="userclass_id" value="{userclass_id}">
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclass_edit}:</b><br>
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
{lang_userclass_name}:
</td>
<td>
<input type="text" name="userclass_name" value="{userclass_name}">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK table AS user]
<tr>
<td>
<b>{lang_users}</b>:
</td>
</tr>
[BLOCK userrow]
<tr>
<td>
<input type="checkbox" name="user_id[]" value="{user_id}" {checked}>{user_displayname}
</td>
</tr>
[END userrow]
[END table]
</table>
</form>

View File

@@ -1,36 +0,0 @@
<table border="0" width="100%">
<tr>
<td>
<b>{lang_userclass}:</b>
</td>
<td align="right">
<a href="userclassedit.php?userclass_id={userclass_id}"><img src="images/edit.gif" border="0" title="{lang_userclass_edit}"></a>
<a href="userclassdel.php?userclass_id={userclass_id}"><img src="images/del.gif" border="0" title="{lang_userclass_del}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
<tr>
<td>
<b>{lang_userclass_name}:</b>
</td>
<td>
{userclass_name}
</td>
</tr>
[BLOCK table AS user]
<tr>
<td>
<b>{lang_users}:</b>
</td>
<td>
[BLOCK userrow]
<a href="userview.php?user_id={user_id}">{user_displayname}</a><br>
[END userrow]
</td>
</tr>
[END table]
</table>

View File

@@ -2,27 +2,37 @@
<input type="hidden" name="del" value="user">
<input type="hidden" name="user_id" value="{user_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_user_del}:</b><br>
<td class="header">
{lang_user_del}
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>{lang_user_name}:</b>
<td class="header">
{lang_user}
</td>
<td>
{user_name}
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_user_name}
</td>
<td class="value">
<a href="userview.php?user_id={user_id}">{user_name}</a>
</td>
</tr>
</table>
</form>

View File

@@ -2,71 +2,45 @@
<input type="hidden" name="edit" value="user">
<input type="hidden" name="user_id" value="{user_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_user_edit}:</b><br>
<td class="header">
{user_name}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_user_name}:
<td class="header">
{lang_user}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_user_name}
</td>
<td class="value">
<input type="text" name="user_name" value="{user_name}">
</td>
</tr>
<tr>
<td>
{lang_user_displayname}:
<td class="label">
{lang_user_displayname}
</td>
<td>
<td class="value">
<input type="text" name="user_displayname" value="{user_displayname}">
</td>
</tr>
<tr>
<td>
{lang_mac}:
</td>
<td>
<input type="text" name="user_mac" value="{user_mac}">
</td>
</tr>
<tr>
<td>
{lang_language}:
</td>
<td>
<input type="text" name="user_lang" value="{user_lang}" size="2">
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK table AS userclass]
<tr>
<td>
<b>{lang_userclasses}</b>:
</td>
</tr>
[BLOCK userclassrow]
<tr>
<td>
<input type="checkbox" name="userclass_id[]" value="{userclass_id}" {checked}>{userclass_name}
</td>
</tr>
[END userclassrow]
[END table]
</table>
</form>

View File

@@ -1,39 +0,0 @@
<form method="POST" action="submit.php">
<input type="hidden" name="edit" value="userpass">
<table border="0">
<tr>
<td colspan="2">
<b>{lang_options_password_edit}:</b><br>
</td>
</tr>
<tr>
<td>
{lang_user_passold}:
</td>
<td>
<input type="password" name="user_passold">
</td>
</tr>
<tr>
<td>
{lang_user_passnew1}:
</td>
<td>
<input type="password" name="user_passnew1">
</td>
</tr>
<tr>
<td>
{lang_user_passnew2}:
</td>
<td>
<input type="password" name="user_passnew2">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="{lang_submit}"><input type="reset" value="{lang_reset}">
</td>
</tr>
</table>
</form>

View File

@@ -1,60 +1,42 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_user}:</b>
<td class="header">
{user_name}
</td>
<td align="right">
<a href="useredit.php?user_id={user_id}"><img src="images/edit.gif" border="0" title="{lang_user_edit}"></a>
<a href="userdel.php?user_id={user_id}"><img src="images/del.gif" border="0" title="{lang_user_del}"></a>
<a href="useredit.php?user_id={user_id}"><img src="image.php?icon=edit" alt="{lang_user_edit}"></a>
<a href="userdel.php?user_id={user_id}"><img src="image.php?icon=delete" alt="{lang_user_del}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK user_table AS user_table]
<table class="info">
<tr>
<td>
<b>{lang_user_name}:</b>
<td class="header">
{lang_user}
</td>
<td>
{user_name}
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_user_displayname}:</b>
<td class="label">
{lang_user_name}
</td>
<td>
<td class="value">
<a href="userview.php?user_id={user_id}">{user_name}</a>
</td>
</tr>
<tr>
<td class="label">
{lang_user_displayname}
</td>
<td class="value">
{user_displayname}
</td>
</tr>
<tr>
<td>
<b>{lang_mac}:</b>
</td>
<td>
{user_mac}
</td>
</tr>
<tr>
<td>
<b>{lang_language}:</b>
</td>
<td>
{user_lang}
</td>
</tr>
[BLOCK table AS userclass]
<tr>
<td>
<b>{lang_userclasses}:</b>
</td>
<td>
[BLOCK userclassrow]
<a href="userclassview.php?userclass_id={userclass_id}">{userclass_name}</a><br>
[END userclassrow]
</td>
</tr>
[END table]
</table>
</table>
[END user_table]

View File

@@ -1,22 +1,35 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_vlan}:</b>
<td class="header">
{lang_vlans} ({vlan_counter})
</td>
<td align="right">
<a href="vlanadd.php"><img src="images/add.gif" border="0" title="{lang_vlan_add}"></a>
<a href="vlanadd.php"><img src="image.php?icon=add" alt="{lang_vlan_add}"></a>
</td>
</tr>
</table>
[BLOCK table AS vlan]
<table border="0">
[BLOCK vlanrow]
<p>
[BLOCK vlan_table AS vlan_table]
<table class="info">
<tr>
<td>
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name}&nbsp;({vlan_number})</a>
<td class="header">
{lang_vlan_number}
</td>
<td class="header">
{lang_vlan_name}
</td>
</tr>
[END vlanrow]
[BLOCK vlan_row]
<tr>
<td class="label">
{vlan_number}
</td>
<td class="value">
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name}</a>
</td>
</tr>
[END vlan_row]
</table>
[END table]
[END vlan_table]

View File

@@ -1,36 +1,50 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="vlan">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_vlan_add}:</b>
<td class="header">
{lang_vlan_add}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_vlan_name}:
<td class="header">
{lang_vlan}
</td>
<td>
</tr>
<tr>
<td class="label">
{lang_vlan_name}
</td>
<td class="value">
<input type="text" name="vlan_name">
</td>
</tr>
<tr>
<td>
{lang_vlan_number}:
<td class="label">
{lang_vlan_number}
</td>
<td>
<td class="value">
<input type="text" name="vlan_number" size="3">
</td>
</tr>
<tr>
<td class="label">
{lang_vlan_info}
</td>
<td class="value">
<textarea name="vlan_info" cols="30" rows="10"></textarea>
</td>
</tr>
</table>
</form>

View File

@@ -2,25 +2,34 @@
<input type="hidden" name="del" value="vlan">
<input type="hidden" name="vlan_id" value="{vlan_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_vlan_del}:</b>
<td class="header">
{vlan_name}
</td>
<td align="right">
<input type="image" src="images/check.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
<b>{lang_vlan_name}:</b>
<td class="header">
{lang_vlan}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan_name}
</td>
<td class="value">
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name}&nbsp;({vlan_number})</a>
</td>
</tr>

View File

@@ -2,42 +2,51 @@
<input type="hidden" name="edit" value="vlan">
<input type="hidden" name="vlan_id" value="{vlan_id}">
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_vlan_edit}:</b><br>
<td class="header">
{vlan_name}
</td>
<td align="right">
<input type="image" src="images/save.gif" title="{lang_submit}">
<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}">
</td>
</tr>
</table>
<p>
<table border="0">
<table class="info">
<tr>
<td>
{lang_vlan_name}:
<td class="header">
{lang_vlan}
</td>
<td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan_name}
</td>
<td class="value">
<input type="text" name="vlan_name" value="{vlan_name}">
</td>
</tr>
<tr>
<td>
{lang_vlan_number}:
<td class="label">
{lang_vlan_number}
</td>
<td>
<td class="value">
<input type="text" name="vlan_number" size="3" value="{vlan_number}">
</td>
</tr>
<tr>
<td>
{lang_vlan_info}:
<td class="label">
{lang_vlan_info}
</td>
<td>
<textarea name="vlan_info">{vlan_info}</textarea>
<td class="value">
<textarea name="vlan_info" cols="30" rows="10">{vlan_info}</textarea>
</td>
</tr>
</table>

63
tpl/vlansubnetadd.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="add" value="vlansubnet">
<input type="hidden" name="vlan_id" value="{vlan_id}">
<table class="title">
<tr>
<td class="header">
{lang_vlansubnet}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_vlan}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan_name} ({lang_vlan_number})
</td>
<td class="value">
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name} ({vlan_number})</a>
</td>
</tr>
</table>
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet_add}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet}
</td>
<td class="value">
<select name="subnet_id">
[BLOCK subnet_row]
<option value="{subnet_id}">{subnet_address}/{subnet_mask}</option>
[END subnet_row]
</select>
</td>
</tr>
</table>
[END subnet_table]

63
tpl/vlansubnetdel.tpl Normal file
View File

@@ -0,0 +1,63 @@
<form method="POST" action="submit.php">
<input type="hidden" name="del" value="vlansubnet">
<input type="hidden" name="vlan_id" value="{vlan_id}">
<table class="title">
<tr>
<td class="header">
{lang_vlansubnet}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_vlan}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan_name} ({lang_vlan_number})
</td>
<td class="value">
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name} ({vlan_number})</a>
</td>
</tr>
</table>
<p>
[BLOCK subnet_table AS subnet_table]
<table class="info">
<tr>
<td class="header">
{lang_subnet_del}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_subnet}
</td>
<td class="value">
<select name="subnet_id">
[BLOCK subnet_row]
<option value="{subnet_id}">{subnet_address}/{subnet_mask}</option>
[END subnet_row]
</select>
</td>
</tr>
</table>
[END subnet_table]

60
tpl/vlansubnetedit.tpl Normal file
View File

@@ -0,0 +1,60 @@
<form method="POST" action="submit.php">
<input type="hidden" name="redirect" value="vlansubnet">
<input type="hidden" name="vlan_id" value="{vlan_id}">
<table class="title">
<tr>
<td class="header">
{lang_vlansubnet}
</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}">
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_vlan}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_vlan_name} ({lang_vlan_number})
</td>
<td class="value">
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name} ({vlan_number})</a>
</td>
</tr>
</table>
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td class="label">
{lang_options}
</td>
<td class="value">
<input type="radio" name="action" value="vlansubnetadd" checked>&nbsp;{lang_subnet_add}<br>
<input type="radio" name="action" value="vlansubnetdel">&nbsp;{lang_subnet_del}
</td>
</tr>
</table>

View File

@@ -1,52 +1,79 @@
<table border="0" width="100%">
<table class="title">
<tr>
<td>
<b>{lang_vlan}:</b>
<td class="header">
{vlan_name}
</td>
<td align="right">
<a href="vlanedit.php?vlan_id={vlan_id}"><img src="images/edit.gif" border="0" title="{lang_vlan_edit}"></a>
<a href="vlandel.php?vlan_id={vlan_id}"><img src="images/del.gif" border="0" title="{lang_vlan_del}"></a>
<a href="assignvlantosubnet.php?vlan_id={vlan_id}"><img src="image.php?icon=add" alt="{lang_assignvlantosubnet}"></a>
<a href="vlanedit.php?vlan_id={vlan_id}"><img src="image.php?icon=edit" alt="{lang_vlan_edit}"></a>
<a href="vlandel.php?vlan_id={vlan_id}"><img src="image.php?icon=delete" alt="{lang_vlan_del}"></a>
</td>
</tr>
</table>
<p>
<table border="0">
[BLOCK vlan_table AS vlan_table]
<table class="info">
[BLOCK vlan_row]
<tr>
<td>
<b>{lang_vlan_name}:</b>
<td class="header">
{lang_vlan}
</td>
<td>
{vlan_name}
<td class="header_right">
&nbsp;
</td>
</tr>
<tr>
<td>
<b>{lang_vlan_number}:</b>
<td class="label">
{lang_vlan_name}
</td>
<td>
<td class="value">
<a href="vlanview.php?vlan_id={vlan_id}">{vlan_name}</a>
</td>
</tr>
<tr>
<td class="label">
{lang_vlan_number}
</td>
<td class="value">
{vlan_number}
</td>
</tr>
<tr>
<td>
<b>{lang_subnets}:</b>
<td class="label">
{lang_vlan_info}
</td>
[BLOCK table AS subnet]
<td>
[BLOCK subnetrow]
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a><br>
[END subnetrow]
</td>
[END table]
</tr>
<tr>
<td>
<b>{lang_vlan_info}:</b>
</td>
<td>
<td class="value">
{vlan_info}
</td>
</tr>
</tr>
[END vlan_row]
</table>
[END vlan_table]
<p>
<table class="info">
<tr>
<td class="header">
{lang_subnet}
</td>
<td class="header" align="right">
<a href="vlansubnetedit.php?vlan_id={vlan_id}"><img src="image.php?icon=edit" alt="{lang_subnetvlan_edit}"></a>
</td>
</tr>
<tr>
<td class="label">
{lang_subnets} ({subnet_counter})
</td>
<td class="value">
[BLOCK subnet_table AS subnet_table]
[BLOCK subnet_row]
<a href="subnetview.php?subnet_id={subnet_id}">{subnet_address}/{subnet_mask}</a><br>
[END subnet_row]
[END subnet_table]
</td>
</tr>
</table>