<?php
function ms30_grade_dropdown($name, $selected_value = '')
{
?>
    <select name="<?= htmlspecialchars($name); ?>">
        <option value="">Select</option>
        <option value="A" <?= ($selected_value === 'A') ? 'selected' : '' ?>>
            A - Very Supportive
        </option>
        <option value="B" <?= ($selected_value === 'B') ? 'selected' : '' ?>>
            B - Show Support in Some Areas
        </option>
        <option value="C" <?= ($selected_value === 'C') ? 'selected' : '' ?>>
            C - Need to be involved
        </option>
    </select>
<?php
}


function ms30_level_dropdown($name, $value = '') {
    $value = trim($value);
    ?>
    <select name="<?= $name ?>" class="ms29-level-select">
        <option value="">Select</option>

        <option value="Level 1" <?= ($value === 'Level 1') ? 'selected' : '' ?>>
            Level 1 – Needs a lot of support of teacher and peers.
        </option>

        <option value="Level 2" <?= ($value === 'Level 2') ? 'selected' : '' ?>>
            Level 2 – Able to do with support of teacher/peers.
        </option>

        <option value="Level 3" <?= ($value === 'Level 3') ? 'selected' : '' ?>>
            Level 3 – Able to perform expected skills.
        </option>
    </select>
    <?php
}
