echo "<option value='" . $status['catalogingStatusID'] . "'>" . $status['shortName'] . "</option>"; } } ?> </select> </td> </tr> <tr> <td class='searchRow'><label for='searchStepName'><b>Routing Step</b></label> <br /> <select name='search[stepName]' id='searchStepName' style='width:150px'> <option value=''>All</option> <?php $step = new Step(); $stepNames = $step->allStepNames(); foreach ($stepNames as $stepName) { if ($search['stepName'] == $stepName) { $stepSelected = " selected"; } else { $stepSelected = false; } echo "<option value=\"" . htmlspecialchars($stepName) . "\" {$stepSelected}>" . htmlspecialchars($stepName) . "</option>"; } ?> </select> </td> </tr> <tr> <td class='searchRow'><label for='searchParents'><b>Relationship</b></label> <select name='search[parent]' id='searchParents' style='width:150px'>