<?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 section='".$_GET["section"]."' AND status=1 and issue_TC=0 order by name");
foreach($aryForm_all as $aryForm ){
?>
<div class="out" style="height:480px;margin-bottom:5px;padding:20px;font-size:12px">
<div class="headPrint" style="text-align:center">
  
    <img src="<?php echo $LinksDetails["logo"] ?>" height="30px">
	<span style="top: -12px; display: inline-block; position: relative; font-size: 200%;"><b><?php echo ucfirst(trim($LinksDetails["site_name"])) ?></b></span>
    <div><b><?php echo ucfirst(trim($LinksDetails["contact_content"])) ?></b></div>
    <h2></h2>
    <div style="text-decoration:underline; font-size:18px; font-weight:bold;">ADMIT CARD</div><br>
</div>

This is to certify that Master/Miss <strong><?php echo $aryForm["name"] ?></strong><br>
Son/ daughter of <strong><?php echo $aryForm["fname"] ?>.</strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mother's name Mrs. <strong><?php echo $aryForm["mname"] ?></strong> is a<br> regular student of class <strong><?php echo $aryForm["class"] ?></strong>.<br>
He/She has cleared all the school dues and his/her admission no is <strong><?php echo $aryForm["admissionno"] ?>.</strong></br>
His/ Her date of Birth is <strong><?php echo $aryForm["dob"] ?></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<br />

He/ She is allowed to appear in 1st Term Examinations.<br>
General Instructions:-<br>
<ol >
	<li>Candidates must check all the particulars carefully and corrections. If any, be brought to the notice of the school immediately.</li>
	<li>For date and time of examination please see date sheet also.</li>
	<li>The candidates must keep this admission card at the time of examination and present on demand to the superintendent of examination Centre or any other person authorized on this behalf.</li>
	<li>Each examinee should present himself in the examination hall 30 minutes before the commencement of the examination.</li>
	<li>Candidates are required to bring their own pen, ball pen, pencil & ink. Only royal blue black ink is to be used. No other ink is permissible.</li>
	<li>If any student is found adopting unfair means His/ Her entire exams will be cancelled.</li>
</ol>
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td>Registrar for Exam</td>
    <td>Clerk Signature</td>
    <td>Principal</td>
  </tr>
</table>



<?php echo nl2br($LinksDetails["site_name"]) ?><br>
</div>
<?php } ?>
<script>
window.print();
window.onfocus=function(){ window.close();}
</script>
<style>
h2 {
   width: 100%; 
   text-align: center; 
   border-bottom: 1px solid #000; 
   line-height: 0.1em;
   margin: 10px 0 20px; 
} 

h2 span { 
    background:#fff; 
    padding:0 10px; 
}
</style>