    <div class="content-w">
       <div class="conty">
           <?php 
                $dat = base64_decode($data);
                $ex = explode('-',$dat);
            ?>
            <?php include 'fancy.php';?>
            <div class="header-spacer"></div>
            <div class="os-tabs-w menu-shad">
                <div class="os-tabs-controls">
                    <ul class="navs navs-tabs upper">
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>teacher/subject_dashboard/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0482_gauge_dashboard_empty"></i><span><?php echo getEduAppGTLang('dashboard');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links active" href="<?php echo base_url();?>teacher/online_exams/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0207_list_checkbox_todo_done"></i><span><?php echo getEduAppGTLang('online_exams');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>teacher/homework/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0004_pencil_ruler_drawing"></i><span><?php echo getEduAppGTLang('homework');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>teacher/forum/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0281_chat_message_discussion_bubble_reply_conversation"></i><span><?php echo getEduAppGTLang('forum');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>teacher/study_material/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0003_write_pencil_new_edit"></i><span><?php echo getEduAppGTLang('study_material');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>teacher/upload_marks/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0729_student_degree_science_university_school_graduate"></i><span><?php echo getEduAppGTLang('marks');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>teacher/meet/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0591_presentation_video_play_beamer"></i><span><?php echo getEduAppGTLang('live');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>teacher/attendance/<?php echo $data;?>/"><i class="os-icon picons-thin-icon-thin-0023_calendar_month_day_planner_events"></i><span><?php echo getEduAppGTLang('attendance');?></span></a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="content-i">
                <div class="content-box">
                    <div class="col-lg-12">   
                        <div class="back hidden-sm-down backbutton">   
                            <a href="<?php echo base_url();?>teacher/online_exams/<?php echo $data;?>/"><i class="picons-thin-icon-thin-0131_arrow_back_undo"></i></a>  
                        </div>  
                        <div class="element-wrapper"> 
                            <div class="element-box lined-primary shadow">
                                <div class="modal-header">
                                    <h5 class="modal-title"><?php echo getEduAppGTLang('new_exam');?></h5>
                                </div>
                                <br>
                                <?php echo form_open(base_url() . 'teacher/create_online_exam/'.$data, array('enctype' => 'multipart/form-data')); ?>
                                    <div class="row">
                                        <div class="col-sm-6">
                                            <div class="form-group">
                                                <label class="col-form-label" for=""><?php echo getEduAppGTLang('title');?></label>
                                                <div class="input-group">
                                                    <input type="text" class="form-control" name="exam_title" required="">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="form-group">
                                                <label class="col-form-label" for=""><?php echo getEduAppGTLang('date');?></label>
                                                <div class="input-group">
                                                    <input type='text' class="datepicker-here" data-position="top left" data-language='en' name="exam_date" data-multiple-dates-separator="/"/>
                                                </div>    
                                            </div>
                                        </div>
                                        <div class="col-sm-4">
                                            <div class="form-group">
                                                <label class="col-form-label" for=""><?php echo getEduAppGTLang('start_time');?></label>
                                                <div class="input-group clockpicker" data-align="top" data-autoclose="true">
                                                    <input type="text" required="" name="time_start" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-4">
                                            <div class="form-group">
                                                <label class="col-form-label" for=""><?php echo getEduAppGTLang('end_time');?></label>
                                                <div class="input-group clockpicker" data-align="top" data-autoclose="true">
                                                    <input type="text" required="" name="time_end" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-4">
                                            <div class="form-group">
                                                <label class="col-form-label" for=""><?php echo getEduAppGTLang('percentage_required');?></label>
                                                <div class="input-group">
                                                    <input type="text" class="form-control" name="minimum_percentage">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-4">
                                            <div class="form-group">
                                                <label class="col-form-label" for=""><?php echo getEduAppGTLang('password');?></label>
                                                <div class="input-group">
                                                    <input type="text" class="form-control" name="password">
                                                </div>
                                                <small><?php echo getEduAppGTLang('optional');?></small>
                                            </div>
                                        </div>
                                        <div class="col-sm-4"><br>
                                            <div class="form-group is-select">
                                                <label class="control-label"><?php echo getEduAppGTLang('show_results');?></label>
                                                <div class="select">
                                                    <select name="results" required="">
                                                        <option value=""><?php echo getEduAppGTLang('select');?></option>
                                                        <option value="1"><?php echo getEduAppGTLang('keep_hidden');?></option>
                                                        <option value="2"><?php echo getEduAppGTLang('show_when_exam_is_finished');?></option>
                                                        <option value="3"><?php echo getEduAppGTLang('15_minutes_after_finished');?></option>
                                                        <option value="4"><?php echo getEduAppGTLang('30_minutes_after_finished');?></option> 
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-4">
                                            <div class="description-toggle">
                                                <div class="description-toggle-content">
                                                    <label><?php echo getEduAppGTLang('show_questions_randomly'); ?></label>
                                                </div>
                                                <div class="togglebutton">
                                                    <label><input name="show_random" value="1" type="checkbox"></label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-12">
                                            <div class="form-group">
                                                <label class="col-form-label" for=""><?php echo getEduAppGTLang('description');?></label>
                                                <textarea class="form-control" name="instruction" id="ckeditorEmail"></textarea>
                                            </div>
                                        </div>
                                        <input type="hidden" value="<?php echo $ex[0];?>" name="class_id">
                                        <input type="hidden" value="<?php echo $ex[1];?>" name="section_id">
                                        <input type="hidden" value="<?php echo $ex[2];?>" name="subject_id">
                                        <div class="form-group">
                                            <div class="col-sm-12 text-center">
                                                <button type="submit" class="btn btn-success"><?php echo getEduAppGTLang('save');?></button>
                                            </div>
                                        </div>
                                    </div>
                                <?php echo form_close();?>
                            </div>
                        </div>
                    </div>
                </div>  
            </div>
        </div>
    </div>