<?php
$res=$db->getRow("select * from student where school_id='".$_SESSION["admin"]["school_id"]."' and idno=".$_GET["id"]);

//echo $ss="select * from student where school_id='".$_SESSION["admin"]["school_id"]."' and idno=".$_GET["id"]."";
?>
<style>
.tc{
	font-size:20px;
	font-family:"Courier New", Courier, monospace;
	color:#333;
	border:1px solid #333;
	font-weight:bold;
	width:658px;
	padding: 33px 44px;
	onfocus="this.value=''
}
.tc .txt{
	border:0px;
	border-bottom:2px dotted #333;
	font-family:"Courier New", Courier, monospace;
	color:#009;
	margin:2px 5px;
	display:inline-block;
	font-weight:bold;
	font-size:20px;
}

.span{
	border-bottom:2px dotted #000; 
	display:inline-block;
	font-family:"Courier New", Courier, monospace;
}
</style>


<div style="width:700px;padding:20px">
	
            <div style="float:left; text-align:right">
            	<img style="width:155px" src="<?php echo $LinksDetails["logo"] ?>">
            </div>
            <div style="text-align:center">
            	
                <h1 style="font-size: 32px;font-family: fantasy; margin:0; padding:0"><?php echo nl2br($LinksDetails["site_name"]) ?></h1>
                <br>
                <?php echo nl2br($LinksDetails["contact_content"]) ?><br>
                
            </div>
        <table style="width:100%"><tr>
        <td>Affl No. 330148</td>
        <td align="right">School No.65139</td>
        </tr>
    </table>
    <hr>
    <div style="float:right">
    	Date <?php
$currentdate = date('d/m/Y');
echo "$currentdate";
?>
    </div>
    
    <div align="left">
    	Adm. No.<?php echo $res["admissionno"] ?>
    </div>
    <div STYLE="font-weight: bold; 	font-size:27px;" align="center">
    BONAFIDE CERTIFICATE
    </div>
    
    <div style="margin:30px 10px">
		<img src="<?php echo URL_ROOT ?>media/photo/<?php echo $res["photo"] ?>" height="110px" align="right" > 
        <h3 style="margin:0;padding:0;text-align:center;text-decoration: underline;">
        	TO WHOM IT MAY CONCERN
        </h3>
        
        <br><br><br>
       
        <div style="font-size: 25px; color:black; margin-top:45px">
   This is to certify that Mr./Miss. <span class="txt" style="width:250px;  font-weight: bold; "><?php echo $res["name"] ?></span>.
Adm No. <span class="txt" style="width:260px; font-weight: bold;"><?php echo $res["admissionno"] ?></span>.Son/Wife/Daughter of shri - <span class="txt" style="width:260px; font-weight: bold; "><?php echo $res["fname"] ?></span>
&nbsp;&nbsp;&nbsp;. Residing at <span class="txt" style="width:300px; font-weight: bold; "><?php echo $res["address"] ?></span>&nbsp;&nbsp;is was a Bonafide student of the class-

<span class="txt" style="width:260px; font-weight: bold; "><?php echo $res["class"] ?></span>&nbsp;&nbsp; Roll no. <span class="txt" style="width:260px; font-weight: bold; "><?php echo $res["fincome"] ?></span>&nbsp;&nbsp;  during academic session.<span class="txt" style="width:260px; font-weight: bold; "><?php echo $res["session"] ?>.</span><br><br><br>
His/Her Date Of Birth as per our School records is.<span  class="txt" style="width:260px; font-weight: bold; "><?php echo date('d/m/Y', strtotime($res["dob"])); ?></span></span></span>&nbsp;&nbsp;&nbsp;His Her Character  and conduct has been good throughout<br>

<br /><br /><br /><br /><br /><br />

   </div>
    
    <div>
    <div style="display:inline-block; margin-left:400px; width:30% font-weight: bold; 	font-size:27px;"> Principal/Chairman Signature </div>
  
    </div>
</div>
<script>window.print() </script>