<?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); ?>
<?php   
   


       $m->where("student_id", $_REQUEST['student']);
       $m->where("branch_id", $_SESSION['branch']);

       $WorkAssignListings = $m->get("edu_student_details");
       
        $m->where("class_id", $WorkAssignListings[0]['class_id']);
        $class=$m->get("edu_class_config");

        $m->where("section_id", $WorkAssignListings[0]['section_id']);
        $section=$m->get("edu_adm_section_detail");
 

        $m->where("session_id", $WorkAssignListings[0]['session_id']);
        $session=$m->get("edu_session_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 lightgray;}
.thStyle{background-color:gray;color:white;}


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

  tr th {
    
    padding:2%;
 }
.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]['Owner_no'];?> </span>



      </div>


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

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

       <?php }else { ?>   

           <img src="<?php echo DOMAIN;?>Production/images/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> Student Admission Form </u>  </strong> </div>

   
   <table width="100%"  style="font-size:14px;" >  
      
      <tr> 
 
         <th width="100%" colspan="4" style="text-align:center;" ><br> Student Information   </th>
            
      </tr>
   
      <tr>  
         <td width="15%"> Student Name Eng   </td>
         <td width="35%" class="fieldStyle">  </td>

         <td width="15%"> Student Name Urdu   </td>
         <td width="35%" class="fieldStyle"> </td>


      </tr>
         <td width="13%"> Gender   </td>
         <td width="20%" class="fieldStyle"> </td>

         <td width="13%"> Religion   </td>
         <td width="20%" class="fieldStyle"> </td>
      <tr>
  
      </tr>
    
       <tr>  
         <td width="13%"> Date of Birth   </td>
         <td width="20%" class="fieldStyle">  </td>

         <td width="13%"> Date of Admission   </td>
         <td width="20%" class="fieldStyle"> </td>
      </tr>
   
      
       <tr>  
         <td width="13%"> Form-B No   </td>
         <td width="20%" class="fieldStyle"> </td>

         <td width="13%"> Cast   </td>
         <td width="20%" class="fieldStyle">  </td>

        
      </tr>
   
      <tr> 
 
         <th width="100%" colspan="4" style="text-align:center;" > <br><br> Academic and Contact Informations</th>
            
      </tr>
      
       <tr>  
         <td width="13%"> Admission No   </td>
         <td width="20%" class="fieldStyle">  </td>

         <td width="13%"> Optional Subjects   </td>
         <td width="20%" class="fieldStyle">  </td>
      </tr>
       <tr>  
        

         <td width="13%"> Select Category   </td>
         <td width="20%" class="fieldStyle">  </td>

         <td width="13%"> Have Siblings?   </td>
         <td width="20%" class="fieldStyle">  </td>
      </tr>
   
    <?php 

 
?>
  
      
       <tr>  
          <td width="15%"> Session   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;"> 
         </td>

          <td width="15%"> Class/Section   </td>
         <td width="35%" class="fieldStyle"> </td>

         
      </tr>

        <tr>  
        

         <td width="13%"> Select Medium   </td>
         <td width="20%" class="fieldStyle"> </td>

         <td width="13%"> Number/ Reporting SMS   </td>
         <td width="20%" class="fieldStyle"> </td>
      </tr>

        <tr>  
        

         <td width="13%"> Postal Code   </td>
         <td width="20%" class="fieldStyle">  </td>

         <td width="13%"> Email   </td>
         <td width="20%" class="fieldStyle">  </td>
      </tr>

        <tr>  
        

         <td width="13%"> City   </td>
         <td width="20%" class="fieldStyle">   </td>

         <td width="13%"> Any Chronical Disease  </td>
         <td width="20%" class="fieldStyle">  </td>
      </tr>

        <tr>  
        

         <td width="13%"> Doctor Name   </td>
         <td width="20%" class="fieldStyle"> </td>

         <td width="13%"> Doctor Cell Number   </td>
         <td width="20%" class="fieldStyle"> </td>
      </tr>

        <tr>  
        

         <td width="13%"> Whatsapp Number   </td>
         <td width="20%" class="fieldStyle">  </td>

         <td width="13%"> Have Siblings?   </td>
         <td width="20%" class="fieldStyle">  </td>
      </tr>
      
       <tr> 
 
         <th width="100%" colspan="4" style="text-align:center;" > <br><br> Family Information   </th>
            
      </tr>
   
    <tr>  
        

         <td width="13%"> Family Code   </td>
         <td width="20%" class="fieldStyle">  </td>

         <td width="13%"> Father Name   </td>
         <td width="20%" class="fieldStyle">  </td>
      </tr>


       <tr>  
        

         <td width="13%"> Grand Pa’s Name   </td>
         <td width="20%" class="fieldStyle">  </td>

         <td width="13%"> Father Qualification   </td>
         <td width="20%" class="fieldStyle">  </td>
      </tr>

      <tr>  
        

         <td width="13%"> Father Occupation   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['father_occupation']!=NULL){echo $WorkAssignListings[0]['father_occupation'];}else {echo "--";};?></td>

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

      <tr>  
        

         <td width="13%"> Father Business Number   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['father_Bnumber']!=NULL){echo $WorkAssignListings[0]['father_Bnumber'];}else {echo "--";};?></td>

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

      <tr>  
        

         <td width="13%"> Father Business Address   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['Fbusiness_address']!=NULL){echo $WorkAssignListings[0]['Fbusiness_address'];}else {echo "--";};?></td>

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

      <tr>  
        

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

         <td width="13%"> Father Cell No   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['father_cellno']!=NULL){echo $WorkAssignListings[0]['father_cellno'];}else {echo "--";};?></td>
      </tr>

       <tr>  
        

         <td width="13%"> Mother Name   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['mother_name']!=NULL){echo $WorkAssignListings[0]['mother_name'];}else {echo "--";};?></td>

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

       <tr>  
        

         <td width="13%"> Mother Activities   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['mother_activity']!=NULL){echo $WorkAssignListings[0]['mother_activity'];}else {echo "--";};?></td>

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

       <tr>  
        

         <td width="13%"> Mother Business Number   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['mother_Bnumber']!=NULL){echo $WorkAssignListings[0]['mother_Bnumber'];}else {echo "--";};?></td>

         <td width="13%"> Mother Cell Number   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['mother_cell']!=NULL){echo $WorkAssignListings[0]['mother_cell'];}else {echo "--";};?></td>
      </tr>

       <tr>  
        

         <td width="13%"> Mother Business Address   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['mother_Baddress']!=NULL){echo $WorkAssignListings[0]['mother_Baddress'];}else {echo "--";};?></td>

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

         <th width="100%" colspan="4" style="text-align:center;" ><br><br> <br><br><br><br> Guardian Informations (this part will be filled in case of death of father)   </th>
            
      </tr>

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

         <td width="13%"> Gardian Cell No   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['gardian_no']!=NULL){echo $WorkAssignListings[0]['gardian_no'];}else {echo "--";};?></td>
      </tr>

        <tr>  
        

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

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

      <tr>  
        

         <td width="13%"> Gardian Designation   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['gardian_designation']!=NULL){echo $WorkAssignListings[0]['gardian_designation'];}else {echo "--";};?></td>

         <td width="13%"> Gardian Business Number   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['gardian_Bnumber']!=NULL){echo $WorkAssignListings[0]['gardian_Bnumber'];}else {echo "--";};?></td>
      </tr>

      <tr>  
        

         <td width="13%"> Gardian Income   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['gardian_income']!=NULL){echo $WorkAssignListings[0]['gardian_income'];}else {echo "--";};?></td>

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

      <tr>  
        

         <td width="13%"> Gardian Email   </td>
         <td width="20%" class="fieldStyle">  <?php  if($WorkAssignListings[0]['gardian_email']!=NULL){echo $WorkAssignListings[0]['gardian_email'];}else {echo "--";};?></td>

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

    
 
   
   </table>

   <br>


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

     <strong>  Admission Test Details  </strong>

   </div>



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



          <tr>
            
            <th  width="10%" colspan="4">  </th>
                
          </tr>

          <tr>
            
            <th class="thStyle" width="20%"> Class   </th>
            <th class="thStyle" width="30%"> School/College </th>
            <th class="thStyle" width="15%"> Total Marks   </th>
            <th class="thStyle" width="15%"> Obt Marks  </th>
              
          </tr>

    
          <tr>
          
          <td class="tdStyle"> 
          <?php  if($WorkAssignListings[0]['old_class']!=NULL){echo $WorkAssignListings[0]['old_class'];}else {echo "--";};?>    </td>
          <td class="tdStyle">
           <?php  if($WorkAssignListings[0]['old_school']!=NULL){echo $WorkAssignListings[0]['old_school'];}else {echo "--";};?>  </td>
          <td class="tdStyle"  style="text-align:center;"> 
          <?php  if($WorkAssignListings[0]['old_tmarks']!=NULL){echo $WorkAssignListings[0]['old_tmarks'];}else {echo "--";};?>    </td>
          <td class="tdStyle" style="text-align:center;">
           <?php  if($WorkAssignListings[0]['old_obtmarks']!=NULL){echo $WorkAssignListings[0]['old_obtmarks'];}else {echo "--";};?>           </td>

            
       
          </tr>
         





  </table>


