Beispiel #1
0
echo '<a href="../misc/collprofiles.php?collid=' . $collid . '&emode=1">Collection Control Panel</a> &gt;&gt; ';
echo '<a href="index.php?collid=' . $collid . '&tabindex=' . $tabIndex . '"><b>Specimen Processor</b></a> &gt;&gt; ';
echo '<b>Processing Handler</b>';
echo '</div>';
?>
		<!-- This is inner text! -->
		<div id="innertext">
			<h2><?php 
echo $specManager->getCollectionName();
?>
</h2>
			<?php 
if ($isEditor) {
    $specManager->setProjVariables($spprid);
    if ($action == 'Process Images') {
        if ($specManager->getProjectType() == 'iplant') {
            $imageProcessor = new ImageProcessor();
            echo '<ul>';
            $imageProcessor->setLogMode(3);
            $imageProcessor->setCollid($collid);
            $imageProcessor->setSpprid($spprid);
            $imageProcessor->processIPlantImages($specManager->getSpecKeyPattern(), $specManager->getLastRunDate());
            echo '</ul>';
        } else {
            echo '<div style="padding:15px;">' . "\n";
            $imageProcessor = new ImageBatchProcessor();
            $imageProcessor->setLogMode(1);
            $imageProcessor->initProcessor();
            $imageProcessor->setCollArr(array($collid => array('pmterm' => $specManager->getSpecKeyPattern())));
            $imageProcessor->setDbMetadata(1);
            $imageProcessor->setSourcePathBase($specManager->getSourcePath());
					<?php 
    }
}
?>
			<div style="padding:15px;">
				These tools are designed to aid collection managers in batch processing specimen images. 
				Contact portal manager for helping in setting up a new workflow. 
				Once a profile is established, the collection manager can use this form to manually trigger image processing.
				For more information, see the Symbiota documentation for 
				<b><a href="http://symbiota.org/docs/batch-loading-specimen-images-2/" target="_blank">recommended practices</a></b> for 
				integrating images.   
			</div>
			<?php 
if ($SYMB_UID) {
    if ($collId) {
        $projectType = $specManager->getProjectType();
        ?>
					<div id="editdiv" style="display:<?php 
        echo $spprId || $specProjects ? 'none' : 'block';
        ?>
;">
						<form name="editproj" action="index.php" method="post" onsubmit="return validateProjectForm(this);">
							<fieldset style="padding:15px">
								<legend><b><?php 
        echo $spprId ? 'Edit' : 'New';
        ?>
 Profile</b></legend>
								<?php 
        if ($spprId) {
            ?>
									<div style="float:right;margin:10px;" onclick="toggle('editdiv');toggle('imgprocessdiv')" title="Close Editor">