<?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.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("section_id", $student[0]['section_id']);
        $Section=$m->get("edu_adm_section_detail");

 ?>


  <!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>Birthday 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;border-right: 2px solid black;border-right-style:dotted;padding-right:2.5%;margin-left:2%;}
.box{
  width:100%;float:left;height:14.5cm;
}  
   
.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:0%;
  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">

  <img src="images/BD1.PNG" alt="" style="width: 49.5em; height: 50em;">


  <div class="col-md-12">

    <h3 style="font-size: 3em;text-align: center; letter-spacing: 0.4rem; margin-top: 2%; text-transform: uppercase; color: #253b5c; font-family: impact;"> <u><?php echo $student[0]['first_name']; ?></u></h3>
   
    <h4 style="font-size: 2em; text-align: center; text-transform: uppercase; margin-top: -1em; color: #ff1919; letter-spacing: 0.6rem;"> <?php echo $student[0]['last_name']; ?></h4>
  
  </div>

  <div class="col-md-12">
    <p style="font-size: 32px; text-align: center; color: #253b5c; font-family: cursive;"> <span style="color: #a10707; font-family: sans-serif; font-size: 32px;">Class: <?php echo $Class[0]['Class_Name'];?> /</span> <?php echo $Section[0]['section_name'];  ?></p>

    <p style="width:97%;font-size: 18px;text-align:left;margin-left: 39px;">From: &nbsp;&nbsp;<?php echo $branch[0]['Branch_Name'];?></p>
  
  </div>
  

</page>


<br><br>


</body>
</html>
