Remove footer.php and some small improvements

This commit is contained in:
2023-03-10 19:31:07 +01:00
parent bfbdc16036
commit 8c61638485
23 changed files with 74 additions and 61 deletions

View File

@@ -153,21 +153,21 @@ switch ($submit = form_get_action()) {
$sth = $dbh->prepare("DELETE FROM node WHERE subnet_id=?");
$sth->execute([$id]);
$count = $sth->rowCount();
$g_message->Add('Deleted $count nodes');
$g_message->Add("Deleted $count nodes");
$sth = $dbh->prepare("DELETE FROM subnetlocation WHERE subnet_id=?");
$sth->execute([$id]);
$count = $sth->rowCount();
$g_message->Add('Deleted $count location links');
$g_message->Add("Deleted $count location links");
$sth = $dbh->prepare("DELETE FROM subnetvlan WHERE subnet_id=?");
$sth->execute([$id]);
$count = $sth->rowCount();
$g_message->Add('Deleted $count vlan links');
$g_message->Add("Deleted $count vlan links");
$sth = $dbh->prepare("DELETE FROM subnet WHERE subnet_id=?");
$sth->execute([$id]);
$g_message->Add('Deleted subnet');
$g_message->Add("Deleted subnet");
$action = ACT_DEFAULT;
break;
@@ -743,4 +743,3 @@ endif; // $action == ...
// ========== END OF VARIANTS =================================================
$smarty->display('footer.tpl');
?>