<?php include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceEditorImages.php'; header("Content-Type: text/html; charset=" . $charset); if (!$SYMB_UID) { header('Location: ../../profile/index.php?refurl=../collections/editor/imageoccursubmit.php?' . $_SERVER['QUERY_STRING']); } $collid = $_REQUEST["collid"]; $action = array_key_exists("action", $_POST) ? $_POST["action"] : ""; $occurManager = new OccurrenceEditorImages(); $occurManager->setCollid($collid); $collMap = $occurManager->getCollMap(); $statusStr = ''; $isEditor = 0; if ($collid) { if ($IS_ADMIN) { $isEditor = 1; } elseif (array_key_exists("CollAdmin", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS['CollAdmin'])) { $isEditor = 1; } elseif (array_key_exists("CollEditor", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS['CollEditor'])) { $isEditor = 1; } } if ($isEditor) { if ($action == 'Submit Occurrence') { if ($occurManager->addImageOccurrence($_POST)) { $occid = $occurManager->getOccid(); if ($occid) { $statusStr = 'New record has been created: <a href="occurrenceeditor.php?occid=' . $occid . '" target="_blank">' . $occid . '</a>'; }
<?php include_once '../../../config/symbini.php'; include_once $SERVER_ROOT . '/classes/OccurrenceEditorManager.php'; include_once $SERVER_ROOT . '/classes/OccurrenceActionManager.php'; header("Content-Type: text/html; charset=" . $CHARSET); $occId = $_GET['occid']; $occIndex = $_GET['occindex']; $crowdSourceMode = $_GET['csmode']; $occManager = new OccurrenceEditorImages(); $occActionManager = new OccurrenceActionManager(); $occManager->setOccId($occId); $specImgArr = $occManager->getImageMap(); ?> <div id="imagediv" style="width:795px;"> <div style="float:right;cursor:pointer;" onclick="toggle('addimgdiv');" title="Add a New Image"> <img style="border:0px;width:12px;" src="../../images/add.png" /> </div> <div id="addimgdiv" style="display:<?php echo $specImgArr ? 'none' : ''; ?> ;"> <form name="imgnewform" action="occurrenceeditor.php" method="post" enctype="multipart/form-data" onsubmit="return verifyImgAddForm(this);"> <fieldset style="padding:15px"> <legend><b>Add a New Image</b></legend> <div style='padding:15px;width:90%;border:1px solid yellow;background-color:FFFF99;'> <div class="targetdiv" style="display:block;"> <div style="font-weight:bold;font-size:110%;margin-bottom:5px;"> Select an image file located on your computer that you want to upload: </div> <!-- following line sets MAX_FILE_SIZE (must precede the file input field) -->
<?php //error_reporting(E_ALL); include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceEditorManager.php'; header("Content-Type: text/html; charset=" . $charset); $targetId = $_REQUEST["targetid"]; $collId = array_key_exists("collid", $_REQUEST) ? $_REQUEST["collid"] : 0; $identifier = array_key_exists("identifier", $_REQUEST) ? $_REQUEST["identifier"] : ""; $collector = array_key_exists("collector", $_REQUEST) ? $_REQUEST["collector"] : ""; $collNumber = array_key_exists("collnum", $_REQUEST) ? $_REQUEST["collnum"] : ""; $occManager = new OccurrenceEditorImages(); ?> <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; ?> " type="text/css" rel="stylesheet" /> <link href="../../css/main.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" />