echo '<div class="navpath">'; echo '<a href="../../index.php">Home</a> >> '; echo '<a href="../misc/collprofiles.php?collid=' . $collid . '&emode=1">Collection Control Panel</a> >> '; echo '<a href="index.php?collid=' . $collid . '&tabindex=' . $tabIndex . '"><b>Specimen Processor</b></a> >> '; 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())));
<?php include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/SpecProcessorManager.php'; header("Content-Type: text/html; charset=" . $charset); $collid = array_key_exists('collid', $_REQUEST) ? $_REQUEST['collid'] : 0; $spprid = array_key_exists('spprid', $_REQUEST) ? $_REQUEST['spprid'] : 0; $procStatus = array_key_exists('procstatus', $_REQUEST) ? $_REQUEST['procstatus'] : 'unprocessed'; $procManager = new SpecProcessorManager(); $procManager->setCollId($collid); $procManager->setProjVariables('OCR Harvest'); ?> <script> $(function() { var dialogArr = new Array("speckeypattern","sourcepath","ocrfile","ocrsource"); var dialogStr = ""; for(i=0;i<dialogArr.length;i++){ dialogStr = dialogArr[i]+"info"; $( "#"+dialogStr+"dialog" ).dialog({ autoOpen: false, modal: true, position: { my: "left top", at: "right bottom", of: "#"+dialogStr } }); $( "#"+dialogStr ).click(function() { $( "#"+this.id+"dialog" ).dialog( "open" ); }); } });