<?php $query = "SELECT * FROM `evaluations_lu_questiontypes`\n\t\t\t\t\t\t\t\t\t\t\tWHERE `questiontype_active` = 1"; $questiontypes = $db->GetAll($query); if ($questiontypes) { foreach ($questiontypes as $questiontype) { echo "<option " . (isset($PROCESSED["questiontype_id"]) && $PROCESSED["questiontype_id"] == $questiontype["questiontype_id"] || (!isset($PROCESSED["questiontype_id"]) || !$PROCESSED["questiontype_id"]) && $questiontype["questiontype_id"] == 1 ? "selected=\"selected\" " : "") . "value=\"" . $questiontype["questiontype_id"] . "\">" . $questiontype["questiontype_title"] . "</option>\n"; } } ?> </select> </td> </tr> <tr> <td colspan="2"> </td> </tr> <?php echo Models_Evaluation::getEditQuestionControls($PROCESSED); ?> </tbody> </table> </form> <?php if (in_array($questiontype["questiontype_shortname"], array("rubric", "selectbox", "matrix_single", "vertical_matrix"))) { } ?> <?php break; } }