<?php


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

        <option value="A1" <?= ($value === 'A1') ? 'selected' : '' ?>>A1 (91 - 100)</option>
        <option value="A2" <?= ($value === 'A2') ? 'selected' : '' ?>>A2 (81 - 90)</option>
        <option value="B1" <?= ($value === 'B1') ? 'selected' : '' ?>>B1 (71 - 80)</option>
        <option value="B2" <?= ($value === 'B2') ? 'selected' : '' ?>>B2 (61 - 70)</option>
        <option value="C1" <?= ($value === 'C1') ? 'selected' : '' ?>>C1 (51 - 60)</option>
        <option value="C2" <?= ($value === 'C2') ? 'selected' : '' ?>>C2 (41 - 50)</option>
        <option value="D"  <?= ($value === 'D')  ? 'selected' : '' ?>>D (33 - 40)</option>
        <option value="E1" <?= ($value === 'E1') ? 'selected' : '' ?>>E1 (21 - 32)</option>
        <option value="E2" <?= ($value === 'E2') ? 'selected' : '' ?>>E2 (00 - 20)</option>
    </select>
<?php
}


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



?>




