示例#1
0
<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/SpecProcessorManager.php';
include_once $serverRoot . '/classes/SpecProcNlpBryophyte.php';
include_once $serverRoot . '/classes/SpecProcNlpLichen.php';
include_once $serverRoot . '/classes/SpecProcNlpSalix.php';
header("Content-Type: text/html; charset=" . $charset);
if (!$SYMB_UID) {
    header('Location: ../../profile/index.php?refurl=../collections/specprocessor/index.php?' . $_SERVER['QUERY_STRING']);
}
$collid = $_REQUEST['collid'];
$parserTarget = $_REQUEST['parser'];
$action = array_key_exists('formsubmit', $_REQUEST) ? $_REQUEST['formsubmit'] : '';
$procManager = new SpecProcessorManager();
$procManager->setCollId($collid);
$nlpManager = null;
if ($parserTarget == 'lbcc') {
    $nlpManager = new SpecProcNlpLbcc();
} else {
    $nlpManager = new SpecProcNlpSalix();
}
//$nlpManager->setCollId($collid);
$isEditor = false;
if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collid, $userRights["CollAdmin"])) {
    $isEditor = true;
}
$status = "";
if ($isEditor) {
    if ($action == '') {
        //$status = $nlpManager->addProfile($_REQUEST);
示例#2
0
include_once $serverRoot . '/classes/ImageBatchProcessor.php';
include_once $serverRoot . '/classes/ImageProcessor.php';
include_once $serverRoot . '/classes/SpecProcessorOcr.php';
header("Content-Type: text/html; charset=" . $charset);
if (!$SYMB_UID) {
    header('Location: ../../profile/index.php?refurl=../collections/specprocessor/processor.php?' . $_SERVER['QUERY_STRING']);
}
$action = array_key_exists('submitaction', $_REQUEST) ? $_REQUEST['submitaction'] : '';
$collid = array_key_exists('collid', $_REQUEST) ? $_REQUEST['collid'] : 0;
$spprid = array_key_exists('spprid', $_REQUEST) ? $_REQUEST['spprid'] : 0;
$tabIndex = array_key_exists("tabindex", $_REQUEST) ? $_REQUEST["tabindex"] : 0;
//NLP and OCR variables
$spNlpId = array_key_exists('spnlpid', $_REQUEST) ? $_REQUEST['spnlpid'] : 0;
$procStatus = array_key_exists('procstatus', $_REQUEST) ? $_REQUEST['procstatus'] : 'unprocessed';
$specManager = new SpecProcessorManager();
$specManager->setCollId($collid);
$isEditor = false;
if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collid, $userRights["CollAdmin"])) {
    $isEditor = true;
}
$statusStr = "";
?>
<html>
	<head>
		<title>Specimen Processor Control Panel</title>
		<link href="<?php 
echo $clientRoot;
?>
/css/base.css?<?php 
echo $CSS_VERSION;
?>