<?= $this->extend("templates/hod_base"); ?>

<?= $this->section("content"); ?>
<?php $page_session = \Config\Services::session(); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Exam Results</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Exam Results</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <!-- SELECT2 EXAMPLE -->
        <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title"><strong>Exam Results</strong></h3>

            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse">
                <i class="fas fa-minus"></i>
              </button>
              <button type="button" class="btn btn-tool" data-card-widget="remove">
                <i class="fas fa-times"></i>
              </button>
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
                
            <div class="row">
              <div class="col-md-4">
                <div class="form-group">
                  <label>Select Session: <span class="text-red">*</span></label>
                  <select class="form-control select2" style="width: 100%;" name="session" id="sessionField"  required>
                  <option <?php if($page_session->get('current_session')=='2020/2021') echo 'selected'; ?> value = "2020_2021">2020/2021</option>
                  <option <?php if($page_session->get('current_session')=='2021/2022') echo 'selected'; ?> value = "2021_2022">2021/2022</option>
                  <option <?php if($page_session->get('current_session')=='2022/2023') echo 'selected'; ?> value = "2022_2023">2022/2023</option>
                  <option <?php if($page_session->get('current_session')=='2023/2024') echo 'selected'; ?> value = "2023_2024">2023/2024</option>
                  <option <?php if($page_session->get('current_session')=='2024/2025') echo 'selected'; ?> value = "2024_2025">2024/2025</option>
                  <option <?php if($page_session->get('current_session')=='2025/2026') echo 'selected'; ?> value = "2025_2026">2025/2026</option>
                  <option <?php if($page_session->get('current_session')=='2026/2027') echo 'selected'; ?> value = "2026_2027">2026/2027</option>
                  <option <?php if($page_session->get('current_session')=='2027/2028') echo 'selected'; ?> value = "2027_2028">2027/2028</option>
                  <option <?php if($page_session->get('current_session')=='2028/2029') echo 'selected'; ?> value = "2028_2029">2028/2029</option>
                  <option <?php if($page_session->get('current_session')=='2029/2030') echo 'selected'; ?> value = "2029_2030">2029/2030</option>
                  <option <?php if($page_session->get('current_session')=='2030/2031') echo 'selected'; ?> value = "2030_2031">2030/2031</option>
                  <option <?php if($page_session->get('current_session')=='2031/2032') echo 'selected'; ?> value = "2031_2032">2031/2032</option>
                  <option <?php if($page_session->get('current_session')=='2032/2033') echo 'selected'; ?> value = "2032_2033">2032/2033</option>
                  <option <?php if($page_session->get('current_session')=='2033/2034') echo 'selected'; ?> value = "2033_2034">2033/2034</option>
                  <option <?php if($page_session->get('current_session')=='2034/2035') echo 'selected'; ?> value = "2034_2035">2034/2035</option>
                  <option <?php if($page_session->get('current_session')=='2035/2036') echo 'selected'; ?> value = "2035_2036">2035/2036</option>
                  </select>
                </div>
              </div>
              <div class="col-md-4">
                <div class="form-group">
                  <label class="label">Select Semester: <span class="text-red">*</span></label>
                  <select class="form-control select2" name="semester" id="semester" onchange="spawn_lecturers_submission()" required> 
                  <option disabled selected>Semester</option>
                  <option value = "1st">1st</option>
                  <option value = "2nd">2nd</option>
                  <option value = "both">Both</option>
                  </select>
                </div>
              </div>
              <div class="col-md-4">
                <div class="form-group">
                  <label class="label">Select Level: <span class="text-red">*</span></label>
                  <select class="form-control select2" name="level" id="level" onchange="spawn_lecturers_submission()" required> 
                  <option disabled selected>Level</option>
                  <option value = "100">100</option>
                  <option value = "200">200</option>
                  <option value = "300">300</option>
                  <option value = "400">400</option>
                  <option value = "SO I">SO I</option>
                  <option value = "SO II">SO II</option>
                  </select>
                </div>
              </div>
            </div>
            <hr/>
                
            <div class="row">
              <div class="col-md-12">
                <div id="view_btn"></div>
              </div>
            </div>            

          </div>
                
             
          
        </div>
        <!-- /.card -->


      </div>
      <!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  

<?= $this->endSection(); ?>