<?php include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceSupport.php'; header("Content-Type: text/html; charset=" . $charset); if (!$SYMB_UID) { header('Location: ' . $serverRoot . '/profile/index.php?refurl=../../collections/misc/commentlist.php?' . $_SERVER['QUERY_STRING']); } $collid = $_REQUEST['collid']; $start = array_key_exists('start', $_REQUEST) ? $_REQUEST['start'] : 0; $limit = array_key_exists('limit', $_REQUEST) ? $_REQUEST['limit'] : 100; $tsStart = array_key_exists('tsstart', $_POST) ? $_POST['tsstart'] : ''; $tsEnd = array_key_exists('tsend', $_POST) ? $_POST['tsend'] : ''; $uid = array_key_exists('uid', $_POST) ? $_POST['uid'] : 0; $rs = array_key_exists('rs', $_POST) ? $_POST['rs'] : ''; $commentManager = new OccurrenceSupport(); $isEditor = 0; if ($SYMB_UID) { if ($IS_ADMIN) { $isEditor = 1; } elseif ($collid) { if (array_key_exists("CollAdmin", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS["CollAdmin"])) { $isEditor = 1; } } } $statusStr = ''; $commentArr = null; if ($isEditor) { if (array_key_exists('hidecomid', $_GET)) { if (!$commentManager->hideComment($_GET['hidecomid'])) {
header("Content-Type: text/html; charset=" . $charset); $targetId = $_REQUEST["targetid"]; $collid = array_key_exists("collid", $_REQUEST) ? $_REQUEST["collid"] : 0; $action = array_key_exists("action", $_POST) ? $_POST["action"] : ''; $catalogNumber = array_key_exists("catalognumber", $_POST) ? $_POST['catalognumber'] : ''; $otherCatalogNumbers = array_key_exists("othercatalognumbers", $_POST) ? $_POST['othercatalognumbers'] : ''; $recordedBy = array_key_exists("recordedby", $_POST) ? $_POST['recordedby'] : ''; $recordNumber = array_key_exists("recordnumber", $_POST) ? $_POST['recordnumber'] : ''; $collEditorArr = array(); if (array_key_exists("CollAdmin", $USER_RIGHTS)) { $collEditorArr = $USER_RIGHTS['CollAdmin']; } if (array_key_exists("CollEditor", $USER_RIGHTS)) { $collEditorArr = array_unique(array_merge($collEditorArr, $USER_RIGHTS['CollEditor'])); } $occManager = new OccurrenceSupport(); $collArr = $occManager->getCollectionArr($IS_ADMIN ? 'all' : $collEditorArr); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?> "> <title><?php echo $defaultTitle; ?> Occurrence Search Page</title> <link href="../../css/base.css?<?php echo $CSS_VERSION; ?>
<?php include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceSupport.php'; header("Content-Type: text/html; charset=" . $charset); $collid = array_key_exists('collid', $_REQUEST) ? $_REQUEST['collid'] : ''; $action = array_key_exists('formsubmit', $_REQUEST) ? $_REQUEST['formsubmit'] : ''; $harvManager = new OccurrenceSupport(); $isEditor = 0; $collList = array(); if ($isAdmin) { $isEditor = 1; $collList[] = 'all'; } else { if (array_key_exists("CollEditor", $userRights)) { if (in_array($collid, $userRights["CollEditor"])) { $isEditor = 1; } $collList = $userRights["CollEditor"]; } if (array_key_exists("CollAdmin", $userRights)) { if (in_array($collid, $userRights["CollAdmin"])) { $isEditor = 1; } $collList = array_merge($collList, $userRights["CollAdmin"]); } } if ($isEditor) { if ($action == 'Download Records') { $harvManager->exportCsvFile($_POST); exit;