$catArr = array(); $jsonCatArr = ''; $occArr = array(); if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collid, $userRights["CollAdmin"])) { $isEditor = 1; } elseif (array_key_exists("CollEditor", $userRights) && in_array($collid, $userRights["CollEditor"])) { $isEditor = 1; } if ($isEditor) { if ($formSubmit == 'Add New Determinations') { $occidArr = $_REQUEST['occid']; $occStr = implode(",", $occidArr); $catArr = $occManager->getCatNumArr($occStr); $jsonCatArr = json_encode($catArr); foreach ($occidArr as $k) { $occManager->setOccId($k); $occManager->addDetermination($_REQUEST, $isEditor); } $catTBody = $occManager->getBulkDetRows($collid, '', '', $occStr); } if ($formSubmit == 'Adjust Nomenclature') { $occidArr = $_REQUEST['occid']; $occStr = implode(",", $occidArr); foreach ($occidArr as $k) { $occManager->setOccId($k); $occManager->addNomAdjustment($_REQUEST, $isEditor); } $nomTBody = $occManager->getBulkDetRows($collid, '', '', $occStr); } } ?>
include_once '../../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceEditorManager.php'; header("Content-Type: text/html; charset=" . $charset); $occId = $_GET['occid']; $occIndex = $_GET['occindex']; $identBy = $_GET['identby']; $dateIdent = $_GET['dateident']; $sciName = $_GET['sciname']; $crowdSourceMode = $_GET['csmode']; $editMode = $_GET['em']; $annotatorname = $_GET['annotatorname']; $annotatoremail = $_GET['annotatoremail']; $catalognumber = $_GET['catalognumber']; $institutioncode = $_GET['institutioncode']; $occManager = new OccurrenceEditorDeterminations(); $occManager->setOccId($occId); $detArr = $occManager->getDetMap($identBy, $dateIdent, $sciName); $idRanking = $occManager->getIdentificationRanking(); $specImgArr = $occManager->getImageMap(); // find out if there are images in order to show/hide the button to display/hide images. ?> <div id="determdiv" style="width:795px;"> <div style="margin:15px 0px 40px 15px;"> <div> <b><u>Identification Confidence Ranking</u></b> <?php if ($editMode < 3) { ?> <a href="#" title="Modify current identification ranking" onclick="toggle('idrankeditdiv');toggle('idrankdiv');return false;"> <img src="../../images/edit.png" style="border:0px;width:12px;" /> </a>