<?php include "layouts/menu.php"; ?> 
  <?php $hpl=$_REQUEST['hpl'];?>
  <?php $name=$_REQUEST['name'];?> 
  <!--  page-wrapper -->
         <div class="right_col" role="main">
        
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                     
                        <div class="panel-body">
                            <div class="row">
        <div id="mydiv">
  <input type="button" value="Print" onclick="PrintElem('#mydiv')"  style="margin:20px;">
     <div class="alert alert-info">Employee Details</div>
  
                    <form name="form1" method="post" action="" enctype="multipart/form-data">
						<?php
						$qry=mysqli_query($conn, "select * from customer where  code='$hpl'");
						?>
					<?php 
					$row=mysqli_fetch_array($qry)
					?>
					<table class="table table-striped" >
					<col width="150px">
					<tbody style="color:#FF0080;background:white;">
					    <tr>
						<td style="background-color:#FFAAAA;">Photo</td>
						<td style="background-color:#FFD4FF;"><img src="user/<?php echo $row['uimg'];?>" width="120" height="120"/></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Name</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['name'];?></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Father/Spouse Name</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['fname'];?></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Address</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['id'];?></td>
						</tr>
						
      					
						<tr>
						<td style="background-color:#FFAAAA;">Previous year of Experience</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['exp'];?></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Education Qualification</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['edu'];?></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Total year/month of Experience</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['year'];?></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Co-curricular Activities</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['act'];?></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Mobile No</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['mno'];?></td>
						</tr>
						
						<td style="background-color:#FFAAAA;">Joining Date</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['yearr'];?></td>
						</tr>
						
						
						
						<tr>
						<td style="background-color:#FFAAAA;">Login Time Fromt</td>
						<td style="background-color:#FFD4FF;"><?php echo $row['timef'];?></td>
						</tr>
						<tr>
						<td style="background-color:#FFAAAA;">Login Time To</td>
<td style="background-color:#FFD4FF;"><?php echo $row['timet'];?></td>						</tr>
						
						
						
							<div class="alert alert-warning">
							<?php
							if(isset($_POST['s1']))
							{
								extract($_POST);
								$qry=mysqli_query($conn, "select * from customer where mfin='$mfin' &&  hpl='$hpl'");
								$n=mysqli_num_rows($qry);
								if($n==0)
									{
										echo"Already Deleted";
									}
								else		
									{
										$delete=mysqli_query($conn, "delete from customer where mfin='$mfin' &&  hpl='$hpl'");
										if($delete)
										{
										echo"Deleted";
										}
										else
										{
										echo "Try Again";
										}
									}
							}			
							
						   
								
?>							</div>
																
																
					</tbody>
					<?php
					
				
			?>			
					</table>
					</form>
 </div>
</div></div>
</div></div></div> <?php include "layouts/footer.php"; ?></body></html>
