<?php include "header.php"; ?>
<div id="page-wrapper">

            <div class="row">
                <!-- Page Header -->
                <div class="col-lg-12">
                    <h1 class="page-header">-</h1>
 <?php
 $id=$_GET['id'];
	$result = mysql_query("SELECT * FROM add_teachers where id=$id and session='$session' and code='$code'");
	$a_row = mysql_fetch_row( $result );
	$en=$a_row['5'];
	?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div style="height:437px; overflow:auto;"><table width="100%" border="0" cellspacing="0" cellpadding="4" align="center"  class="table">
  <tr>
    <td colspan="4" align="left" style="border:none"><img src="images/view_teach.jpg" /></td>
  </tr>
  
  <tr>
    <td valign="top"> <div align="left" class="arrow">Date </div></td><td align="left" valign="top" ><div align="left"><strong>
      <?php echo $a_row[1];?>&nbsp;-&nbsp;<?php echo $a_row[2];?>&nbsp;-&nbsp;<?php echo $a_row[3];?>
     
    </strong></div></td>
    <td align="right" valign="top" ><div align="left" class="arrow">Marital Status </div></td>
    <td align="left" valign="top" ><div align="left"><strong>
      <?php echo $a_row[4];?>
    </strong></div></td>
  </tr>
  <tr>
    <td width="24%" valign="top" > <div align="left" class="arrow">S.R. No. </div></td><td width="26%" valign="top" >
      <div align="left"><strong>
       <?php echo $a_row[5];?>        </strong></div></td>
    <td width="24%" align="right" valign="top" ><div align="left" class="arrow">Joining Date </div></td>
    <td width="26%" align="left" valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[6];?>        </strong></div></td>
    </tr>
  <tr>
    <td valign="top" ><div align="left" class="arrow">Name </div></td>
    <td valign="top" >
        <div align="left"><strong>
        <?php echo $a_row[7];?>          </strong></div></td>
    <td valign="top" ><div align="left" class="arrow">Father/Husband Name </div></td>
    <td valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[8];?>        </strong></div></td>
    </tr>
  
  <tr>
    <td valign="top" ><div align="left" class="arrow">Date of Birth </div></td>
    <td valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[9];?>        </strong></div></td>
    <td valign="top" ><div align="left" class="arrow">Post </div></td>
    <td valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[10];?>        </strong></div></td>
    </tr>
  
  <tr>
    <td valign="top" ><div align="left" class="arrow">Phone - Mobile </div></td>
    <td valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[11];?>        </strong></div></td>
    <td valign="top" ><div align="left" class="arrow">Email</div></td>
    <td valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[12];?>        </strong></div></td>
    </tr>
  
  <tr>
    <td valign="top" ><div align="left" class="arrow">Photo </div></td>
    
    <td valign="top" >
      <div align="left"><strong>
        <img src="<?php echo $a_row[13];?>" height="90" width="60" />        </strong></div></td>
    <td valign="top" ><div align="left" class="arrow">Permanent Address </div></td>
    <td align="left" valign="top" ><div align="left"><strong>
        <?php echo $a_row[14];?>
    </strong></div></td>
  </tr>
  
  <tr>
    <td valign="top" ><div align="left" class="arrow">Gender</div></td>
    <td valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[15];?>        </strong></div></td>
    <td valign="top" ><div align="left" class="arrow">Present  Address </div></td>
    <td align="left" valign="top" >
      <div align="left"><strong>
        <?php echo $a_row[16];?>        </strong></div></td>
    </tr>
  
  <tr>
    <td height="20" colspan="4" align="right" valign="top" style="border:none;background:url(images/title2.jpg); height:20; color:#990000; background-repeat:repeat-x;"><div align="left">Academic Qualifications </div></td>
    </tr>
  <tr>
    <td colspan="4" align="right" valign="top" ><table width="100%" border="1" cellspacing="2" cellpadding="2">
  <tr>
    <td bgcolor="#FFFFCC"><strong>Examination</strong></td>
    <td bgcolor="#FFFFCC"><strong>Passed Year </strong></td>
    <td bgcolor="#FFFFCC"><strong>Division</strong></td>
    <td bgcolor="#FFFFCC"><strong>%</strong></td>
    <td bgcolor="#FFFFCC"><strong>Medium of Instruction </strong></td>
    <td bgcolor="#FFFFCC"><strong>Name of Board/Univ.</strong></td>
    <td bgcolor="#FFFFCC"><strong>Any other Info. </strong></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFCC"><strong>H.S.E.</strong></td>
    <td> <div align="center"><?php echo $a_row[17];?></div></td>
    <td> <div align="center"><?php echo $a_row[18];?></div></td>
    <td> <div align="center"><?php echo $a_row[19];?></div></td>
    <td> <div align="center"><?php echo $a_row[20];?></div></td>
    <td> <div align="center"><?php echo $a_row[21];?></div></td>
    <td> <div align="center"><?php echo $a_row[22];?></div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFCC"><strong>Intermediate</strong></td>
    <td><div align="center"><?php echo $a_row[23];?></div></td>
    <td><div align="center"><?php echo $a_row[24];?></div></td>
    <td><div align="center"><?php echo $a_row[25];?></div></td>
    <td><div align="center"><?php echo $a_row[26];?></div></td>
    <td><div align="center"><?php echo $a_row[27];?></div></td>
    <td><div align="center"><?php echo $a_row[28];?></div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFCC"><strong><?php echo $a_row[29];?></strong></td>
    <td><div align="center"><?php echo $a_row[30];?></div></td>
    <td><div align="center"><?php echo $a_row[31];?></div></td>
    <td><div align="center"><?php echo $a_row[32];?></div></td>
    <td><div align="center"><?php echo $a_row[33];?></div></td>
    <td><div align="center"><?php echo $a_row[34];?></div></td>
    <td><div align="center"><?php echo $a_row[35];?></div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFCC"><strong><?php echo $a_row[36];?></strong></td>
    <td><div align="center"><?php echo $a_row[37];?></div></td>
    <td><div align="center"><?php echo $a_row[38];?></div></td>
    <td><div align="center"><?php echo $a_row[39];?></div></td>
    <td><div align="center"><?php echo $a_row[40];?></div></td>
    <td><div align="center"><?php echo $a_row[41];?></div></td>
    <td><div align="center"><?php echo $a_row[42];?></div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFCC"><strong>Other Qualification </strong></td>
     <td><div align="center"><?php echo $a_row[43];?></div></td>
    <td><div align="center"><?php echo $a_row[44];?></div></td>
    <td><div align="center"><?php echo $a_row[45];?></div></td>
    <td><div align="center"><?php echo $a_row[46];?></div></td>
    <td><div align="center"><?php echo $a_row[47];?></div></td>
    <td><div align="center"><?php echo $a_row[48];?></div></td>
  </tr>
