} } $controller->listUserTypes($_POST); break; case "inactivateall": if (!empty($_POST['ids'])) { foreach ($_POST['ids'] as $id) { $controller->__changeStatus($id, 0); } } $controller->listUserTypes($_POST); break; case "deleteall": if (!empty($_POST['ids'])) { foreach ($_POST['ids'] as $id) { $controller->__deleteUserType($id); } } $controller->listUserTypes($_POST); break; } } else { switch ($_GET['sec']) { case "new": $controller->newUserType($_GET); break; case "edit": $controller->editUserType($_GET['userTypeId']); break; case "Activate": $controller->__changeStatus($_GET['userTypeId'], 1);