<?php
function ms35_grade_dropdown($name, $selected_value = '')
{
?>
    <select name="<?= htmlspecialchars($name); ?>">
        <option value="">Select</option>
        <option value="A" <?= ($selected_value === 'A') ? 'selected' : '' ?>>
            A
        </option>
        <option value="B" <?= ($selected_value === 'B') ? 'selected' : '' ?>>
            B
        </option>
        <option value="C" <?= ($selected_value === 'C') ? 'selected' : '' ?>>
            C
        </option>
    </select>
<?php
}


function ms35_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
}