</table></td>
    </tr>
  
  <tr>
    <td height="20" colspan="4" align="right" valign="top" style="border:none;background:url(images/title2.jpg); height:20; color:#990000; background-repeat:repeat-x;"><div align="left" >Other  Information </div></td>
    </tr>
  <tr>
    <td align="right" valign="top" ><div align="left" class="arrow">Experiences </div></td>
    <td align="left" valign="top" >
      
      <div align="left"><strong><?php echo $a_row[49];?>      </strong></div></td>
    <td align="right" valign="top" ><div align="left" class="arrow">Hobbies </div></td>
    <td align="left" valign="top" >
      
      <div align="left"><strong><?php echo $a_row[50];?>      </strong></div></td>
    </tr>
  
  <tr>
    <td align="right" valign="top" ><div align="left" class="arrow">Salary Drawn </div></td>
    <td align="left" valign="top" >
      
      <div align="left"><strong><?php echo $a_row[51];?>      </strong></div></td>
    <td align="right" valign="top" >&nbsp;</td>
    <td align="left" valign="top" >&nbsp;</td>
    </tr>
  
  
  <tr style="border:none;background:url(images/title2.jpg); height:20; color:#990000; background-repeat:repeat-x;">
    <td colspan="4" align="right" valign="top" ><div align="left"><strong>Name & Address of Two Persion to whom you know well:</strong></div></td>
    </tr>
  
  <tr>
    <td align="right" valign="top" ><div align="left" class="arrow">Name - Frist Persion </div></td>
    <td align="left" valign="top" >
      
      <div align="left"><strong><?php echo $a_row[54];?>      </strong></div></td>
    <td align="right" valign="top" ><div align="left" class="arrow">Address - Frist Persion </div></td>
    <td align="left" valign="top" >
      
      <div align="left"><strong><?php echo $a_row[55];?>      </strong></div></td>
    </tr>
  
  <tr>
    <td align="right" valign="top" style="border:none"><div align="left" class="arrow">Name - Second Persion </div></td>
    <td align="right" valign="top" style="border:none">
    <div align="left"><strong><?php echo $a_row[56];?>      </strong></div></td>
    <td align="left" valign="top" style="border:none"><div align="left" class="arrow">Address - Second Persion </div></td>
    <td align="left" valign="top" style="border:none">
      <div align="left"><strong><?php echo $a_row[57];?>      </strong></div></td>
  </tr>
  <tr>
    <td align="right" valign="top" style="border:none">&nbsp;</td>
    <td align="right" valign="top" style="border:none">&nbsp;</td>
    <td align="left" valign="top" style="border:none">&nbsp;</td>
    <td align="left" valign="top" style="border:none">&nbsp;</td>
    </tr>
