<?php include("parent/callMe.php"); ?>

<div name="subject_id" id="subject_id" class="select select_add">
<table>	
<div class="col-md-12">
<?php

$branch=$_SESSION['branch'];
$class=$_REQUEST['class_id'];

$sql = "SELECT DISTINCT sub.* FROM eduportal_class_subjects as csub, eduportal_subject_config as sub  where csub.branch_id='$branch' and csub.class_id='$class' and csub.subject_id=sub.subject_id";

$secondLevel = $m->query($sql);

if($secondLevel[0]>0){
foreach($secondLevel as $secondLevel_val)
{
if(is_array($secondLevel_val)){
 ?>
  <tr>
  <div class="col-md-2" >
  <div class="form-group" >	
  <label class="container1">
   	<input type="checkbox" name="subject_id[]" checked value="<?php echo $secondLevel_val['subject_id'];?>" />
    <span style="font-size:12px;"><?php echo " ".$secondLevel_val['subject'];?></span> <span class="checkmark"></span>
  </label>
  <?php } ?>
  </div>
              	</div>
  <tr>

  <?php } }  ?>
</div>
</table>
</div>