<?php include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceLabel.php'; header("Content-Type: text/html; charset=" . $charset); $collid = $_POST["collid"]; $lHeader = $_POST['lheading']; $lFooter = $_POST['lfooter']; $detIdArr = $_POST['detid']; $speciesAuthors = array_key_exists('speciesauthors', $_POST) && $_POST['speciesauthors'] ? 1 : 0; $clearQueue = array_key_exists('clearqueue', $_POST) && $_POST['clearqueue'] ? 1 : 0; $action = array_key_exists('submitaction', $_POST) ? $_POST['submitaction'] : ''; $rowsPerPage = 3; $labelManager = new OccurrenceLabel(); $labelManager->setCollid($collid); $isEditor = 0; if ($symbUid) { if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collid, $userRights["CollAdmin"]) || array_key_exists("CollEditor", $userRights) && in_array($collid, $userRights["CollEditor"])) { $isEditor = 1; } } ?> <html> <head> <title><?php echo $defaultTitle; ?> Default Annotations</title> <style type="text/css"> body {font-family:arial,sans-serif;} table.labels {page-break-before:auto;page-break-inside:avoid;border-spacing:5px;}
include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/OccurrenceLabel.php'; @(include_once "Image/Barcode.php"); @(include_once "Image/Barcode2.php"); require_once $serverRoot . '/classes/PhpWord/Autoloader.php'; header("Content-Type: text/html; charset=" . $charset); ini_set('max_execution_time', 180); //180 seconds = 3 minutes $ses_id = session_id(); if (class_exists('Image_Barcode2')) { $bcObj = new Image_Barcode2(); } elseif (class_exists('Image_Barcode')) { $bcObj = new Image_Barcode(); } $labelManager = new OccurrenceLabel(); use PhpOffice\PhpWord\Autoloader; use PhpOffice\PhpWord\Settings; Autoloader::register(); Settings::loadConfig(); $collid = $_POST["collid"]; $hPrefix = $_POST['lhprefix']; $hMid = $_POST['lhmid']; $hSuffix = $_POST['lhsuffix']; $lFooter = $_POST['lfooter']; $occIdArr = $_POST['occid']; $rowsPerPage = $_POST['rpp']; $speciesAuthors = array_key_exists('speciesauthors', $_POST) && $_POST['speciesauthors'] ? 1 : 0; $showcatalognumbers = array_key_exists('catalognumbers', $_POST) && $_POST['catalognumbers'] ? 1 : 0; $useBarcode = array_key_exists('bc', $_POST) ? $_POST['bc'] : 0; $useSymbBarcode = array_key_exists('symbbc', $_POST) ? $_POST['symbbc'] : 0;
<?php include_once '../../config/symbini.php'; @(include_once 'Image/Barcode.php'); @(include_once 'Image/Barcode2.php'); include_once $serverRoot . '/classes/OccurrenceLabel.php'; header("Content-Type: text/html; charset=" . $charset); if (!$SYMB_UID) { header('Location: ../../profile/index.php?refurl=../collections/reports/labelmanager.php?' . $_SERVER['QUERY_STRING']); } $collid = $_REQUEST["collid"]; $tabTarget = array_key_exists('tabtarget', $_REQUEST) ? $_REQUEST['tabtarget'] : 0; $action = array_key_exists('submitaction', $_REQUEST) ? $_REQUEST['submitaction'] : ''; $datasetManager = new OccurrenceLabel(); $datasetManager->setCollid($collid); $reportsWritable = false; if (is_writable($serverRoot . '/temp/report')) { $reportsWritable = true; } $isEditor = 0; $occArr = array(); $annoArr = 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) { $annoArr = $datasetManager->getAnnoQueue(); if ($action == "Filter Specimen Records") { $occArr = $datasetManager->queryOccurrences($_POST);