dashboard\primary\success("Successfully added button!"), 'failure' => dashboard\primary\error("Failed to add button!"), default => dashboard\primary\error("Unhandled Error! Contact us if you need help") }; } if (isset($_POST['delButton'])) { $resp = misc\button\deleteButton($_POST['delButton']); match($resp){ 'success' => dashboard\primary\success("Successfully deleted button!"), 'failure' => dashboard\primary\error("Failed to delete button!"), default => dashboard\primary\error("Unhandled Error! Contact us if you need help") }; } if (isset($_POST["selected"]) && isset($_POST["action"])) { $selected = json_decode($_POST["selected"]); if ($_POST["action"] == "delete"){ foreach ($selected as $buttons){ $resp = misc\button\deleteButton($buttons); match($resp){ 'success' => dashboard\primary\success("Successfully deleted button!"), 'failure' => dashboard\primary\error("Failed to delete button!"), default => dashboard\primary\error("Unhandled Error! Contact us if you need help") }; } } else { dashboard\primary\error("Invalid action!"); } } ?>
| Select | Button Text | Button Value | Actions |
|---|---|---|---|
| ' . ' | '; echo "" . $row["text"] . " | "; echo "" . $row["value"] . " | "; echo '
Dropdown actions in RED do not show a confirmation! Dropdown actions in BLUE will show a confirmation!