<style>
.exam-head-section{box-shadow:0 0 2px silver;}
</style>

<?php 
$class='3';
?>

<div class="container-fluid mt-3 mb-3 ">
<div class="row">
<div class="col-sm-12">
<div class="exam-head-section p-3 bg-white">
<form method="post" action="#">
    
    
<?php
if($success){
// echo '<div class="alert alert-success" role="alert">'.$success.'</div>';
echo '<div class="alert alert-success alert-dismissible fade show" role="alert">
  <strong>'.$success.'
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    <span aria-hidden="true">&times;</span>
  </button>
</div>';
}
?>  

<h3 class="text-success ">Add Exam Head</h3>
<div class="form-group">
<label>Class</label>
<select class="form-control" name="class">
<?php 
$all_courses=$this->ExamModel->get_active_courses();
if($all_courses){
foreach($all_courses as $courses){
?>
<option value="<?php echo $courses['course']; ?>"><?php echo $courses['course']; ?></option>
<?php
}
}
?>
</select>
<!--<input type="text" name="class" class="form-control" value="<?php echo $class; ?>" readonly>-->
</div>


<div class="form-group">
<label>Exam Head</label>
<input type="text" class="form-control" name="exam_head" placeholder="Add Exam Head">
</div>

<div class="form-group">
<label>MM</label>
<input type="number" class="form-control" name="max_marks" placeholder="Enter Max Marks" required>
</div>

<div class="form-group">
<label>Order By</label>
<input type="number" class="form-control" placeholder="Exam head order" name="head_order">
</div>
<div class="form-group">
<select class="form-control" name="exam_mode">
<option value="yearly">Yearly</option>
<option value="half_yearly">Half Yearly</option>
</select>
</div>
<div class="form-group">
<input type="submit" class="btn btn-sm btn-success" value="Add Exam Head" name="add_exam_head">
</div>
</form>
</div>
</div>
</div>
</div>