<?php include('parent/callMe.php');?>
<?php include('Sessioncheck.php');?>
<?php   
  
// getting branch details

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

$m->where("session_id", $_SESSION['current_session']);
$session=$m->get("edu_session_config");

if($_REQUEST['month']!=NULL){
$m->where("Month_Id", $_REQUEST['month']);
}else{
$m->where("Month_Id", date("m"));
}

$month=$m->get("eduportal_month_config");

?>


<?php   

$date2=date('Y-m-d');
  $session=$_SESSION['current_session'];

  $sql="SELECT * FROM edu_student_details WHERE branch_id='$branch' and session_id='$session' and status='0' and entrance_date like '$date2%'";
  
  $WorkAssignListings = $m->query($sql); 
  
 
?>

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Print Salary Receipt</title>
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />
<script type="text/javascript">
// window.print();
</script>
<style type="text/css">

tr th {font-size:14px;}
tr td {font-size:16px;}
  
.border{border:1px solid black;}

.alignment{padding-left:1%;text-align:left;}

.borderbottom{
  border-bottom:1px solid black;
}



@media print {
    #Header, #Footer { display: none !important; }
}
@media screen
   {
      p.bodyText {font-family:verdana, arial, sans-serif;}
   }

   @media print
   {
      p.bodyText {font-family:georgia, times, serif;}
   }
   @media screen, print
   {
      p.bodyText {font-size:10pt}
   }
   @media print {
  a[href]:after {
    content: none !important;
  }
}
.center{text-align:center;}
</style>
</head>

<body style="font-size:12px;padding-right:1%;padding-left:1%;padding-top:3%;padding-bottom:1%;">
<div style="text-align:center;font-size:24px;font-weight:bold;margin:0 auto;"><?php echo $branch1[0]['Branch_Name'];?> 
</div>

<br>

<div style="text-align:center;font-size:18px;font-weight:bold;"> Today Student Admission

 </div>

<hr style="width:100%;">



<div style="width:33%; float:left;font-size:18px; margin-left:10px; "> <b> Date:</b> <?php echo date("d-M-Y");?> </div>


<br>  


    <form class="form-style-7" action="" method="get"  onSubmit="return student_check();"  enctype="multipart/form-data">


  
  
  

    <table border="1"  data-page-length='100' class="table table-striped table-bordered " style="width:100%;font-size:11px; border-collapse: collapse;">
          
          <thead>        
            

            <tr style="background: lightgray;">              
                <th width="" style="padding:3px;">S.No</th>
                <th width="">Student</th>
                <th width="">Father</th>
                <th width="">Adm/Roll No</th>
                <th width=""> Cell Number </th>
                <th width=""> Class </th>
            </tr>

        </thead>
        <tbody>
     
     <?php
     
     $count=1; 

      foreach($WorkAssignListings as $WorkAssignListVal)
      { 



      ?>


      <tr>       
     
      <td style="text-align:center; padding: 3px;"><?php echo $count++;?></td>  

      
      <td style="padding-left:1px;" >
        <a style="padding: 0px 5px; font-size:14px;"  href="student_profile.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&student=<?php echo $WorkAssignListVal['student_id']; ?>" style="cursor:pointer;">
          <?php echo $WorkAssignListVal['first_name'];?></a></td>

      

      <td style="padding-left:1px;"> <?php echo $WorkAssignListVal['last_name'];?> </td>
      <td style="padding: 3px; text-align: center;"> <?php echo $WorkAssignListVal['ref_no']; ?> / <?php echo $WorkAssignListVal['candidate_roll_no']; ?> </td>
      <td style="padding: 3px; text-align: center;"> <?php echo $WorkAssignListVal['cell_no'];?> </td>
      <td style="text-align:center; padding: 3px;">
       <?php echo getClassName($m,$WorkAssignListVal['class_id']);?> / <?php echo getSectionName($m,$WorkAssignListVal['section_id']);?> </td>   
   
    
      
      </tr>


              <?php
      } ?>



           
            
           
        </tbody>
        
    </table>

</form>

    

</body>
</html>
