$dbArr = explode(';', $previousCriteria["db"]); } if ($action) { if ($action == 'Load Images') { if ($stArr) { $imgLibManager->setSearchTermsArr($stArr); } else { $imgLibManager->readRequestVariables(); $stArr = $imgLibManager->getSearchTermsArr(); } $sqlWhere = $imgLibManager->getSqlWhere(); if ($view == 'thumbnail') { $imageArr = $imgLibManager->getImageArr($taxon, $pageNumber, $cntPerPage, $sqlWhere); } if ($view == 'taxalist') { $taxaList = $imgLibManager->getFamilyList($sqlWhere); } $recordCnt = $imgLibManager->getRecordCnt(); $jsonStArr = json_encode($stArr); } } ?> <html> <head> <title><?php echo $defaultTitle; ?> Image Library</title> <link href="../css/base.css?<?php echo $CSS_VERSION; ?>
echo "<div style='margin-left:20px;margin-top:20px;margin-bottom:20px;font-weight:bold;'>Select a species to access available images.</div>"; $taxaList = $imgLibManager->getSpeciesList(""); foreach ($taxaList as $key => $value) { echo "<div style='margin-left:30px;font-style:italic;'>"; echo "<a href='../taxa/index.php?taxon=" . $key . "' target='_blank'>" . $value . "</a>"; echo "</div>"; } } elseif ($taxon) { echo "<div style='margin-left:20px;margin-top:20px;margin-bottom:20px;font-weight:bold;'>Select a species to access available images.</div>"; $taxaList = $imgLibManager->getSpeciesList($taxon); foreach ($taxaList as $key => $value) { echo "<div style='margin-left:30px;font-style:italic;'>"; echo "<a href='../taxa/index.php?taxon=" . $key . "' target='_blank'>" . $value . "</a>"; echo "</div>"; } } else { //Family display echo "<div style='margin-left:20px;margin-top:20px;margin-bottom:20px;font-weight:bold;'>Select a family to see species list.</div>"; $taxaList = $imgLibManager->getFamilyList(); foreach ($taxaList as $value) { echo "<div style='margin-left:30px;'><a href='index.php?taxon=" . $value . "'>" . strtoupper($value) . "</a></div>"; } } ?> </div> <?php include $serverRoot . '/footer.php'; ?> </body> </html>