Preselect subnet in options if defined

This commit is contained in:
Thomas Hooge 2023-02-22 10:55:49 +01:00
parent a4ecd1bff7
commit c13c7494bf
4 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,7 @@ include("header.php");
$smarty->assign("node_ip", $node_ip);
$smarty->assign("asset_id", $asset_id);
$smarty->assign("subnet_id", $subnet_id);
$query = "SELECT
asset_id,

View File

@ -17,6 +17,7 @@ include("header.php");
$smarty->assign("user_dns1suffix", $_SESSION['suser_dns1suffix']);
$smarty->assign("user_dns2suffix", $_SESSION['suser_dns2suffix']);
$smarty->assign("node_ip", $node_ip);
$smarty->assign("subnet_id", $subnet_id);
$smarty->assign("subnet_options", $db->options_subnet());
$smarty->assign("assetclass_options", $db->options_assetclass());

View File

@ -97,7 +97,7 @@
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
</td>
<td class="value">
{html_options name=subnet_id options=$subnet_options}
{html_options name=subnet_id options=$subnet_options selected=$subnet_id}
</td>
</tr>
</table>

View File

@ -125,7 +125,7 @@
{$lang_subnet_subnetaddress}/{$lang_subnet_mask}
</td>
<td class="value">
{html_options name=subnet_id options=$subnet_options}
{html_options name=subnet_id options=$subnet_options selected=$subnet_id}
</td>
</tr>
</table>