<?php
$_SESSION['upload_dir'] = '/content-library/' . $person_info->url . '/my-work-file/'.$quiz_url.'/';
$_SESSION['current_path'] = '../content-library/' . $person_info->url . '/my-work-file/'.$quiz_url.'/';

$person_id = $this->session->userdata('person_id');
$directory = 'content-library/' . $person_info->url . '/my-work-file/' . $quiz_url;
if (is_dir($directory)) {
    $_SESSION['upload_dir'] = '/content-library/' . $person_info->url . '/my-work-file/' . $quiz_url . '/';
    $_SESSION['current_path'] = '../content-library/' . $person_info->url . '/my-work-file/' . $quiz_url . '/';
} else {
    $_SESSION['upload_dir'] = '/source/' . $person_info->url . '/';
    $_SESSION['current_path'] = '../source/' . $person_info->url . '/';
}

?>
<div class="col-sm-10">
    <div class="row ">
        <div class="col-sm-12 "><br></div>
        <div  class="col-sm-12 ">
            <div class="row gray_ttc">
                <div role="tabpanel">
                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active "><a href="#fill" aria-controls="fill" role="tab" data-toggle="tab">Update Selected Fill in the blank Question</a></li>
                    </ul>
                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane  col-sm-12 active" id="fill">
                            <div class="form-group col-sm-12"> 
                                <form id="formID7" action="#" method="post" name="fill_Form" enctype="multipart/form-data" >
                                    <div class="col-sm-8 col-sm-offset-2">
                                        <div >
                                            <br/>
                                            <br/>
                                            <br/>

                                            <input type="text" data-errormessage-value-missing="Question  is required!" class="form-control validate[required]"  id="first_name" name="question_details" value=""  placeholder="Please Type Your question" >
                                            <input type="hidden" class="form-control" id="question_type" name="question_type" value="1"  >
                                            <div class="form-group  required" ></div>
                                        </div> 
                                        <br/>

                                        <div >
                                            <select data-errormessage-value-missing="Please select a quiz!" class="form-control validate[required]" id="quiz_id"  name="quiz_id" >
                                                <option value="">--Select Quiz--</option>

                                                <option value="">PHP</option>
                                                <option value="">HTML</option>


                                            </select>
                                        </div>
                                        <div class="form-group  required" ></div>
                                        <br/>
                                        <div >
                                            <input type="number" data-errormessage-value-missing="Mark is required!" class="form-control validate[required]"  id="marks3" name="points_per_answer" value=""   onchange = "checkNegative(this.value, 'marks3', 'marks_err3');"  placeholder="Type  question Marks" >
                                        </div>
                                        <br/>
                                        <br/>
                                        <div>
                                            <input type="number" data-errormessage-value-missing="Time limit required!"
                                                   class="form-control validate[required]"  id="time_limit3" name="time_limit" value=""  onchange = "checkNegative(this.value, 'time_limit3', 'time_err3');" placeholder="Type Time Limit (In minute)" >
                                        </div>
                                        <br>
                                        <br>
                                        <div>


                                            <input type="text" data-errormessage-value-missing="" class="form-control validate[required]"    placeholder="Type Answer of the Question" >
                                        </div>
                                    </div>
                                    <br/>
                                    <br/>
                                    <div class=" col-sm-12" >
                                        <br/>
                                        <br/>
                                        <div class="col-sm-4"></div>
                                        <div class="col-sm-4">
                                            <button class="btn btn-success">Add Question</button>
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <br>
    <div class="row gray">
        <div class="col-sm-12 ">
            <label><a href="<?php echo base_url() ?>super_admin">Dashboard </a>->> <a href="<?php echo base_url() ?>super_admin_quiz/manage_quiz">Manage Quiz</a>->><a href="<?php echo base_url() ?>super_admin_quiz/question_detail/1">Quiz </a>->>Edit Fill in the Blank Question</label>
        </div>
    </div>
    <br>
    <br>
</div>