Exemple #1
0
        $statusStr = $keyManager->deleteChar();
        if ($statusStr == true) {
            $cid = 0;
        }
    } elseif ($formSubmit == 'Delete State') {
        $statusStr = $keyManager->deleteCharState($_POST['cs']);
        $tabIndex = 1;
    } elseif ($formSubmit == 'Upload Image') {
        $statusStr = $keyManager->uploadCsImage($_POST);
        $tabIndex = 1;
    } elseif ($formSubmit == 'Delete Image') {
        $statusStr = $keyManager->deleteCsImage($_POST['csimgid']);
        $tabIndex = 1;
    } elseif ($formSubmit == 'Save Taxonomic Relevance') {
        if (isset($_POST['tid']) && $_POST['tid']) {
            $statusStr = $keyManager->saveTaxonRelevance($_POST['tid'], $_POST['relation'], $_POST['notes']);
            $tabIndex = 2;
        }
    } elseif ($formSubmit == 'deltaxon') {
        $statusStr = $keyManager->deleteTaxonRelevance($_POST['tid']);
        $tabIndex = 2;
    }
}
if (!$cid) {
    header('Location: index.php');
}
?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $CHARSET;