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

<?php 
$branch=getBranch($m);
$branchId=$_SESSION['branch'];

$month_id=$_REQUEST['month_id'];
$FamilyCode=$_REQUEST['familyCode'];

$sql = " select * from edu_student_details  where status='0' AND branch_id='$branchId' AND cell_no='$FamilyCode'";


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

 $count=count($WorkAssignListings);

  $m->where("class_id", $WorkAssignListings[0]['class_id']);
  $class_fee = $m->get("eduportal_class_fee_details");
  $class_standerd_fee=$class_fee[0]['tution_fee'];


  $totalFine=$brid[0]['late_fee_fine']*$count;

?>
 <!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">
<!-- Favicons-->
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />
<title>Print Double Voucher</title>
<!-- Favicons-->
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />

<script type="text/javascript">
 //window.print();
</script>
<style> 
.section{width:45%; height:auto;float:left;padding-right:2%;margin-left:2%;margin-top:2%;}
     
tr th {background-color:gray; text-align:center;font-size:12px;border:1px solid black;padding:0.5%;}
tr td {border-bottom:1px solid black;border-left:1px solid black;padding:0.5%;}

@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;
  }
}
</style>
</head>
<body>
<?php

 $array1=array("Institute Copy","Student Copy");

 for($i=0; $i<2;$i++){ ?>

 <!-- Vouchere Fist -->
<div class="section" style="<?php if($i<1){echo 'border-right: 2px solid black;border-right-style:dotted;';}?>">
   
   <div style="width:100%; text-align:center; height:auto;font-size:12px;">
            <?php echo $array1[$i]; ?>

   </div>
   
      <div style="">
        
        <div style="width: 15%;float: left;">
            <img src="<?php echo DOMAIN.AgentDirectory;?>img/<?php echo $branch[0]['logo']; ?>" style="height:60px;width:60px;" />    
        </div>
        <div style="width:85%;font-size:18px;float: right;margin-top: 25px;text-align:center;"><?php echo $branch[0]['Branch_Name'];?></div>

      </div>
      <div style="font-size:10px; text-align:center;">  <?php echo $branch[0]['Branch_Location'];?> <br><span>Contact: <?php echo $branch[0]['branch_contact'];?></span></div>
 <br>
     <div style="font-size:12px;text-align:center;">  <strong> <u> Fee Voucher </u>  </strong> </div>


   <div style="width:50%; font-size:10px;text-align:left; height:25px; float:left;">

         Voucher No : <?php echo $WorkAssignValue[$counter]['month_id']."-".$WorkAssignValue[$counter]['challan_id'];?>


   </div>


   <div style="width:50%;font-size:10px; text-align:right; height:25px; float:left;">


         Issued : <?php echo date("d-M-Y");?>

   </div>



<table width="100%" style="font-size:11px;" cellspacing="0">  
      
      <tr>  
         <td width="15%" style="border:none;"> Family Name:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;">  <?php echo $_REQUEST['familyName'];?>  </td>
      
         <td width="15%" style="border:none;"> Family Code:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;">  <?php echo $_REQUEST['familyCode']." / ".$WorkAssignListings[0]['family_code'];?>  </td>

      </tr>


      <tr>  
         <td width="15%" style="border:none;"> Month/Session:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;"> 
         <?php echo getMonthName($m,date("m"));?>/<?php echo getSessionName($m,$_SESSION['current_session']);?></td>

         <td width="15%" style="border:none;"> Due Date:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;"> 
         <?php 

               $sql = " select * from eduportal_monthly_challan where month_id='$month_id' AND 
         branch_id='$branchId' AND student_id='".$WorkAssignListings[0]['student_id']."' AND session_id='".$_SESSION['current_session']."' ";
         //print_r($sql);
         $due_data = $m->query($sql);

         echo date("d-M-Y",strtotime($due_data[0]['challan_duedate']));?></td>
      

      </tr>

 </table>




   <table width="100%" style="font-size:11px;margin-top:1%;" cellspacing="0">  
   

      <tr>  
         <th width="30%"> Particulars  </th>
         <?php foreach ($WorkAssignListings as $WorkAssignListVal) { ?>
           <th width="15%"> <?php echo $WorkAssignListVal['first_name'];?>  </td>
        <?php  } ?>        
         
      </tr>

      <tr style="background-color: lightgray;">  
         <td> Class / sec   </td>
         <?php foreach ($WorkAssignListings as $WorkAssignListVal) {


          $m->where("class_id", $WorkAssignListVal['class_id']);
          $className=$m->get("edu_class_config");

          $m->where("section_id", $WorkAssignListVal['section_id']);
          $secName=$m->get("edu_adm_section_detail");
          ?>
         

         <td style="text-align:center;border-right:1px solid gray;">  <?php echo $className[0]['Class_Name']."/".$secName[0]['section_name'];?> </td>

       <?php } ?>
      </tr>

      <tr style="background-color: lightgray;">  
         <td> Roll No   </td>
         <?php foreach ($WorkAssignListings as $WorkAssignListVal) {

          ?>
         

         <td style="text-align:center;border-right:1px solid gray;">  <?php echo $WorkAssignListVal['candidate_roll_no'];?> </td>

       <?php } ?>
      </tr>

    
   

       <tr>  
         <td> Balance   </td>
         <?php foreach ($WorkAssignListings as $WorkAssignListVal) {

$sql = " select * from eduportal_monthly_challan where month_id='$month_id' AND 
branch_id='$branchId' AND student_id='".$WorkAssignListVal['student_id']."' AND session_id='".$_SESSION['current_session']."' ";
//print_r($sql);
$data = $m->query($sql);


          ?>
         

         <td style="text-align:center;border-right:1px solid gray;">  <?php echo $data[0]['balance'];?> </td>

       <?php } ?>
      </tr>

       <tr>  
         <td> Monthly Fee   </td>      
         <?php foreach ($WorkAssignListings as $WorkAssignListVal) {

   $sql = " select * from eduportal_monthly_challan where month_id='$month_id' AND 
branch_id='$branchId' AND student_id='".$WorkAssignListVal['student_id']."' AND session_id='".$_SESSION['current_session']."' ";
//print_r($sql);
$data = $m->query($sql);


 ?>

         <td style="text-align:center;border-right:1px solid gray;">  <?php echo $data[0]['tutionfee'];?> </td>

       <?php } ?>
      </tr>





<?php if ($branch[0]['transport_status']=='0') { ?>
<tr>  
<td> <?php if ($branch[0]['transport_title']!=NULL){echo $branch[0]['transport_title'];} else {echo 'Transport Fee';} ?></td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) {

$sql = " select * from eduportal_monthly_challan where month_id='$month_id' AND 
branch_id='$branchId' AND student_id='".$WorkAssignListVal['student_id']."' AND session_id='".$_SESSION['current_session']."' ";
//print_r($sql);
$data = $m->query($sql);

?>

<td style="text-align:center;border-right:1px solid gray;">  <?php echo $data[0]['transportfee'];?> </td>

<?php } ?>
</tr>
<?php } ?>








