<?php $running_year = $this->db->get_where('settings' , array('type' => 'running_year'))->row()->description; ?>
<div class="content-w">
      <div class="os-tabs-w menu-shad">
        <div class="os-tabs-controls">
          <ul class="nav nav-tabs upper">
            <li class="nav-item">
              <a class="nav-link active" href="<?php echo base_url();?>teacher/upload_marks/"><i class="os-icon picons-thin-icon-thin-0007_book_reading_read_bookmark"></i><span><?php echo get_phrase('upload_marks');?></span></a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="<?php echo base_url();?>teacher/tab_sheet/"><i class="os-icon picons-thin-icon-thin-0197_layout_grid_view"></i><span><?php echo get_phrase('tabulation_sheet');?></span></a>
            </li>
          </ul>
        </div>
      </div>
  <div class="content-i">
    <div class="content-box">
          <div class="element-wrapper">
          <?php echo form_open(base_url() . 'teacher/marks_selector', array('class' => 'form m-b'));?>
              <div class="row">
                <div class="col-sm-2">
                  <div class="form-group">
                    <label class="gi" for=""><?php echo get_phrase('semester');?>:</label>
                    	<select name="exam_id" class="form-control" required="">
                    		<option value=""><?php echo get_phrase('select');?></option>
							<?php $exams = $this->db->get_where('exam' , array('year' => $running_year))->result_array();
							foreach($exams as $row):
							?>		
								<option value="<?php echo $row['exam_id'];?>"><?php echo $row['name'];?></option>
							<?php endforeach;?>
						</select>
                  </div>
                </div>
                <div class="col-sm-2">
					<div class="form-group">
					  <label for=""> <?php echo get_phrase('end_date');?></label><input class="single-daterange form-control" name="availableto" required type="text" value="">
					</div>
				  </div>
              	  <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
				   <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
				  
				    <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
				    <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
                       <div class="os-tabs-w menu-shad">
        <div class="os-tabs-controls">
            <div class="col-sm-2">
					<div class="form-group">
					  <label for=""> <?php echo get_phrase('end_date');?></label><input class="single-daterange form-control" name="availableto" required type="text" value="">
					</div>
				  </div>
              	  <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
				   <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
				  
				    <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
				    <div class="col-sm-2">
					  <label for=""> <?php echo get_phrase('start_hour');?></label><div class="input-group clockpicker" data-align="top" data-autoclose="true">
					<input type="text" required="" class="form-control" name="clock_start" value="09:30">
					<span class="input-group-addon">
						<span class="picons-thin-icon-thin-0029_time_watch_clock_wall"></span>
					</span>
					</div>
				  </div>
        </div>
      </div>
              
              </div>
            <?php echo form_close();?>
          </div>
     
        </div>
      </div>
      
    </div>



    <script type="text/javascript">
    function get_class_sections(class_id) 
    {
        $.ajax({
            url: '<?php echo base_url();?>teacher/get_class_section/' + class_id ,
            success: function(response)
            {
                jQuery('#section_selector_holder').html(response);
            }
        });
    }
</script>

<script type="text/javascript">
    function get_class_subject(class_id) {
        $.ajax({
            url: '<?php echo base_url(); ?>teacher/get_class_subject/' + class_id,
            success: function (response)
            {
                jQuery('#subject_selector_holder').html(response);
            }
        });
    }
</script>