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


<div id="myID" style="">

     
    <table width="100%"  class="responsive">  


    <tr>

 <th class="thStyle" style="padding:6px 5px;"> Adm#  </th>
 <th class="thStyle" style="padding:6px 5px;"> Roll#  </th>
 <th class="thStyle" style="padding:6px 5px;"> Student Name  </th>
 <th class="thStyle" style="padding:6px 5px;"> Father Name  </th>
 <th class="thStyle" style="padding:6px 5px;"> Class/Sec  </th>
 <th class="thStyle" style="padding:6px 5px;"> Cell  </th>


  </tr>


    <?php 

$branch_id=$_SESSION['branch'];
$cell_no=$_REQUEST['cell_no'];
$month=date("m");

  $sql="SELECT * FROM edu_student_details as std WHERE std.cell_no='$cell_no' and std.branch_id='$branch_id' and std.status='0'";

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

     

        ?>
      
      <tr>  
         <td><?php echo $WorkAssignListVal['ref_no'];?></td>
         <td><?php echo $WorkAssignListVal['candidate_roll_no'];?></td>
         <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['cell_no'];?></td>
     

                
                 
      </tr>

<?php 

 }  ?>


</table>

</div>