<?php if ($branch[0]['misc_status']=='0') { ?>
<tr>  
<td> <?php if ($branch[0]['misc_title']!=NULL){echo $branch[0]['misc_title'];}else {echo 'Miscellaneous';} ?>  </td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 

$sql = " select * from eduportal_monthly_challan where month_id='$month_id' AND 
branch_id='$branchId' AND student_id='".$WorkAssignListVal['student_id']."' AND session_id='".$_SESSION['current_session']."' ";
//print_r($sql);
$data = $m->query($sql);
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $data[0]['misc_fee'];?> </td>

<?php } ?>
</tr>
<?php } ?>







<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='1'";     
$feeHeads1 = $m->query($query11);
?>
<?php if ($feeHeads1[0]['status']=='0') { ?>
<tr>  
<td> <?php if ($feeHeads1[0]['fee_head_title']!=NULL){echo $feeHeads1[0]['fee_head_title'];} else {echo "Admission Fee";} ?></td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) {
// $m->where("feetype_id", 1);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas); 
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],1,$m);?> </td>

<?php }   ?>
</tr>
<?php } ?>





<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='2'";
$feeHeads2 = $m->query($query11);
?>
<?php if ($feeHeads2[0]['status']=='0') { ?>

<tr>  
<td> <?php if ($feeHeads2[0]['fee_head_title']!=NULL){echo $feeHeads2[0]['fee_head_title'];} else {echo "Paper Fund";} ?></td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 

//$m->where("feetype_id", 2);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],2,$m);?> </td>
<?php }   ?>
</tr>
<?php } ?>





<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='3'";     
$feeHeads3 = $m->query($query11);
?>
<?php if ($feeHeads3[0]['status']=='0') { ?>
 
<tr>  
<td> <?php if ($feeHeads3[0]['fee_head_title']!=NULL){echo $feeHeads3[0]['fee_head_title'];} else {echo "Uniform/Card Fee";} ?>   </td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 

// $m->where("feetype_id", 3);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],3,$m);?> </td>
<?php }   ?>
</tr>
<?php } ?>






