<?php
$access_level_type = array('', '', '', '', 'group', 'course', 'course');
?>
<div class="col-sm-12"><br></div>

<input type="hidden" id="selected_id" name="selected_id" value="<?php echo set_value('selected_id'); ?>">

<div class="form-group col-sm-12 padding-zero">
    <?php if ($access_level == 4 || $access_level == 5 || $access_level == 6) { ?>
        <div class="form-group col-sm-12">
            <div class="input-group">
                <input type="text"
                       id="search_text"
                       name="search_text"
                       class="form-control" 
                       placeholder="Search <?php echo $access_level_type[$access_level]; ?> Name..."
                       oninput="getSearchResult('<?php echo base_url() . 'super-admin/search-quiz-access' ?>', this.value)"
                       value=""
                       aria-describedby="basic-addon1">
                <span class="input-group-addon" id="basic-addon1" title="Please Search <?php echo $access_level_type[$access_level]; ?> ">
                    <i class="fa fa-users"></i>
                </span>
            </div>
            <span id="search_error" style="color: red;"></span>
        </div>
    <?php } ?>
</div>