if ($attrNameArr) { foreach ($attrNameArr as $ID => $aName) { echo '<option value="' . $ID . '" ' . ($traitID == $ID ? 'SELECTED' : '') . '>' . $aName . '</option>'; } } else { echo '<option value="0">No attributes are available</option>'; } ?> </select> </div> <div style="margin:3px"> <select name="reviewuid"> <option value="">All Editors</option> <option value="">-----------------------</option> <?php $editorArr = $attrManager->getEditorArr(); foreach ($editorArr as $uid => $name) { echo '<option value="' . $uid . '" ' . ($uid == $reviewUid ? 'SELECTED' : '') . '>' . $name . '</option>'; } ?> </select> </div> <div style="margin:3px"> <select name="reviewdate"> <option value="">All Dates</option> <option value="">-----------------------</option> <?php $dateArr = $attrManager->getEditDates(); foreach ($dateArr as $date) { echo '<option ' . ($date == $reviewDate ? 'SELECTED' : '') . '>' . $date . '</option>'; }