<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='4'";     
$feeHeads4 = $m->query($query11);
?>
<?php if ($feeHeads4[0]['status']=='0') { ?>

<tr>  
<td> <?php if ($feeHeads4[0]['fee_head_title']!=NULL){echo $feeHeads4[0]['fee_head_title'];} else {echo "Stationery";} ?></td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 

//$m->where("feetype_id", 4);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],4,$m);?> </td>

<?php } ?>
</tr>
<?php } ?>






<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='5'";     
$feeHeads5 = $m->query($query11);
?>
<?php if ($feeHeads5[0]['status']=='0') { ?>  
<tr>  
<td> <?php if ($feeHeads5[0]['fee_head_title']!=NULL){echo $feeHeads5[0]['fee_head_title'];} else {echo "Other Fee";} ?></td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 

//$m->where("feetype_id", 5);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>

<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],5,$m);?> </td>

<?php } ?>
</tr>
<?php } ?>






<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='6'";     
$feeHeads6 = $m->query($query11);
?>
<?php if ($feeHeads6[0]['status']=='0') { ?>

<tr>  
<td> <?php if ($feeHeads6[0]['fee_head_title']!=NULL){echo $feeHeads6[0]['fee_head_title'];} else {echo "Registration Fee";} ?></td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 

//$m->where("feetype_id", 5);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],6,$m);?> </td>
<?php } ?>
</tr>
<?php } ?>






<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='7'";     
$feeHeads7 = $m->query($query11);
?>
<?php if ($feeHeads7[0]['status']=='0') { ?>
<tr>  
<td> <?php if ($feeHeads7[0]['fee_head_title']!=NULL){echo $feeHeads7[0]['fee_head_title'];} else {echo "Security Fee";} ?> </td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 


//$m->where("feetype_id", 5);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>

<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],7,$m);?> </td>

<?php }   ?>
</tr>
<?php } ?>







<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='8'";     
$feeHeads8 = $m->query($query11);
?>

<?php if ($feeHeads8[0]['status']=='0') { ?>
<tr>  
<td> <?php if ($feeHeads8[0]['fee_head_title']!=NULL){echo $feeHeads8[0]['fee_head_title'];} else {echo "Annual Fund";} ?> </td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 

//$m->where("feetype_id", 5);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>

<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],8,$m);?> </td>

<?php } ?>
</tr>
<?php } ?>









<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='9'";     
$feeHeads9 = $m->query($query11);
?>

<?php if ($feeHeads9[0]['status']=='0') { ?>
<tr>  
<td> <?php if ($feeHeads9[0]['fee_head_title']!=NULL){echo $feeHeads9[0]['fee_head_title'];} else {echo "Books Pack";} ?> </td>   

<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 
//$m->where("feetype_id", 5);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],9,$m);?> </td>

<?php } ?>
</tr>
<?php } ?>










<?php 
$query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchId' and fee_head_id='10'";     
$feeHeads10 = $m->query($query11);
?>

<?php if ($feeHeads10[0]['status']=='0') { ?>
<tr>  
<td> <?php if ($feeHeads10[0]['fee_head_title']!=NULL){echo $feeHeads10[0]['fee_head_title'];} else {echo "Proc. Fee";} ?> </td>   

<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 
//$m->where("feetype_id", 5);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month_id']);
$datas=$m->get("eduportal_monthly_challan");                  
//print_r($datas);              
?>
<td style="text-align:center;border-right:1px solid gray;">  <?php echo $fees=getFeeOfOtherParameter($datas[0]['student_id'],$datas[0]['challan_id'],10,$m);?> </td>

<?php } ?>
</tr>
<?php } ?>






<tr>  
<td> Fee Discount   </td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) { 


$sql = " select * from eduportal_monthly_challan where month_id='$month_id' AND 
branch_id='$branchId' AND student_id='".$WorkAssignListVal['student_id']."' AND session_id='".$_SESSION['current_session']."' ";
$data = $m->query($sql);


?>

<td style="text-align:center;border-right:1px solid gray;">  <?php  

$disc_amount=$data[0]['disc_amount'];

echo $disc_amount;?> </td>

<?php }   ?>
</tr>


<tr>  
<td> Total   </td>      
<?php foreach ($WorkAssignListings as $WorkAssignListVal) {

$sql1 = " select * from eduportal_monthly_challan where month_id='$month_id' AND 
branch_id='$branchId' AND student_id='".$WorkAssignListVal['student_id']."' AND session_id='".$_SESSION['current_session']."' ";
$data1 = $m->query($sql1);
//print_r($sql1);
$adm=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],1,$m);
$papr=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],2,$m);
$uniform=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],3,$m);
$stati=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],4,$m);
$oth=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],5,$m);
$reg=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],6,$m);
$secu=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],7,$m);
$annual=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],8,$m);
$bkPk=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],9,$m);
$ProFee=getFeeOfOtherParameter($data1[0]['student_id'],$data1[0]['challan_id'],10,$m);

