<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title></title>
	
	
	 <style>
        
        h1,h2,h3,h4,h5,h6{
            margin: 0;
            padding: 0;
        }
        p{
            margin: 0;
            padding: 0;
        }
        .container7{
            width: 100%;
            margin-right: auto;
            margin-left: auto;
			background-color: #F6F6F6;
			page-break-after: always;
        }
        .brand-section{
           background-color: #0059aa;
           padding: 10px 40px;
		   border: 1px solid gray;
		   height:87px;
        }
		.brand-section1{
           background-color: #F6F6F6;
           padding: 10px 40px;
		   font-size:3px;
		   border: 1px solid gray;
        }
		.wrd{
             text-align: left;
			font-size:12px;
        }
        .logo{
            width: 50%;
        }
		.tbl{
		background-color: #F6F6F6;	
		}

        .row{
            display: flex;
            flex-wrap: wrap;
        }
        .col-6{
            width: 60%;
            flex: 0 0 auto;
			/*background-color: #F6F6F6;*/
        }
        .text-white{
            color: #fff;
			font-size:10px;
        }
		.text-black{
			font-size:10px;
        }
        .company-details{
            float: right;
            text-align: right;
        }
        .body-section{
            padding: 16px;
            border: 1px solid gray;
			background-color: #F6F6F6;
        }
        .heading{
            font-size: 15px;
            margin-bottom: 08px;
        }
        .sub-heading{
            color: #262626;
            margin-bottom: 05px;
			padding-left:6px;
			font-size:7px;
			text-align:justify;
        }
        table{
            background-color: #fff;
            width: 100%;
            border-collapse: collapse;
        }
        table thead tr{
            border: 1px solid #111;
            background-color: #f2f2f2;
        }
        table td {
            vertical-align: middle !important;
            text-align: center;
        }
        table th, table td {
            padding-top: 08px;
            padding-bottom: 08px;
        }
        .table-bordered{
            box-shadow: 0px 0px 5px 0.5px gray;
        }
        .table-bordered td, .table-bordered th {
            border: 1px solid #dee2e6;
        }
        .text-right{
            text-align: end;
        }
        .w-15{
            width: 15%;
			text-align: left;
			font-size:10px;
        }
		
		.w-10{
            width: 10%;
			text-align: left;
			font-size:10px;
        }
		
		.w-30{
            width: 30%;
			text-align: left;
			font-size:10px;
        }
		.w-45{
            width: 45%;
			text-align: left;
			font-size:10px;
        }
		.w-20{
            width: 20%;
			text-align: left;
			font-size:10px;
        }
		.w-5{
            width: 5%;
			text-align: left;
			font-size:10px;
        }
        .float-right{
            float: right;
        }
    </style>

   </head>
   
   <body>
   
   <?php
  $sql81 = "SELECT staff.firstname,staff.middlename,staff.lastname,staff.staffId,status.name,gender.gender_name,staff.email,staff.phone_number,staff.birth_date,staff.emply_date,marital_status.marital_name,departments.depart_name,sections.sect_name,designation.des_name,designation.des_short_name,staff.BasicSalary,staff.NetPay,staff.taxableAmount,staff.EmployeeNhifContri,staff.EmployeeNssfContri,edu_level.eduName,staff.heslbBeneficiaryStatus FROM staff,marital_status,gender,designation,departments,sections,status,edu_level WHERE staff.staff_id = {$staff_id} and staff.gender_id=gender.gender_id and staff.marital_id=marital_status.marital_id and staff.dept_id=departments.dept_id and staff.des_id=designation.des_id and staff.sect_id=sections.sect_id and staff.status_id=status.status_id and edu_level.eduLevel_id=staff.eduLevel_id";
				$result81 = $conn->query($sql81);
				while($data81 = mysqli_fetch_array($result81))
							{
							$staffName = $data81['firstname']." ".$data81['middlename']." ".$data81['lastname'];
							$staffId = $data81['staffId'];
							$gender = $data81['gender_name'];
							$phoneNumber = $data81['phone_number'];
							$emailAddress = $data81['email'];
							$desName = $data81['des_name'];
							$deptName = $data81['depart_name'];
							$sectName = $data81['sect_name'];
							$birth_date = $data81['birth_date'];
							$emply_date = $data81['emply_date'];
							$maritalStatus = $data81['marital_name'];
							$status = $data81['name'];
							$eduName = $data81['eduName'];
							$heslbStatus = $data81['heslbBeneficiaryStatus'];
							$EmployeeNhifContri = number_format($data81['EmployeeNhifContri'],2);
							$EmployeeNssfContri = number_format($data81['EmployeeNssfContri'],2);
							$taxableAmount = number_format($data81['taxableAmount'],2);
							$netPay = number_format($data81['NetPay'],2);
							$BasicSalary = number_format($data81['BasicSalary'],2);
							$BSalary = $data81['BasicSalary'];
				            }
							
							if($heslbStatus==0){
							$HeslbAmount = 0; 	
							}else{
							$HeslbAmount = 0.15*$BSalary; 	
							}
							
				$birthDate = date('d-m-Y', strtotime($birth_date));
                $employmentDate = date('d-m-Y', strtotime($emply_date));			
							
				 $phone = substr($phoneNumber, 3);
	             $phone_number = '0'.$phone;
				 
				 $current_date = date("Y-m-d");
	                         $d1 = strtotime("$birth_date");
                             $d2 = strtotime("$current_date");
                             $min_date = min($d1, $d2);
                             $max_date = max($d1, $d2);
                                    $i = 0;
				while (($min_date = strtotime("+1 YEAR", $min_date)) <= $max_date) {
                                   $i++;
                                      }
									  $Year = $i;
									  $age=$Year;
									  
							if($age>0) {
									$age=$Year; 
										 
									 }else{
										 
						$d11 = strtotime("$birth_date");
                             $d22 = strtotime("$current_date");
                             $min_date = min($d11, $d22);
                             $max_date = max($d11, $d22);
                                    $i = 0;
				while (($min_date = strtotime("+1 MONTH", $min_date)) <= $max_date) {
                                   $i++;
                                      }					  
										  
								$Month = $i;		  
								$age1 = $Month.' '.'Months';
                                  
                                  if($age1>0){
									 $age =  $age1;
								      }else{
									$d111 = strtotime("$birth_date");
                             $d222 = strtotime("$current_date");
                             $min_date = min($d111, $d222);
                             $max_date = max($d111, $d222);
                                    $i = 0;
				while (($min_date = strtotime("+1 DAY", $min_date)) <= $max_date) {
                                   $i++;
                                      }	

                                $day = $i;		  
								$age1 = $day.' '.'Days';									  
								$age =  $age1;	  
									  }								  
										 
									 }
				 ?>
   
   
   <div class="container7">
        <div class="brand-section">
            <div class="row">
                <div class="col-6">
				
				<?php
			  //global $conn;
			  $sql362a = "SELECT company_details.logo FROM company_details";
              $result362a = $conn->query($sql362a);
			  $num362a = mysqli_num_rows($result362a);
			          if($num362a>0){
              while ($row362a = mysqli_fetch_array($result362a)){
						$image_urla = substr($row362a['logo'], 3);
						echo "<img src = ".$image_urla." width='40%' height='50px'>";
			                }
                            }
			  ?>	
                    <!--<h1 class="text-white">Kreen Logistics</h1>-->
                </div> 
                <div class="col-6">
                    <div class="company-details">
                        <p class="text-white">+255764508508</p>
						<p class="text-white">info@brightvision.co.tz</p>
						<p class="text-white">P O Box 105087</p>
						<p class="text-white">Dar es Salaam</p>
						<p class="text-white">Tanzania</p>
						<p class="text-white">TIN: 142002477</p>
						<p class="text-white">VRN: 40046025X</p>
                    </div>
                </div> 
            </div>
        </div>
		
			<div class="brand-section1">
            <div class="row">
			<table border="0" class="tbl" style="width:100%">
			   <tr>
			   <td style="width:100%">
                <div class="col-12">
                    <h1 class="text-black"><center>Staff File</center></h1>
                </div>
				</td>
			   </tr>
			</table>	
				
				
            </div>
        </div>

        <div class="body-section">
            <div class="row">
			   <table border="0" class="tbl" style="width:100%">
			   <tr>
			   <td style="width:60%">
                <div class="col-6">
                    <p class="sub-heading"><b>Staff Name:</b><?php print $staffName; ?></p>
                    <p class="sub-heading"><b>Staff Id:</b> <?php print $staffId; ?> </p>
                    <p class="sub-heading"><b>Staff Phone#:</b> <?php print $phone_number; ?> </p>
					<p class="sub-heading"><b>Staff Email:</b> <?php print $emailAddress; ?> </p>
					<p class="sub-heading"><b>Gender:</b> <?php print $gender; ?> </p>
					<p class="sub-heading"><b>Department:</b> <?php print $deptName; ?> </p>
					<p class="sub-heading"><b>Section:</b> <?php print $sectName; ?> </p>
					<p class="sub-heading"><b>Designation:</b> <?php print $desName; ?> </p>
					<p class="sub-heading"><b>Net Salary in Tsh:</b> <?php print $netPay; ?> </p>
					<p class="sub-heading"><b>Employee NSSF Contribution in Tsh:</b>  <?php print $EmployeeNssfContri; ?> </p>
					<p class="sub-heading"><b>Employee HESLB Contribution in Tsh:</b>  <?php print number_format($HeslbAmount,2); ?> </p>
                </div>
				</td>
				<td style="width:40%">
                <div class="col-6">
                    <p class="sub-heading"><b>Staff Birth Date:</b>  <?php print $birthDate; ?></p>
					<p class="sub-heading"><b>Age:</b>  <?php print $age; ?></p>
                    <p class="sub-heading"><b>Staff Employment Date:</b>  <?php print $employmentDate; ?> </p>
					<p class="sub-heading"><b>Marital Status:</b>  <?php print $maritalStatus; ?> </p>
					<p class="sub-heading"><b>Staff Status:</b>  <?php print $status; ?> </p>
					<p class="sub-heading"><b>Basic Salary in Tsh:</b>  <?php print $BasicSalary; ?> </p>
					<p class="sub-heading"><b>Taxable Amount in Tsh:</b>  <?php print $taxableAmount; ?> </p>
					<p class="sub-heading"><b>Employee NHIF Contribution in Tsh:</b>  <?php print $EmployeeNhifContri; ?> </p>
					<p class="sub-heading"><b>Highest Education Level Reached:</b>  <?php print $eduName; ?> </p>
                </div>
				</td>
				</tr>
				</table>
            </div>
        </div>

             <?php
			$procRequestSql33 = "SELECT * FROM staff_suspension WHERE staff_suspension.staff_id= {$staff_id}";
            $procRequestResult33 = $conn->query($procRequestSql33);
            $count1 = mysqli_num_rows($procRequestResult33);
             if($count1>0){		
			 ?>
      
           <div class="body-section">
            <h3 class="heading">Staff Suspension Details</h3>
            <br>
          
            <table class="table-bordered">
                <thead>
                    <tr>
					    <th class="w-5">S/N</th>
                        <th class="w-45">Suspension Date</th>
                        <th class="w-15">Suspension End Date</th>
                        <th class="w-20">Suspension Duration</th>
                        <th class="w-15">Remarks</th>
                    </tr>
                </thead>
                <tbody>
				
				<?php
  $procRequestSql = "SELECT staff_suspension.suspe_date,staff_suspension.deadline_date,staff_suspension.duration,staff_suspension.remarks FROM staff,staff_suspension WHERE staff.staff_id=staff_suspension.staff_id and staff.staff_id= {$staff_id}";
  $procRequestResult = $conn->query($procRequestSql);
                    $x = 1;
					$no = 1;
    while($procRequestData = $procRequestResult->fetch_array()){ 

    ?>
				
                    <tr>
					    <td class="wrd"><?php print $no;  ?></td>
                        <td class="wrd"><?php print date('d-m-Y', strtotime($procRequestData['suspe_date']));  ?></td>
						<td class="wrd"><?php print date('d-m-Y', strtotime($procRequestData['deadline_date']));  ?></td>
                        <td class="wrd"><?php print $procRequestData['duration'];  ?></td>
                        <td class="wrd"><?php print $procRequestData['remarks'];  ?></td>
                    </tr>
                    
					
				<?php
				$no++;
}
?>	
					
	
					
                </tbody>
            </table>


        </div>
		
		<?php
		}
		?>
		
		
		<?php
			$procRequestSql335 = "SELECT * FROM staff_permission WHERE staff_permission.staff_id= {$staff_id}";
            $procRequestResult335 = $conn->query($procRequestSql335);
            $count15 = mysqli_num_rows($procRequestResult335);
             if($count15>0){		
			 ?>
      
           <div class="body-section">
            <h3 class="heading">Staff Permission Details</h3>
            <br>
          
            <table class="table-bordered">
                <thead>
                    <tr>
					    <th class="w-5">S/N</th>
                        <th class="w-45">Permission Date</th>
                        <th class="w-15">Permission End Date</th>
                        <th class="w-20">Permission Duration</th>
                        <th class="w-15">Remarks</th>
                    </tr>
                </thead>
                <tbody>
				
				<?php
  $procRequestSql8 = "SELECT staff_permission.perm_date,staff_permission.permend_date,staff_permission.duration,staff_permission.remarks FROM staff,staff_permission WHERE staff.staff_id=staff_permission.staff_id and staff.staff_id= {$staff_id}";
  $procRequestResult8 = $conn->query($procRequestSql8);
                    $x = 1;
					$no = 1;
    while($procRequestData8 = $procRequestResult8->fetch_array()){ 

    ?>
				
                    <tr>
					    <td class="wrd"><?php print $no;  ?></td>
                        <td class="wrd"><?php print date('d-m-Y', strtotime($procRequestData8['perm_date']));  ?></td>
						<td class="wrd"><?php print date('d-m-Y', strtotime($procRequestData8['permend_date']));  ?></td>
                        <td class="wrd"><?php print $procRequestData8['duration'];  ?></td>
                        <td class="wrd"><?php print $procRequestData8['remarks'];  ?></td>
                    </tr>
                    
					
				<?php
				$no++;
}
?>	
					
	
					
                </tbody>
            </table>


        </div>
		
		<?php
		}
		?>
		
		
		      <?php
			$procRequestSql331 = "SELECT * FROM staff_warnings WHERE staff_warnings.staff_id= {$staff_id}";
            $procRequestResult331 = $conn->query($procRequestSql331);
            $count2 = mysqli_num_rows($procRequestResult331);
             if($count2>0){		
			 ?>
      
           <div class="body-section">
            <h3 class="heading">Staff Warning Details</h3>
            <br>
          
            <table class="table-bordered">
                <thead>
                    <tr>
					    <th class="w-10">S/N</th>
                        <th class="w-45">Warning Date</th>
                        <th class="w-45">Remarks</th>
                    </tr>
                </thead>
                <tbody>
				
				<?php
  $procRequestSql1 = "SELECT staff_warnings.warning_date,staff_warnings.remarks FROM staff,staff_warnings WHERE staff.staff_id=staff_warnings.staff_id and staff.staff_id= {$staff_id}";
  $procRequestResult1 = $conn->query($procRequestSql1);
                    $x = 1;
					$no = 1;
    while($procRequestData1 = $procRequestResult1->fetch_array()){ 

    ?>
				
                    <tr>
					    <td class="wrd"><?php print $no;  ?></td>
                        <td class="wrd"><?php print date('d-m-Y', strtotime($procRequestData1['warning_date']));  ?></td>
                        <td class="wrd"><?php print $procRequestData1['remarks'];  ?></td>
                    </tr>
                    
					
				<?php
				$no++;
}
?>	
					
	
					
                </tbody>
            </table>


        </div>
		
		<?php
		}
		?>
		
		   <?php
			$procRequestSql332 = "SELECT * FROM staff_termination WHERE staff_termination.staff_id= {$staff_id}";
            $procRequestResult332 = $conn->query($procRequestSql332);
            $count3 = mysqli_num_rows($procRequestResult332);
             if($count3>0){		
			 ?>
      
           <div class="body-section">
            <h3 class="heading">Staff Termination Details</h3>
            <br>
          
            <table class="table-bordered">
                <thead>
                    <tr>
					    <th class="w-10">S/N</th>
                        <th class="w-45">Termination Date</th>
                        <th class="w-45">Remarks</th>
                    </tr>
                </thead>
                <tbody>
				
				<?php
  $procRequestSql2 = "SELECT staff_termination.termination_date,staff_termination.remarks FROM staff,staff_termination WHERE staff.staff_id=staff_termination.staff_id and staff.staff_id= {$staff_id}";
  $procRequestResult2 = $conn->query($procRequestSql2);
                    $x = 1;
					$no = 1;
    while($procRequestData2 = $procRequestResult2->fetch_array()){ 

    ?>
				
                    <tr>
					    <td class="wrd"><?php print $no;  ?></td>
                        <td class="wrd"><?php print date('d-m-Y', strtotime($procRequestData2['termination_date']));  ?></td>
                        <td class="wrd"><?php print $procRequestData2['remarks'];  ?></td>
                    </tr>
                    
					
				<?php
				$no++;
}
?>	
					
	
					
                </tbody>
            </table>


        </div>
		
		<?php
		}
		?>
		
		   <?php
			$procRequestSql3321 = "SELECT * FROM leaves WHERE leaves.staff_id= {$staff_id}";
            $procRequestResult3321 = $conn->query($procRequestSql3321);
            $count31 = mysqli_num_rows($procRequestResult3321);
             if($count31>0){		
			 ?>
      
           <div class="body-section">
            <h3 class="heading">Staff Leaves Details</h3>
            <br>
          
            <table class="table-bordered">
                <thead>
                    <tr>
					<th class="w-10">S/N</th>
					<th class="w-15">Leave Type </th>
					<th class="w-15">Leave Start Date</th>
					<th class="w-15">Leave End Date</th>
					<th class="w-15">Leave Duration</th>
					<th class="w-15">Remarks</th>
					<th class="w-15">Leave Status</th>
                    </tr>
                </thead>
                <tbody>
				
				<?php
  $procRequestSql21 = "SELECT leaves.leavestartDate,leaves.leaveendDate,leaves.remarks,leave_type.type,leave_type.duration from leaves,leave_type WHERE leaves.leaveType_id=leave_type.leaveType_id and leaves.staff_id='$staff_id' order by leaves.leavestartDate desc";
  $procRequestResult21 = $conn->query($procRequestSql2);
                    $x = 1;
					$no = 1;
    while($procRequestData21 = $procRequestResult21->fetch_array()){ 
          $leaveEndDate = $procRequestData21['leaveendDate'];
		  $leave_endDate = date('d-m-Y', strtotime($leaveEndDate));
	      $currentDate = date("Y-m-d");
		  
		  			if($leaveEndDate>$currentDate){
					
					
		$d1m = strtotime("$currentDate");
                             $d2m = strtotime("$leave_endDate");
                             $mindate = min($d1m, $d2m);
                             $maxdate = max($d1m, $d2m);
                                    $i = 0;
				while (($mindate = strtotime("+1 YEAR", $mindate)) <= $maxdate) {
                                   $i++;
                                      }
									  $Ye_ar = $i;
									  $ag_e=$Ye_ar;
									  
							if($ag_e>0) {
									$ag_e=$Ye_ar; 
										 
									 }else{
										 
						$d11m = strtotime("$currentDate");
                             $d22m = strtotime("$leave_endDate");
                             $mindate = min($d11m, $d22m);
                             $maxdate = max($d11m, $d22m);
                                    $i = 0;
				while (($mindate = strtotime("+1 MONTH", $mindate)) <= $maxdate) {
                                   $i++;
                                      }					  
										  
								$Mon_th = $i;		  
								$ag_e1 = $Mon_th.' '.'Months';
                                  
                                  if($Mon_th>0){
									 $ag_e =  $ag_e1;
								      }else{
									$d111m = strtotime("$currentDate");
                             $d222m = strtotime("$leave_endDate");
                             $mindate = min($d111m, $d222m);
                             $maxdate = max($d111m, $d222m);
                                    $i = 0;
				while (($mindate = strtotime("+1 DAY", $mindate)) <= $maxdate) {
                                   $i++;
                                      }	

                                $da_y = $i;		  
								$ag_e1 = $da_y.' '.'Days';									  
								$ag_e =  $ag_e1;	  
									  }								  
										 
									 }			
					
					
					
					
		$st = $ag_e." "."Left";
	}else if($leaveEndDate==$currentDate){
		$st = "Leave End";
	}else{
		$st = "Leave End";
	}
    ?>
				
                    <tr>
					    <td class="wrd"><?php print $no;  ?></td>
                        <td class="wrd"><?php print $procRequestData21['type'];  ?></td>
						<td class="wrd"><?php print $procRequestData21['leavestartDate'];  ?></td>
						<td class="wrd"><?php print $procRequestData21['leaveendDate'];  ?></td>
						<td class="wrd"><?php print $procRequestData21['duration'];  ?></td>
						<td class="wrd"><?php print $procRequestData21['remarks'];  ?></td>
						<td class="wrd"><?php print $st;  ?></td>
                    </tr>
                    
					
				<?php
				$no++;
}
?>	
					
	
					
                </tbody>
            </table>


        </div>
		
		<?php
		}
		?>
		
		
		
		 <?php
			$procRequestSql33219 = "SELECT * FROM staff_contracts WHERE staff_id= {$staff_id}";
            $procRequestResult33219 = $conn->query($procRequestSql33219);
            $count319 = mysqli_num_rows($procRequestResult33219);
             if($count319>0){		
			 ?>
      
           <div class="body-section">
            <h3 class="heading">Staff Contracts</h3>
            <br>
          
            <table class="table-bordered">
                <thead>
                    <tr>
					<th class="w-10">S/N</th>
					<th class="w-30">Contract Start </th>
					<th class="w-30">Contract End</th>
					<th class="w-30">Duration In Months</th>
                    </tr>
                </thead>
                <tbody>
				
				<?php
  $procRequestSql219 = "SELECT * from staff_contracts WHERE staff_id='$staff_id' order by contract_id desc";
  $procRequestResult219 = $conn->query($procRequestSql29);
                    $x = 1;
					$no = 1;
    while($procRequestData219 = $procRequestResult219->fetch_array()){ 
          $contStart = $procRequestData219['contract_start'];
		  $contEnd = $procRequestData219['contract_end'];
		  $duration = $procRequestData219['duration'];
		  $cont_startDate = date('d-m-Y', strtotime($contStart));
		  $cont_endDate = date('d-m-Y', strtotime($contEnd));
	      $currentDate = date("Y-m-d");
		  
		  			
    ?>
				
                    <tr>
					    <td class="wrd"><?php print $no;  ?></td>
                        <td class="wrd"><?php print $contStart;  ?></td>
						<td class="wrd"><?php print $contEnd;  ?></td>
						<td class="wrd"><?php print $duration;  ?></td>
                    </tr>
                    
					
				<?php
				$no++;
}
?>	
					
	
					
                </tbody>
            </table>


        </div>
		
		<?php
		}
		?>
		
		
		
	 <?php
			$procRequestSql332191 = "SELECT * FROM edu_background WHERE staff_id= {$staff_id}";
            $procRequestResult332191 = $conn->query($procRequestSql332191);
            $count3191 = mysqli_num_rows($procRequestResult332191);
             if($count3191>0){		
			 ?>
      
           <div class="body-section">
            <h3 class="heading">Staff Education Background</h3>
            <br>
          
            <table class="table-bordered">
                <thead>
                    <tr>
					<th class="w-10">S/N</th>
					<th class="w-30">Education Level </th>
					<th class="w-30">Institution Name</th>
					<th class="w-30">Education Period</th>
                    </tr>
                </thead>
                <tbody>
				
				<?php
  $procRequestSql2191 = "SELECT * from edu_backgroud,edu_level WHERE staff_id='$staff_id' and edu_backgroud.eduLevel_id=edu_level.eduLevel_id order by edu_backgroud.eduback_id desc";
  $procRequestResult2191 = $conn->query($procRequestSql291);
                    $x = 1;
					$no = 1;
    while($procRequestData2191 = $procRequestResult2191->fetch_array()){ 
          $instName = $procRequestData2191['inst_name'];
		  $eduPeriod = $procRequestData2191['edu_period'];
		  $eduName = $procRequestData2191['eduName'];
    ?>
				
                    <tr>
					    <td class="wrd"><?php print $no;  ?></td>
                        <td class="wrd"><?php print $eduName;  ?></td>
						<td class="wrd"><?php print $instName;  ?></td>
						<td class="wrd"><?php print $eduPeriod;  ?></td>
                    </tr>
                    
					
				<?php
				$no++;
}
?>	
					
	
					
                </tbody>
            </table>


        </div>
		
		<?php
		}
		?>	
		
             
    </div>
	
	<div style="page-break-inside: avoid;">
	
	
	</div>
   
 		  
</body>
</html>	
			  
		
		
 
  
		
			  
			  
			  
			  
			  
			  
			  
			  
			  
  
		
			  
  
		
			  
			  
			  
		
		
 
  
		
			  
			  
			  
		
		
 
  
		
			  
			  
			  
			  
		
		
 
  
		
			  
			  
			  
			  
			 
			  
			  
			  
			 
 
		
			  
			  
			  
			  
		
 
  	  
			  
			  
			 
			  
			  
			  
			  
				 
				 
   
   