<?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");



 ?>



 <style type="text/css">



.watermarked {

  position: relative;

}



.watermarked:after {

  content: "";

  display: block;

  width: 100%;

  height: 100%;

  position: absolute;

  top: 240px;

  left: 250px;

  background-image: url("https://apps.eduportal-pk.com/EduPortal/Production/img/<?php echo $branch[0]['logo']; ?>");

  background-size: 40% 50%;

  background-position: 30px 30px;

  background-repeat: no-repeat;

  opacity: 0.1;

}

</style>

<div style="width: 100%;margin-top: 70px;" class="watermarked">

<div style="/*width:1000px;*/ height:620px; padding:20px; text-align:center; border: 10px solid #787878">

		

	<b style="float:left;">  Roll No / Adm No: <?php echo $student[0]['candidate_roll_no']." / ".$student[0]['ref_no'];?></b>

	<b style="float:right;"> Date: <?php echo date("d-M-Y")?></b>



<br>



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



           <?php if($student[0]['image']!=NULL){ ?>

      

      <img src="<?php echo DOMAIN;?>Production/students_pics/<?php echo $student[0]['image'];?>" id="preview" class="img-thumbnail" style="width:120px;height:120px;margin: 60px 0px 0px -21px;"   />



       <?php }else { ?>   



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





       <?php } ?> 



      </div>



	<img src="<?php echo DOMAIN.AgentDirectory;?>img/<?php echo $branch[0]['logo']; ?>" style="margin-left: 15%;height:110px;width:110px;" />

	<br>

       <span style="font-size:35px; font-weight:bold; margin-left: 68px;"><?php echo $branch[0]['Branch_Name']; ?></span>

       <br><br>

     <span style="font-size:22px; font-weight:bold"><u>Institute Leaving Certificate</u></span>

     <h4> THIS IS TO CERTIFY THAT </h4>

     <div style="width: 100%;">

     <div style="width: 20%;float: left;text-align: left;">Student Name:-</div>

     <div style="width: 80%;float: left;border-bottom: 2px solid black; "><?php echo $student[0]['first_name'];?></div><br><br>

     </div>



     <div style="width: 100%;">

     <div style="width: 20%;float: left;text-align: left;">Father Name:-</div>

     <div style="width: 80%;float: left;border-bottom: 2px solid black; "><?php echo $student[0]['last_name'];?></div><br><br>

     </div>



     <div style="width: 100%;">

     <div style="width: 20%;float: left;text-align: left;">Class Name:-</div>

     <div style="width: 80%;float: left;border-bottom: 2px solid black; "><?php echo $class[0]['Class_Name'];?></div><br><br>

     </div>



     

     <div style="width: 100%;">

     <div style="width: 30%;float: left;text-align: left;">Was admitted to this institute on</div>

     <div style="width: 70%;float: left;border-bottom: 2px solid black; ">



        

            

 		<input type="text" style="border:none;" value="<?php echo date("d-F-Y", strtotime($student[0]['date_of_adms']));?>" />



 		&nbsp;&nbsp; (<?php echo date("F-d-Y", strtotime($student[0]['date_of_adms']));?>)  



        </div>





        <br><br> 

     



     </div>



     <div style="width: 100%;">

     <div style="width: 15%;float: left;text-align: left;">And left on</div>

     <div style="width: 85%;float: left;border-bottom: 2px solid black; ">



        

         

        <input type="text" style="border:none;" value="<?php

     $date="Null";

     if ($student[0]['expel_date']!=Null) {

         echo date("d-M-Y", strtotime($student[0]['expel_date']));

     } else {

     echo $date;}?>" />  



     </div><br><br>

     </div>

    <div style="width: 100%;">

     <div style="width: 100%;float: left;text-align: left;"> He / she was then studying in Grade <b>



       

        

        <input type="text" style="border:none;border-bottom:1px solid black;" value=" <?php echo $class[0]['Class_Name'];?>" />  



        </b>. All dues to this institute on 

     his / her account has been paid.<br><br></div>

   

    <div style="width: 100%;">

     <div style="width: 40%;float: left;text-align: left;">His / her date of birth, according to our record is</div>

     <div style="width: 60%;float: left;border-bottom: 2px solid black; ">



        

        <input type="text" style="border:none;" value="<?php echo date("d-M-Y", strtotime($student[0]['dob']));?>" />   



        </div><br><br>

     </div>

    

        

     

     <br><br><br><br>

    



     <b style="float:left;">Institute Stamp </b>

	 <b style="float:right;">Head of Institute</b>

</div>

</div>

</div>

</div>