<b> <?php echo 'Geographic Distribution'; if ($countryDist) { echo ' - ' . $countryDist; } elseif ($stateDist) { echo ' - ' . $stateDist; } ?> </b> </legend> <div style="margin:15px;">Click on the specimen record counts within the parenthesis to return the records for that term</div> <ul> <?php $distArr = array(); $distArr = $collManager->getGeographicCounts($countryDist, $stateDist); foreach ($distArr as $term => $cnt) { echo '<li>'; $colTarget = 'county'; if (!$stateDist) { echo '<a href="collprofiles.php?sgl=1&collid=' . $collid . ($countryDist ? '&state=' : '&country=') . $term . '">'; echo $term; echo '</a>'; $colTarget = 'country'; if ($countryDist) { $colTarget = 'state'; } echo ' (<a href="../list.php?db[]=' . $collid . '&reset=1&' . $colTarget . '=' . $term . '" target="_blank">' . $cnt . '</a>)'; } else { echo $term; echo ' (<a href="../list.php?db[]=' . $collid . '&reset=1&' . $colTarget . '=' . $term . '" target="_blank">' . $cnt . '</a>)';