manage_multiple_choices_options.php 631 Bytes
Newer Older
Phạm Văn Đoan committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php for($i = 1; $i <= $number_of_options; $i++): ?>
    <div class="form-group options">
        <label><?php echo get_phrase('option').' '.$i;?></label>
        <div class="input-group">
            <input type="text" class="form-control" name = "options[]" id="option_<?php echo $i; ?>" placeholder="<?php echo get_phrase('option_').$i; ?>" required>
            <div class="input-group-append">
                <span class="input-group-text">
                    <input type='checkbox' name = "correct_answers[]" value = <?php echo $i; ?>>
                </span>
            </div>
        </div>
    </div>
<?php endfor; ?>