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

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

$m->where("student_id", $_REQUEST['student_id']);
$student=$m->get("edu_student_details");

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

$m->where("class_id", $student[0]['class_admited']);
$classAdmited=$m->get("edu_class_config");

$m->where("country_id", $student[0]['father_nationality']);
$fatherNationality=$m->get("eduportal_country_name");

$m->where("country_id", $student[0]['mother_nationality']);
$motherNationality=$m->get("eduportal_country_name");




?>
 <!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>Birth Certificate</title>
<!-- Favicons-->
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />
<script type="text/javascript">
 window.print();
</script>
<style> 

.section{width:95%; height:auto;float:left;padding-right:2.5%;margin-left:2%;}
.box{
  width:48%;float:left;height:14.5cm;padding:0.5%;
}  
   
tr th {background-color:gray; text-align:center;font-size:14px;border:1px solid gray;}
tr td {border-bottom:1px solid gray;border-left:1px solid gray;padding:.7%;}



.tdalign{text-align:center;border:1px solid black;}
  

body {
  background: rgb(204,204,204);
  font-weight:bold; 
}
page {
  background: white;
  display: block;
  margin: 0 auto;
  margin-bottom: 0.5cm;
  border:1px solid black;
  box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
  /*padding:1%;*/
  height: 21cm; 
}
page[size="A4"] {  
  width: 21cm;
  height: 29.7cm; 
}
page[size="A4"][layout="landscape"] {
  width: 29.7cm;
  height: 21cm;  
}
page[size="A3"] {
  width: 29.7cm;
  height: 42cm;
}
page[size="A3"][layout="landscape"] {
  width: 42cm;
  height: 29.7cm;  
}
page[size="A5"] {
  width: 14.8cm;
  height: 21cm;
}
page[size="A5"][layout="landscape"] {
  width: 21cm;
  height: 14.8cm;  
}
@media print {
  body, page {
    margin: 0;
    box-shadow: none;
    border:none;
  }
}
  </style>

</head>
<body>


<page size="A4">

 
 <style>


/* Dashed red border */
hr.new2 {
 
  margin-top: 20px;
  border: 3px solid black;
  width: 100%;
}

hr.new1 {
 
  margin-top: -5px;
  border: 1px solid black;
  width: 100%;
}



</style>

<div class="col-md-12">
  
<div class="col-md-3" style=" float: left;">
  
   <?php if($brid[0]['logo']!=NULL){ ?>
          
          <img src="<?php echo DOMAIN.AgentDirectory;?>img/<?php echo $brid[0]['logo'];?>" id="preview" class="img-thumbnail" style="width:100px;height:100px;"   />

       <?php }else { ?>   

           <img src="http://cdn.onlinewebfonts.com/svg/img_234957.png" id="preview" style="width:100px;height:100px;" class="img-thumbnail" />


       <?php } ?> 

</div>
<div class="col-md-9" style="">
 <h1 style="text-align: center; padding-top: 10px;font-size: 40px;"> <?php echo $branch[0]['Branch_Name']; ?> </h1><br>
 <p style="text-align:center;margin-top: -43px;"><?php echo $branch[0]['Branch_Location']; ?></p>
</div>

</div>

<br>
   <hr class="new2">
   <hr class="new1">

   <br>
   <div style="text-align: center;border: 1px double black; margin-left:35%; height:20px; width: 195px;padding:1.5%;border-radius:10px;">Birth Certificate</div>
  <br><br>

    <p style="font-weight: bold;font-size: 18px;text-align: center;"> <u>Child Details</u></p>
    <br>
   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">Name:</div>
     <div style="width: 35%;float: left; text-align: left; "><?php echo $student[0]['first_name'];?></div>
     <div style="width: 15%;float: left;text-align: left;">Date Of Birth:</div>
     <div style="width: 20%;float: left; text-align: left; "><?php echo date("d-m-Y",strtotime($student[0]['dob']));?></div><br><br>
   </div>

   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">Gender:</div>
     <div style="width: 35%;float: left; text-align: left; "><?php echo $student[0]['gender'];?></div>
     <div style="width: 15%;float: left;text-align: left;">Religion:</div>
     <div style="width: 20%;float: left; text-align: left; "><?php echo $student[0]['religion'];?></div><br><br>
   </div>


   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">District Of Birth:</div>
     <div style="width: 35%;float: left; text-align: left; "><input style="border:none;font-size: 15px;font-weight: bold;" type="" name="" value="" placeholder="Enter District Name"></div>
     <br><br>
   </div>

   <p style="font-weight: bold;font-size: 18px;text-align: center;"> <u>Parental Information</u></p>
<br>
   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">Father Name:</div>
     <div style="width: 35%;float: left; text-align: left; "><?php echo $student[0]['last_name'];?></div>
     <div style="width: 15%;float: left;text-align: left;">Nationality:</div>
     <div style="width: 20%;float: left; text-align: left; "><?php echo $fatherNationality[0]['country_name'];?></div><br><br>
   </div>

 

   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">CNIC No:</div>
     <div style="width: 70%;float: left; text-align: left; "><?php echo $student[0]['cnic'];?></div><br><br>
   </div>

  

   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">Mother Name:</div>
     <div style="width: 35%;float: left; text-align: left; "><?php echo $student[0]['mother_name'];?></div>
     <div style="width: 15%;float: left;text-align: left;">Nationality:</div>
     <div style="width: 20%;float: left; text-align: left; "><?php echo $motherNationality[0]['country_name'];?></div><br><br>
   </div>

  

   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">CNIC No:</div>
     <div style="width: 70%;float: left; text-align: left; "><?php echo $student[0]['mother_cnic'];?></div><br><br>
   </div>


   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">Grand Father Name:</div>
     <div style="width: 35%;float: left; text-align: left; "><?php echo $student[0]['mother_4name'];?></div>
     <div style="width: 15%;float: left;text-align: left;">CNIC No:</div>
     <div style="width: 20%;float: left; text-align: left; "><?php echo $student[0]['last4_name2'];?></div><br><br>
   </div>
 

    <p style="font-weight: bold;font-size: 18px;text-align: center;"> <u>Address</u></p>
<br>
   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">Address:</div>
     <div style="width: 70%;float: left; text-align: left; "><?php echo $student[0]['address'];?></div><br><br>
   </div>


   <div style="width: 100%;">
     <div style="width: 30%;float: left;text-align: left;">Tehsil:</div>
     <div style="width: 35%;float: left; text-align: left; "><input style="border:none;font-size: 15px;font-weight: bold;" type="" name="" value="" placeholder="Enter Tehsil Name"></div>
     <div style="width: 15%;float: left;text-align: left;">Distric:</div>
     <div style="width: 20%;float: left; text-align: left; "><input style="border:none;font-size: 15px;font-weight: bold;width: 155px;" type="" name="" value="" placeholder="Enter District Name"></div><br><br>
   </div>



  
 <hr class="new1">
 <hr class="new1">
 <p style="text-align: center;">Certified that the above information is accordance to the School General Register.</p>
  
<br><br><br><br><br><br>
   <div style="width: 100%;">
     <div style="width: 50%;float: left;text-align: left;">Class Teacher:</div>
     <div style="width: 50%;float: left; text-align: right; ">Head Of Insititute</div>
    
   </div>

</page>

</body>
</html>
