echo " <option "; if ($priority->id == $current->priorityID) { echo " selected "; } echo ' value="' . $priority->id . '"'; echo " > "; echo $priority->name; echo " </option> "; } ?> </select> Статус: <select name="statusID"> <option disabled selected>Выберите статус</option> <?php $statuses = status::GETALL(); foreach ($statuses as $status) { echo " <option "; if ($status->id == $current->statusID) { echo " selected "; } echo ' value="' . $status->id . '"'; echo " > "; echo $status->name; echo " </option> "; } ?> </select> Сайт: <select name="siteID">