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

    if($_REQUEST['emp']!=NULL){

     $m->where("status", '0');
     $m->where("branch_id", $_SESSION['branch']);
     $m->where("user_id", $_REQUEST['emp']);
     $WorkAssignListVal = $m->get("edu_user_config");

//print_r($WorkAssignListVal);

	   $m->where("designation_id", $WorkAssignListVal[0]['designation_id']);
     $designation=$m->get("eduportal_designation_config");

     $m->where("department_id", $WorkAssignListVal[0]['department_id']);
     $department=$m->get("eduportal_hrm_department_config");

    
  
     }
       // getting branch details

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



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

<script type="text/javascript">
   //window.print();
</script>

<style>
.fieldStyle{border-bottom: 1px solid black;text-align:center;}
.tdStyle{border-bottom:1px solid black;}

.section{width:100%;float:left;margin:0 auto;padding:2%;margin-left:1%;}
 
 tr td {
    
    padding:1%;
    text-align:left;
 }

  tr th {
    
    padding:2%;
    border:1px solid black;
    color:black;
    background-color:gray;
 }
.tdalign{text-align:center;border:1px solid black;}
  

</style>

  <style>

      body {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background-color: white;
        font: 12pt "Tahoma";
    }
    * {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
    .page {
        width: 297mm;
        height:auto;        
        padding: 1mm;
        margin: 10mm auto;
        /*border: 1px #D3D3D3 solid;*/
        border-radius: 5px;
        background: white;
        /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);*/
    }
    .subpage {
        width: 285mm;
        height:auto;
        
    }
    
    @page {
        size: A4 portrait; 
        margin: 0;
    }
    @media print {
        html, body {
            width:297mm;
            height:auto;        
        }
        .page {
            margin: 0;
            border: initial;
            border-radius: initial;
            width: initial;
            min-height: initial;
            box-shadow: initial;
            background: initial;
            page-break-after: blue;
        }
    }


  </style>


</head>
<body>



  <div class="book">
    <div class="page">
        <div class="subpage">






 <!-- Vouchere Fist -->
