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

if($res["class"]=='NURSERY' || $res["class"]=='LKG' || $res["class"]=='UKG' || $res["class"]=='1st' ||  $res["class"]=='2nd' || $res["class"]=='3rd')
{
$amount='7200/-(Seven Thousand Two Hundred Only)';
}
elseif($res["class"]=='4th' || $res["class"]=='5th' || $res["class"]=='6 th')
{

$amount='8400/-(Eight  Thousand Four Hundred Only)';

}

elseif($res["class"]=='7 th')

{

$amount='9600/-(Nine   Thousand Six Hundred Only)';
}
elseif($res["class"]=='8 th' )
{
$amount='10800/-(Ten   Thousand Eight Hundred Only)';

}
else

{
    
$amount='13200-(Thirteen   Thousand Two Hundred Only)';    
}


?>
<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"><strong style="font-size: 32px;"><?php echo $LinksDetails["site_name"]; ?></strong></br>
	

      <?php echo nl2br($LinksDetails["contact_content"]); ?></div>
        <table style="width:100%"><tr>
        <td>Affl No. 330601</td>
        <td align="right">School No.50531</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">
    INCOME TAX CERTIFICATE
    </div>
    
    <div style="margin:30px 10px">
		
        <h3 style="margin:0;padding:0;text-align:center;text-decoration: underline;">
        	TO WHOM IT MAY CONCERN
        </h3>
        <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/Daughter of  - <span class="txt" style="width:260px; font-weight: bold; "><?php echo $res["fname"] ?></span>
&nbsp;&nbsp;&nbsp;is a student of this Institution.<br /><br />

He / She is studying in <span class="txt" style="width:260px; font-weight: bold; "><?php echo $res["class"] ?></span>&nbsp; standard during academic session year-<span class="txt" style="width:260px; font-weight: bold; "><?php echo $res["session"] ?>.</span><br><br>
He has paid Rs <?php  echo $amount; ?> as tuition fee.

<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>