
 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">View Question Paper</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item"><a href="#">Exam</a></li>
              <li class="breadcrumb-item active">View Question Paper</li>

            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
    
    <section class="content">
      <div class="container-fluid">

        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h3 class="card-title">Set Question Paper</h3>
                <div class="card-tools text-center" style="float: unset;">
                  <span id="ttl_qns"></span>
                </div>
                
              </div>
              <!-- /.card-header -->
              <div class="card-body" >
              
                <div class="row">
                  <div class="col-md-9">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Select Course <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <select  class="form-control" onchange="donwload_qns_bank(this.value)"  placeholder="Enter Notice Content" required="required" id="fee_student_course">
                            <option value="">Select</option>
                            <?php foreach ($all_course as $course): ?>
                              <option value="<?php echo $course->id; ?>"><?php echo $course->title; ?></option>
                            <?php endforeach ?>
                          </select>
                       </div>
                    </div>
                  </div>
                  <div class="col-md-3">
                    <div class="form-group">
                       <div id="subject_details" style="margin-top: 35px;"></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
<style type="text/css">
#btn_add
{
  display: none;
}
</style>
<script type="text/javascript">

function donwload_qns_bank(e)
{
    var course_id = e;
  $.ajax({
      beforeSend: function() {
         $(".loader").show();
      },
      type: "POST",
      async: true,
      data : { course_id : course_id},
      url: '<?php echo base_url(); ?>/admin/course/get_qns_bank_buton',
      success: function (data) 
      {
          $('#subject_details').html(data);
          $(".loader").hide();
      },
      error: function (e) {
        $(".loader").hide();
        console.log(e.responseText)
      }
    });
}

</script>
