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

$m->where("branch_id", $_SESSION['branch']);
$branch_details = $m->get("edu_branch_config");

?>

<div id="myIDdata" style="">
     
    <table width="100%"  class="responsive" border="1" style="border-collapse: collapse;">  


    <tr>

   
   <th class="thStyle"> Student   </th>
   <th class="thStyle"> Father   </th>
   <th class="thStyle"> Class/Sec  </th>
   <th class="thStyle"> Family Code  </th>


    </tr>

  <?php 

  $branch_id=$_SESSION['branch'];
  $family_code=$_REQUEST['family_code'];


    $sql="SELECT * FROM edu_student_details WHERE family_code='$family_code' and branch_id='".$_SESSION['branch']."' and status='0'";
  

  $WorkAssignListings = $m->query($sql);
  $counter=0;
   foreach($WorkAssignListings as $WorkAssignListVal)
        { 

       
 ?>
      
      <tr>  
         
         <td><a target="_blank" href="student_profile.php?student=<?php echo $WorkAssignListVal['student_id'];?>">
          <?php echo $WorkAssignListVal['first_name'];?></a></td>
         <td><?php echo $WorkAssignListVal['last_name'];?></td>
         <td><?php echo getClassName($m,$WorkAssignListVal['class_id']);?> (<?php echo  getSectionName($m,$WorkAssignListVal['section_id']);?>)</td>
         <td><?php echo $WorkAssignListVal['family_code'];?></td>
     

                
                 
      </tr>

<?php 

 }  ?>


</table>
<br>
</div>