</table></div></td>
    <td valign="top"><table width="100%" border="1" cellspacing="2" cellpadding="2">
  <tr>
    <td colspan="2" style="color:#FFF; background-color:#930; padding:2px;">Salary Payment Report</td>
    </tr><tr>
    <td align="right"><strong>Month</strong></td>
    <td><strong>Payment</strong></td>
    </tr>
  <tr>
    <td align="right">APRIL</td>
    <td><?php include "sffe/april.php"; ?> </td>
    </tr>
  <tr>
    <td align="right">MAY</td>
    <td><?php include "sffe/may.php"; ?></td>
    </tr>
   <tr>
    <td align="right">JUN</td>
    <td><?php include "sffe/june.php"; ?></td>
    </tr>
  <tr>
    <td align="right">JULY</td>
    <td><?php include "sffe/july.php"; ?></td>
    </tr>
  <tr>
    <td align="right">AUGUST</td>
    <td><?php include "sffe/aug.php"; ?></td>
    </tr>
  <tr>
    <td align="right">SEPTEMBER</td>
    <td><?php include "sffe/sep.php"; ?></td>
    </tr>
  <tr>
    <td align="right">OCTOBER</td>
   <td><?php include "sffe/oct.php"; ?></td>
    </tr>
  <tr>
    <td align="right">NOVEMBER</td>
    <td><?php include "sffe/nov.php"; ?></td>
    </tr>
  <tr>
    <td align="right">DECEMBER</td>
    <td><?php include "sffe/dec.php"; ?></td>
    </tr>
  <tr>
    <td align="right">JANUARY</td>
    <td><?php include "sffe/jan.php"; ?></td>
    </tr>
  <tr>
    <td align="right">FEBRUARY</td>
    <td><?php include "sffe/feb.php"; ?></td>
    </tr>
  <tr>
    <td align="right">MARCH</td>
    <td><?php include "sffe/mar.php"; ?></td>
    </tr>
 
</table><?php include "teacher/fees_detail.php"; ?></td>
  </tr>
  <tr>
    <td colspan="2"><?php

$query = "SELECT * FROM salary where sr_no='$en' and session='$session' and code='$code' ORDER BY month DESC";
$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);
$result = mysql_query($query) or die("Couldn't execute query");

 if($numrows!=""){
?>
	<?php include "teacher/fees_pay.php"; } ?></td>
    
  </tr>
</table>
</div></div></div>
<?php 
include "footer.php"; ?>