?> </div> </div> <?php } elseif ($mode == 'badstate') { ?> <div style="margin:20px"> <div style="margin:5px"> <div style="margin-bottom:10px;"> <b>Questionable states:</b> <?php echo $cleanManager->getBadStateCount(); ?> </div> <?php $badStateArr = $cleanManager->getBadStateArr(); $goodStateArr = $cleanManager->getGoodStateArr(); foreach ($badStateArr as $countryValue => $stateArr) { echo '<div style="margin-left:0px;"><b><u>' . $countryValue . '</u></b></div>'; foreach ($stateArr as $stateName => $stateCnt) { ?> <div style="margin-left:15px;"> <form name="statecleanform" method="post" action="fieldcleaner.php" onsubmit="return verifyStateCleanForm(this)"> <b><?php echo $stateName; ?> </b> <?php echo ' <span title="Number of Specimens">(' . $stateCnt . ')</span>'; ?> <a href="../editor/occurrenceeditor.php?q_catalognumber=&occindex=0&q_customfield1=stateProvince&q_customtype1=EQUALS&q_customvalue1=<?php echo $stateName . '&collid=' . $collid;