<div id="speclist"> <div class='button' style='margin:15px 15px 0px 0px;float:right;width:13px;height:13px;' title='Download Specimen Data'> <a href='download/index.php?dltype=specimen'> <img src='../images/dl.png'/> </a> </div> <div style='margin:10px;'> <div><b>Dataset:</b> <?php echo $collManager->getDatasetSearchStr(); ?> </div> <?php if ($collManager->getTaxaSearchStr()) { echo "<div><b>Taxa:</b> " . $collManager->getTaxaSearchStr() . "</div>"; } if ($collManager->getLocalSearchStr()) { echo "<div><b>Search Criteria:</b> " . $collManager->getLocalSearchStr() . "</div>"; } ?> </div> <?php $paginationStr = "<div><div style='clear:both;'><hr/></div><div style='float:left;margin:5px;'>\n"; $lastPage = (int) ($collManager->getRecordCnt() / $cntPerPage) + 1; $startPage = $pageNumber > 4 ? $pageNumber - 4 : 1; $endPage = $lastPage > $startPage + 9 ? $startPage + 9 : $lastPage; $hrefPrefix = 'list.php?' . (array_key_exists('targettid', $_REQUEST) ? '&targettid=' . $_REQUEST["targettid"] : '') . '&page='; $pageBar = ''; if ($startPage > 1) { $pageBar .= "<span class='pagination' style='margin-right:5px;'><a href='" . $hrefPrefix . "1'>First</a></span>"; $pageBar .= "<span class='pagination' style='margin-right:5px;'><a href='" . $hrefPrefix . ($pageNumber - 10 < 1 ? 1 : $pageNumber - 10) . "'><<</a></span>"; }
} ?> </div> <div style='margin:10px;'> <div><b><?php echo $LANG['DATASET']; ?> :</b> <?php echo $collManager->getDatasetSearchStr(); ?> </div> <?php if ($collManager->getTaxaSearchStr()) { echo '<div><b>' . $LANG['TAXA'] . ':</b> ' . $collManager->getTaxaSearchStr() . '</div>'; } if ($collManager->getLocalSearchStr()) { echo '<div><b>' . $LANG['SEARCH_CRITERIA'] . ':</b> ' . $collManager->getLocalSearchStr() . '</div>'; } ?> </div> <div style='margin:10px;'> <?php $tableLink = 'listtabledisplay.php?usecookies=false&starr=' . $stArrSearchJson . '&jsoncollstarr=' . $stArrCollJson . (array_key_exists('targettid', $_REQUEST) ? '&targettid=' . $_REQUEST["targettid"] : ''); echo "<a href='" . $tableLink . "'>See Results in Table View</a>"; ?> </div> <?php $paginationStr = '<div><div style="clear:both;"><hr/></div><div style="float:left;margin:5px;">'; $lastPage = (int) ($collManager->getRecordCnt() / $cntPerPage) + 1; $startPage = $pageNumber > 4 ? $pageNumber - 4 : 1; $endPage = $lastPage > $startPage + 9 ? $startPage + 9 : $lastPage;