Remove footer.php and some small improvements
This commit is contained in:
@@ -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');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user