<form  method="post">
<table border="0" width="100%" class="tc">
  <tr>
    <td colspan="3" align="center" style="color:blue;"><h1>TRANSFER CERTIFICATE </h1></td>
    </tr>
  <tr>
    <td colspan="3">
    <div style="margin:3px; padding:5px 5px; width:235px; float:right">
    Admission No. <span ><input type="text" name="adminno"></span><br />
    Admission Date <span ><input type="text" name="admindate"></span></span>

</div>
   <!-- <div style="margin:3px; padding:	5px 5px; width:200px"> TC-No. <span class="span" style="width:100px"> !-->
      
    
    </td>
    </tr>
  
  <tr>
    <td colspan="3"> 
    <span class="name">1- Name Of Pupil :</span> <span class="txt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="nameofpupil"></span><br /> </br>
    <span class="name">2- Father's/Guardien's Name : </span><span class="txt"><input type="text" name="nameofGuardien"></span><br/></br> 
   <span class="name"> 3- Mother's Name : </span> <span class="txt"><input type="text" name="nameofmother"></span><br /></br>
   <span class="name"> 4- Nationality : </span> <span class="txt">INDIAN</span><br /> </br>
   <span class="name"> 5- Caste : </span> <span class="txt"><input type="text" name="cast"></span><br /></br>
   <span class="name"> 6- Admission Class : </span><input type="text" class="txt" name="admission_class" value="<?php echo $idata["admission_class"] ?>" /> Year : <input type="text" class="txt" name="year" value="<?php echo $idata["year"] ?>" />  <br /></br>
   <span class="name"> 7- Date Of Birth : </span> <span class="txt"><input type="date" name="DOB"></span><br /></br>
   <span class="name"> 8- Class in which pupil last studied : </span><input type="text" class="txt" name="last_class" value="<?php echo $idata["last_class"] ?>" /><br /></br>
   <span class="name">9- Address :</span> <span class="txt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<textarea name="address"></textarea></span><br /></br> 
   <span class="name"> 10- Subjects Offered : </span><textarea name="subject"></textarea> <br /></br>
   
    <span class="name"> 11- Whether qualified for promotion to the higher class : </span><input type="text" class="txt" name="qualified" value="<?php echo $idata["qualified"] ?>" /> <br /></br>
    <span class="name"> If so to which class(In Fig) : </span><input type="text" class="txt" name="infig" value="<?php echo $idata["infig"] ?>" /> (In words): <input type="text" class="txt" name="inwords" value="<?php echo $idata["inwords"] ?>" /> <br /></br>
    <span class="name"> 12- Month upto which the (pupil has paid) school dues paid : </span><input type="text" class="txt" name="dues" value="<?php echo $idata["dues"] ?>" /> <br /></br>
    <span class="name"> 13- Any Fee Concession availed of : if so, the nature of such concession : </span><input type="text" class="txt" name="concession" value="<?php echo $idata["concession"] ?>" /> <br /></br>
    <span class="name"> 14- Games played or extra curricular activities in which the pupil has taken part (Details may be given) : </span><input type="text" class="txt" name="activities" value="<?php echo $idata["activities"] ?>" /> <br /></br>
            <span class="name"> 15- Date of application of certificate : </span><input type="text" class="txt" name="date_of_application" value="<?php echo $idata["date_of_application"] ?>" /> <br /></br>
      <span class="name"> 16- Date of issue of certificate : </span><input type="text" class="txt" name="issue_date" value="<?php echo $idata["issue_date"] ?>" /> <br /></br>
     <span class="name"> 17- Reason for leaving the school : </span><input type="text" class="txt" name="reason" value="<?php echo $idata["reason"] ?>" /> <br /></br>
     <span class="name"> 18- General Conduct : </span><input type="text" class="txt" name="Conduct" value="<?php echo $idata["Conduct"] ?>" /> <br /></br>
     <span class="name"> 19- Any other Remark : </span><input type="text" class="txt" name="remark" value="<?php echo $idata["remark"] ?>" /> <br /></br>
 <?PHP    


?>
<input type="submit" name="SUBMIT">
 <a class="submit" href="print/?page_id=newtc&action=print&id=<?PHP ECHO $_POST['adminno'];?> " >PRINT TC</a>';
</td>
    </tr>
 

</table>
</form><style>
input[type="text"]
{
    border: 0;
  outline: 0;
  background: transparent;
  border-bottom: 1px solid black;
}

input[type="date"]
{
    border: 0;
  outline: 0;
  background: transparent;
  border-bottom: 1px solid black;
}
textarea name[type="address"]
{
    border: 0;
  outline: 0;
  background: transparent;
  border-bottom: 1px solid black;
}
</style>
<?php
$value=array(
"adminno"=>$_POST['adminno'],
"admindate"=>$_POST['admindate'],
"nameofpupil"=>$_POST['nameofpupil'],
"nameofGuardien"=>$_POST['nameofGuardien'],
"nameofmother"=>$_POST['nameofmother'],
"cast"=>$_POST['cast'],
"Nationality"=>"indian",
"admission_class"=>$_POST['admission_class'],
"year"=>$_POST['year'],
"DOB"=>$_POST['DOB'],
"last_class"=>$_POST['last_class'],
"address"=>$_POST['address'],
"subject"=>$_POST['subject'],
"qualified"=>$_POST['qualified'],
"infig"=>$_POST['infig'],
"inwords"=>$_POST['inwords'],
"dues"=>$_POST['dues'],
"concession"=>$_POST['concession'],
"activities"=>$_POST['activities'],
"date_of_application"=>$_POST['date_of_application'],
"issue_date"=>$_POST['issue_date'],
"reason"=>$_POST['reason'],
"issue_date"=>$_POST['issue_date'],
"Conduct"=>$_POST['Conduct'],
"remark"=>$_POST['remark'],

);
 $_POST['nameofpupil'];
 $_POST['nameofGuardien'];
 $_POST['nameofGuardien'];
 $_POST['cast'];
 $_POST['admission_class'];
  $_POST['year'];

 $_POST['DOB'];

 $_POST['last_class'];

 $_POST['address'];

 $_POST['subject'];

 $_POST['qualified'];
 $_POST['infig'];
 $_POST['inwords'];
 $_POST['dues'];
 $_POST['concession'];
 $_POST['activities'];
 $_POST['date_of_application'];
 $_POST['issue_date'];
 $_POST['reason'];
 $_POST['Conduct'];
 $_POST['remark'];
//print_r($value);
$flgIn=$db->insertAry("newtc",$value);
if($flgIn >0)
{
	
?>
	
<?php
	
}
?>
<SCRIPT>
$(document).ready(function(){
    $("a.submit").click(function(){
        document.getElementById("myForm").submit();
    }); 
});
</SCRIPT>
