public function addUser($uid, $taxa, $editorStatus, $geographicScope, $notes) { $statusStr = ''; $profileManager = new ProfileManager(); $profileManager->setUid($uid); $statusStr = $profileManager->addUserTaxonomy($taxa, $editorStatus, $geographicScope, $notes); return $statusStr; }
} else { $statusStr = "Profile deletion failed! Please contact the system administrator"; } } elseif ($action == "Create Checklist") { $newClid = $pClManager->createChecklist($_POST); header("Location: " . $clientRoot . "/checklists/checklist.php?cl=" . $newClid . "&emode=1"); } elseif ($action == "delusertaxonomy") { $statusStr = $pHandler->deleteUserTaxonomy($_GET['utid']); $person = $pHandler->getPerson(); if ($person->getIsTaxonomyEditor()) { $tabIndex = 3; } else { $tabIndex = 2; } } elseif ($action == "Add Taxonomic Relationship") { $statusStr = $pHandler->addUserTaxonomy($_POST['taxon'], $_POST['editorstatus'], $_POST['geographicscope'], $_POST['notes']); $person = $pHandler->getPerson(); if ($person->getIsTaxonomyEditor()) { $tabIndex = 3; } else { $tabIndex = 2; } } if (!$person) { $person = $pHandler->getPerson(); } } ?> <html> <head> <title><?php