if (!$tid && $childrenStr) { $childrenArr = explode(',', $childrenStr); $tid = array_pop($childrenArr); $childrenStr = implode(',', $childrenArr); } $editorManager->setLanguage($langValue); $editorManager->setTid($tid); $isEditor = false; if ($isAdmin || array_key_exists("KeyEditor", $userRights) || array_key_exists("KeyAdmin", $userRights)) { $isEditor = true; } if ($isEditor && $action) { if ($action == "Submit Changes") { $addArr = array_key_exists('add', $_POST) ? $_POST['add'] : null; $removeArr = array_key_exists('remove', $_POST) ? $_POST['remove'] : null; $editorManager->processTaxa($addArr, $removeArr); } } ?> <html> <head> <title><?php echo $defaultTitle; ?> Identification Character Editor</title> <link href="../../css/base.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" /> <link href="../../css/main.css?<?php echo $CSS_VERSION;
$editorManager->setRemoveStates($removeValues); } //Set username if (array_key_exists("un", $paramsArr)) { $editorManager->setUsername($paramsArr["un"]); } ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="get" onsubmit="dataChanged=false;"> <?php if (($action == "Submit Changes" || $action == "Get Character Info") && (!empty($taxonValue) || !empty($tidValue))) { //Show character info for selected taxon if ($action == "Submit Changes") { $editorManager->processTaxa(); } $sn = $editorManager->getTaxonName(); if ($editorManager->getRankId() > 140) { $sn = "<i>{$sn}</i>"; } echo "<div style='float:right;'>"; if ($editorManager->getRankId() > 140) { echo "<a href='editor.php?taxon=" . $editorManager->getParentTid() . "&action=Get+Character+Info&child1=" . $editorManager->getTid() . ($child1Value ? "&child2={$child1Value}" : "") . "'>edit parent</a> "; } if ($child1Value) { echo "<br><a href='editor.php?taxon=" . $child1Value . "&action=Get+Character+Info" . ($child2Value ? "&child1=" . $child2Value : "") . "'>back to child</a>"; } echo "</div>"; echo "<h2>{$sn}</h2>"; $cList = $editorManager->getCharList();