<div class="section">
   

   <div style="width:100%; text-align:center; height:80px;float:left;">




      <div style="width:20%;font-size:13px;text-align:center;float:left;height:80px;">

         <img src="<?php echo DOMAIN;?>Production//img/<?php echo $branch[0]['logo']; ?>" style="height:100px;width:100px;" />

      </div>


      
      <div style="width:60%; float:left;">

         <span style="font-size:30px; text-align:center;font-family:impact;">  <?php echo $branch[0]['Branch_Name'];?> </span>

         <br><br>


         <span style="font-size:14px; text-align:center;">  <?php echo $branch[0]['Branch_Location']." Cell: ".$branch[0]['school_logo'];?> </span>


      </div>


      <div style="font-size:15px;text-align:center;float:right;width:120px;height:120px;">

           <?php if($WorkAssignListVal[0]['attach_image']!=NULL){ ?>
      
      <img src="<?php echo DOMAIN;?>Production//staff_pics/<?php echo $WorkAssignListVal[0]['attach_image'];?>" id="preview" class="img-thumbnail" style="width:120px;height:120px;"   />

       <?php }else { ?>   

           <img src="<?php echo DOMAIN;?>Production//img/upload.png" id="preview" style="width:120px;height:120px;" class="img-thumbnail" />


       <?php } ?> 

      </div>

     


            
  
   <div style="font-size:20px; text-align:center;margin-top:15%;">  

   <strong> <u> Employee Profile</u>  </strong> </div>

   <br><br>

   <table width="100%"  style="font-size:14px;" >  
   
   
      <tr>  
         <td width="15%"> First Name   </td>
         <td width="35%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_fname']!=NULL){echo $WorkAssignListVal[0]['user_fname'];}else {echo "--";};?></td>

         <td width="15%"> Last Name   </td>
         <td width="35%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_lname']!=NULL){echo $WorkAssignListVal[0]['user_lname'];}else {echo "--";};?></td>


      </tr>
  
  
       <tr>  
         <td width="13%"> Religion   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_religion']!=NULL){echo $WorkAssignListVal[0]['user_religion'];}else {echo "--";};?></td>

         <td width="13%"> Gender   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_gender']!=NULL){echo $WorkAssignListVal[0]['user_gender'];}else {echo "--";};?></td>
      </tr>
   
      
       <tr>  
         <td width="13%"> CNIC  </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_cnic']!=NULL){echo $WorkAssignListVal[0]['user_cnic'];}else {echo "--";};?></td>

         <td width="13%"> Joining Date   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_joining']!=NULL){echo $WorkAssignListVal[0]['user_joining'];}else {echo "--";};?></td>
      </tr>
   
      
       <tr>  
         <td width="13%"> Confirmation Date   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_confirmation']!=NULL){echo $WorkAssignListVal[0]['user_confirmation'];}else {echo "--";};?></td>

         <td width="13%"> Job Type   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_jobtype']!=NULL){echo $WorkAssignListVal[0]['user_jobtype'];}else {echo "--";};?></td>
      </tr>
  
      
       <tr>  
         <td width="13%"> Designation   </td>
         <td width="20%" class="fieldStyle">  <?php  if($designation[0]['designation_name']!=NULL){echo $designation[0]['designation_name'];}else {echo "--";};?> </td>

         <td width="13%"> Department  </td>
         <td width="20%" class="fieldStyle">   <?php  if($department[0]['department_name']!=NULL){echo $department[0]['department_name'];}else {echo "--";};?> </td>
      </tr>
   
    
      
       <tr>  
         <td width="13%"> Basic Pay   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['user_salary']!=NULL){echo $WorkAssignListVal[0]['user_salary'];}else {echo "--";};?> </td>

         <td width="13%"> Qualification  </td>
         <td width="20%" class="fieldStyle">    <?php  if($WorkAssignListVal[0]['user_qualification']!=NULL){echo $WorkAssignListVal[0]['user_qualification'];}else {echo "--";};?></td>
      </tr>
   
    

      
       <tr> 
 
         <td width="100%" colspan="4" style="text-align:center;" > <br><br> <strong>Contact Details </strong>  </td>
            
      </tr>
   
    






      <tr>  
         <td width="15%"> Cell No   </td>
         <td width="35%" class="fieldStyle">  <?php  if($WorkAssignListVal[0]['cell_no']!=NULL){echo $WorkAssignListVal[0]['cell_no'];}else {echo "--";};?> </td>

         <td width="15%"> Email    </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;">  <?php  if($WorkAssignListVal[0]['user_email']!=NULL){echo $WorkAssignListVal[0]['user_email'];}else {echo "--";};?></td>


      </tr>


       <tr>  
         <td width="15%"> Postal Code   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;"> 
          <?php  if($WorkAssignListVal[0]['user_postalcode']!=NULL){echo $WorkAssignListVal[0]['user_postalcode'];}else {echo "--";};?></td>

         <td width="15%"> Address   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;">   <?php  if($WorkAssignListVal[0]['address']!=NULL){echo $WorkAssignListVal[0]['address'];}else {echo "--";};?></td>


      </tr>

    
 
   
   </table>

   <br>
   <br>

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

     <strong>  Previous Experience </strong>

   </div>


      <table width="100%" style="font-size:14px;">


          <tr>
            
            <th  width="20%"> Position   </th>
            <th  width="50%"> Company/Institute </th>
            <th  width="15%"> Total Experience   </th>
              
          </tr>

    
          <tr>
          
          <td class="tdStyle"> 
          <?php  if($WorkAssignListVal[0]['user_prev_desig']!=NULL){echo $WorkAssignListVal[0]['user_prev_desig'];}else {echo "--";};?>    </td>
          <td class="tdStyle">
           <?php  if($WorkAssignListVal[0]['user_prev_comp']!=NULL){echo $WorkAssignListVal[0]['user_prev_comp'];}else {echo "--";};?>  </td>
          <td class="tdStyle"  style="text-align:center;"> 
          <?php  if($WorkAssignListVal[0]['user_prev_exp']!=NULL){echo $WorkAssignListVal[0]['user_prev_exp'];}else {echo "--";};?>    </td>
          
       
          </tr>





  </table>





   <table width="100%" style="font-size:15px;margin-top:10%;">  
   
   

         <tr>  
            
            <td width="30%" colspan="3"  style="text-align:center;"> 

            <br>
            
               <span style="font-size:10px;"> Software Developed By: Aqib Majeed (Software Engineer) 03016138728  </span>
            
            </td> 
         
         </tr>


   </table>


    </div>






        </div>    
    </div>      
   </div>




</body>
</html>