<?php 

  $m->where("student_id", $_GET['student']);
  $m->where("branch_id", $_SESSION['branch']);

  $student_fee = $m->get("eduportal_student_fee_structure");

?>



<br><br>
   <table width="100%"  style="font-size:14px;" >  
   
       
       <tr>  
         <th width="100%" colspan="4" style="text-align:center;background-color:gray;color:white;" > Student Fee Details   </th>
            
      </tr>
   
    

      <tr>  
         <td width="15%"> Admission Fee   </td>
         <td width="35%" class="fieldStyle">  <?php echo $student_fee[0]['std_admission_fee'];?></td>

         <td width="15%"> Annual Charges   </td>
         <td width="35%" class="fieldStyle">  <?php echo $student_fee[0]['std_annual_charges'];?></td>


      </tr>
  
  
       <tr>  
         <td width="13%"> Paper Fund   </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_paper_fund'];?></td>

         <td width="13%"> Other Fee   </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_processing_fee'];?></td>
      </tr>
   
      
       <tr>  
         <td width="13%"> Transport Fund  </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_transport_fee'];?></td>

         <td width="13%"> Lab Fund   </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_lab_fee'];?></td>
      </tr>
   
      
       <tr>  
         <td width="13%"> Tuition Fee   </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_tution_fee'];?></td>

         <td width="13%"> Old Balance   </td>
         <td width="20%" class="fieldStyle">  <?php echo $student_fee[0]['std_outstanding_blc'];?></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>
