echo "<div style='margin-top:1em;'><input type='submit' name='action' value='Submit Changes'/></div>\n"; } } } echo "</div>\n"; } echo "<div style='margin-top:1em;'><input type='submit' name='action' value='Submit Changes'/></div>\n"; //Hidden values to maintain values and display mode if ($charValue) { echo "<div><br><b>Note:</b> changes made here will not be reflected on child page until page is refreshed.</div>"; echo "<div><input type='hidden' name='char' value='" . $charValue . "'/></div>"; } ?> <div> <input type="hidden" name="tid" value="<?php echo $editorManager->getTid(); ?> " /> <input type="hidden" name="children" value="<?php echo $childrenStr; ?> " /> </div> <?php } } ?> </form> <?php } else { echo "<h1>You do not have authority to edit character data or there is a problem with the database connection.</h1>";
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(); $depArr = $editorManager->getCharDepArray(); $charStatesList = $editorManager->getCharStates(); if ($cList) { $count = 0; $minusGif = "<img src='../../images/minus_sm.png'>"; $plusGif = "<img src='../../images/plus_sm.png'>"; foreach ($cList as $heading => $charArray) { echo "<div style='font-weight:bold; font-size:150%; margin:1em 0em 1em 0em; color:#990000;" . ($charValue ? " display:none;" : "") . "'>";