$other_fees=$adm+$papr+$uniform+$stati+$oth+$reg+$secu+$annual+$bkPk+$ProFee;
$totalAM=$data1[0]['balance']+$data1[0]['tutionfee']+$data1[0]['transportfee']+$data1[0]['misc_fee']+ $other_fees + $fee_fine;
$total_month_fee=$totalAM-$data1[0]['disc_amount'];

$collectFine+=$data1[0]['collected_fine'];
$paidAM+=$data1[0]['collected_amount'];
$paidAgainAM+=$data1[0]['paid_again_amount'];

?>

<td style="text-align:center;border-right:1px solid gray;">  <?php

//$m->where("feetype_id", 1);
$m->where("student_id", $WorkAssignListVal['student_id']);
$m->where("session_id", $_REQUEST['session']);
$m->where("month_id", $_REQUEST['month']);
$datas1=$m->get("eduportal_monthly_challan");

$adm=getFeeOfOtherParameter($datas1[0]['student_id'],$datas1[0]['challan_id'],1,$m);
$papr=getFeeOfOtherParameter($datas1[0]['student_id'],$datas1[0]['challan_id'],2,$m);
$lib=getFeeOfOtherParameter($datas1[0]['student_id'],$datas1[0]['challan_id'],3,$m);
$lab=getFeeOfOtherParameter($datas1[0]['student_id'],$datas1[0]['challan_id'],4,$m);
$othr=getFeeOfOtherParameter($datas1[0]['student_id'],$datas1[0]['challan_id'],5,$m);





$otherFee=$adm+$papr+$lib+$lab+$othr;

$total+=$total_month_fee+$otherFee;
echo $total_month_fee+$otherFee;?> </td>

<?php }   ?>
</tr>
  


      <tr>  
         <th colspan="1">Total</th>       
        
         <th colspan="<?php echo $count;?>" style="text-align:center;border-right:1px solid gray;">
          <?php echo number_format($total,2);?></th>
         
      </tr>


      <tr>  

         <th width="70%" style="text-align:right;font-size: 10px;"> Late Fee Fine Per Student: &nbsp;&nbsp;</th>
         <th colspan="<?php echo $count;?>" width="30%" style="text-align:center;">  <?php echo $brid[0]['late_fee_fine'];?> </th>
      </tr>


      <tr>  

         <th width="70%" style="text-align:right;font-size: 10px;"> After Due Date: &nbsp;&nbsp;</th>
         <th colspan="<?php echo $count;?>" width="30%" style="text-align:center;">  <?php echo number_format($total+$totalFine,2);?> </th>
      </tr>

         
  
      <tr>  

         <th width="70%" style="text-align:right;font-size: 10px;"> Paid Amount: &nbsp;&nbsp;</th>
         <th colspan="<?php echo $count;?>" width="30%" style="text-align:center;">  <?php echo number_format($paidAM+$paidAgainAM+$collectFine,2); ?> </th>
      </tr>
   
      <tr>  
         <th width="70%" style="text-align:right;"> Remaining: &nbsp;&nbsp;  </th>
         <th colspan="<?php echo $count;?>" width="30%" style="text-align:center; ">  <?php echo number_format(($total)-$paidAM-$paidAgainAM,2); ?> </th>
      </tr>
     

<?php  $total=0; $paidAM=0; $paidAgainAM=0; $collectFine=0; ?>
  

       <tr>  
         <td width="100%" colspan="3" style=""> <br> 
         
 
      <?php if($branch[0]['fee_vouc_note']!=NULL){

          echo $branch[0]['fee_vouc_note'];
        ?>
      
      <?php }else { ?>
          Defaulters of two or more months will be expelled out. 
      <?php } ?>
  
          </td>
         
      </tr>
      
   
   </table>



   <table width="100%" style="font-size:11px;" cellspacing="0">  
   
   
         <tr>  
         <td width="100%" colspan="2" style="text-align:center;border-left:none;color:white;"> .  </td>
         
         </tr>

         <tr>  
         <td width="100%" colspan="2" style="text-align:center;border:none;color:black;"> (Signature & Stamp) <br>
            
            <span style="font-size:8px;"> <?php //echo getPrintBottom($m);?>  </span>

          </td>
         
         </tr>
   </table>

</div>


</div>


<?php } ?>

</body>
</html>
