<?php
$aryForm_all=$db->getRows("SELECT * FROM student WHERE school_id='".$_SESSION["admin"]["school_id"]."' AND session='".$_SESSION["admin"]["session"]."' AND class='".$_GET["class"]."' AND status=1 and issue_TC=0 order by name");
foreach($aryForm_all as $aryForm ){
?>
<style>
.txt{
	border:0px;
	border-bottom:2px dotted #333;
	font-family:"Courier New", Courier, monospace;
	color:#009;
	margin:2px 5px;
	display:inline-block;
}
</style>
<div class="out" style="height:315px;border:2px solid #333;margin-bottom:20px;padding:12px 50px 0px 50px;;font-size:16px;font-weight:800;">
<div class="headPrint" style="text-align:center">
     <h2><img src="<?php echo $LinksDetails["logo"] ?>" height="30px">
	<span style="top: -12px; display: inline-block; position: relative;"><?php echo ucfirst(trim($LinksDetails["site_name"])) ?></span></h2>
    <div><?php echo ucfirst(trim($LinksDetails["contact_content"])) ?></div><br>
</div>
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td>Ref. No <span class="txt" style="width:150px"><?php echo " "; ?></span></td>
<td>&nbsp;</td>
	<td>Date <span class="txt" style="width:150px"><?php echo " "; ?></span></td>
</tr>
</table>
Name of Student <span class="txt" style="width:400px"><?php echo $aryForm["name"] ?></span><br>
Father's Name <span class="txt" style="width:400px"><?php echo $aryForm["fname"] ?></span> <br />
Please Deposit Rs.<span class="txt" style="width:200px"><?php echo " ";?></span> as the school maintenance fees of your son/daughter a student of class
<span class="txt" style="width:100px"><?php echo $aryForm["class"] ?></span> latest by <span class="txt" style="width:150px"></span> otherwise his/her name will be struck off from the rolls.

<table width="100%" style="font-size:20px" cellspacing="0" cellpadding="0">
  <tr>
    <td width="75%">Thanking You!</td>
    <td>&nbsp;</td>
    <td> Your Sincerely</td>
  </tr>
   <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>Principal</td>
  </tr>
</table>
</div>
<?php } ?>
<script>
window.print();
//window.onfocus=function(){ window.close();}
</script>