Refactored assetclassgroup

This commit is contained in:
2023-03-03 18:14:42 +01:00
parent ccdcfb968c
commit c63b500d77
14 changed files with 145 additions and 138 deletions

View File

@@ -133,7 +133,7 @@ if (isset($_POST['add'])) {
$sth->execute([$name, $description, $group_id]);
header_location("assetclassview.php?assetclass_id=" . $dbh->lastInsertId());
break; */
break;
case ("assetclassgroup") :
$name = sanitize($_POST['acg_name']);
@@ -148,7 +148,7 @@ if (isset($_POST['add'])) {
$sth->execute([$name, $color, $desc]);
header_location("assetclassgroupview.php?assetclassgroup_id=" . $dbh->lastInsertId());
break;
break; */
case ("assignnodetoasset") :
$node_ip = sanitize($_POST['node_ip']);
@@ -406,7 +406,7 @@ if (isset($_POST['del'])) {
$sth->execute([$assetclass_id]);
header_location("assetclass.php");
break; */
break;
case ("assetclassgroup") :
$assetclassgroup_id = sanitize($_POST['assetclassgroup_id']);
@@ -415,7 +415,7 @@ if (isset($_POST['del'])) {
$sth->execute([$assetclassgroup_id]);
header_location("assetclassgroup.php");
break;
break; */
case ("location") :
$location_id = sanitize($_POST['location_id']);