Example #1
0
    } elseif ($submitAction == 'updatetaxstatus') {
        $statusStr = $taxonEditorObj->submitTaxStatusEdits($_POST['parenttid'], $_POST['tidaccepted']);
    } elseif (array_key_exists("synonymedits", $_REQUEST)) {
        $statusStr = $taxonEditorObj->submitSynonymEdits($_POST['tidsyn'], $tid, $_POST['unacceptabilityreason'], $_POST['notes'], $_POST['sortsequence']);
    } elseif ($submitAction == 'linktoaccepted') {
        $deleteOther = array_key_exists("deleteother", $_REQUEST) ? true : false;
        $statusStr = $taxonEditorObj->submitAddAcceptedLink($_REQUEST["tidaccepted"], $deleteOther);
    } elseif (array_key_exists('deltidaccepted', $_REQUEST)) {
        $statusStr = $taxonEditorObj->removeAcceptedLink($_REQUEST['deltidaccepted']);
    } elseif (array_key_exists("changetoaccepted", $_REQUEST)) {
        $tidAccepted = $_REQUEST["tidaccepted"];
        $switchAcceptance = false;
        if (array_key_exists("switchacceptance", $_REQUEST)) {
            $switchAcceptance = true;
        }
        $statusStr = $taxonEditorObj->submitChangeToAccepted($tid, $tidAccepted, $switchAcceptance);
    } elseif ($submitAction == 'changetonotaccepted') {
        $tidAccepted = $_REQUEST["tidaccepted"];
        $statusStr = $taxonEditorObj->submitChangeToNotAccepted($tid, $tidAccepted, $_POST['unacceptabilityreason'], $_POST['notes']);
    } elseif ($submitAction == 'updatehierarchy') {
        $statusStr = $taxonEditorObj->rebuildHierarchy($tid);
    } elseif ($submitAction == 'Remap Taxon') {
        $statusStr = $taxonEditorObj->transferResources($_REQUEST['remaptid']);
        header('Location: taxonomydisplay.php?target=' . $_REQUEST["genusstr"] . '&statusstr=' . $statusStr);
    } elseif ($submitAction == 'Delete Taxon') {
        $statusStr = $taxonEditorObj->deleteTaxon();
        header('Location: taxonomydisplay.php?statusstr=' . $statusStr);
    }
    $taxonEditorObj->setTaxon();
}
?>