<link href="style.css" rel="stylesheet" type="text/css" border="0"/>
	<style type="text/css">
<!--
.style7 {color: #000000}
.style12 {font-size: 12px; color: #0000FF; }
.style13 {color: #0000FF; font-variant: small-caps; font-size: 12px; }
.style15 {color: #990000}
.style16 {
	color: #000000;
	font-weight: bold;
	font-style: italic;
}
.style19 {color: #000000; font-weight: bold; }
.style20 {color: #FF0000; font-weight: bold; }
.style41 {color: #0000FF}
.style42 {color: #0000FF; font-weight: bold; }
.style43 {color: #FFFFFF}
-->
    </style><table width="100%"  border="0" cellspacing="0" cellpadding="4" align="center" class="table">
<tr><td colspan="13" align="center" class="txt_form style7" style="border:0px; background-color:#FFFFFF;">

  </td>
</tr>
 <tr><td align="center">
   <div style=" height:200px;overflow:auto;"> <?php
$resultt = mysql_query("SELECT * FROM add_teachers where sr_no='$en' and session='$session' and code='$code' ORDER BY id DESC");
 $id=mysql_result($resultt,$i,"id");
 $sr_no=mysql_result($resultt,$i,"sr_no");
 $name=mysql_result($resultt,$i,"name");
  $f_h_name=mysql_result($resultt,$i,"f_h_name");
?>
<div align="center"><?php echo $id;  ?> - <?php echo $name;  ?> - <?php echo $f_h_name;  ?></div>
   <table cellpadding="2" border="1" cellspacing="0"  width="100%">
 <tr bgcolor="#5582C2">
	
 <td align="center" valign="top" bgcolor="#FFCC66" ><div align="center" class="style4" >Date</div></td>
 <td align="center" valign="top" bgcolor="#FFCC66" >Staff ID</td>
 <td align="center" valign="top" bgcolor="#FFCC66" ><div align="center" class="style4" >Payment Option</div></td>
 <td align="center" valign="top" bgcolor="#FFCC66" ><div align="center" class="style4" > Salary</div></td>
 <td align="center" valign="top" bgcolor="#FFCC66" ><div align="center" class="style4" >Deduction</div></td>
 <td align="center" valign="top" bgcolor="#FFCC66" ><div align="center" class="style4" >Bonus</div></td>
 <td align="center" valign="top" bgcolor="#FFCC66" ><div align="center" class="style4" >Total</div></td>
 <td  align="center" valign="top" bgcolor="#FFCC66" ><div align="center" class="style13 style5 style3">Delete</div></td>
 </tr>
 <?php
while ( $a_row = mysql_fetch_row( $result ) )
 {?>

<tr>
 <td align="center" valign="top" bgcolor="#FFFFCC" class="txt_form"><div align="center" class="style19"><?php echo $a_row[2];?>-<?php echo $a_row[3];?>-<?php echo $a_row[4];?></div></td>
 <td align="center" valign="top" class="txt_form"><div align="center" class="style7"><?php echo $a_row[1];?></div></td>
 <td align="center" valign="top" class="txt_form"><div align="center" class="style7"><?php echo $a_row[10];?></div></td>
 <td align="center" valign="top" class="txt_form"><div align="center" class="style7"><?php echo $a_row[6];?></div></td>
 <td align="center" valign="top" class="txt_form"><div align="center" class="style7"><?php echo $a_row[7];?></div></td>
 <td align="center" valign="top" class="txt_form"><div align="center" class="style7"><?php echo $a_row[8];?></div></td>
 <td align="center" valign="top" bgcolor="#990000" class="txt_form"><div align="center" class="style43 style19"><strong><?php echo $a_row[27];?></strong></div></td>
 <td valign="top" align="center">
<form action="add_new_admission_delete.php" enctype="multipart/form-data" method="post"><input type="submit" name="Submit"  value="Delete" /><input type="hidden" name="table" value="salary" />
	<input type="hidden" name="id" value="<?php echo $a_row[0];?>" />
	 </form></td></tr>
  <?php 
  $mode_pay=$a_row[14];
  $tutionn=$a_row[6];
  $tution+=$tutionn;?>
  <?php $deduction+=$a_row[7];?>
  <?php $bonus+=$a_row[8];?>
  <?php $gtotal+=$a_row[27];?>
   <?php $counter++;}?></table>
</td></tr>
<tr><td>
<form action="short_detail_print.php" method="post" enctype="multipart/form-data" >
<table width="100%" border="1" cellspacing="2" cellpadding="2">
  <tr>
    <td colspan="4" class="style16 style12 style10"><div align="center"><strong>FEES REPORT SHORT DETAIL </strong></div></td>
    </tr>
  <tr>
    <td width="17%" class="style16 style12 style10">Total Salary</td>
    <td width="15%" class="style19"><strong><?php echo $tution;?>/-</strong></td>
    <td width="18%" class="style16 style12 style10">Total Duduction </td>
    <td width="13%" class="style42 style12 style10"><strong><?php echo $deduction; ?>/-</strong></td>
    </tr>
  <tr>
    <td class="style16 style12 style10">Total Grand Total</td>
    <td class="style19"><strong><?php echo $gtotal;?>/-</strong></td>
    <td class="style16 style12 style10">Total Bonus</td>
    <td class="style20 style12 style10"><strong><?php echo $bonus; ?>/-</strong>
        </td>
    </tr>
    </table>
</form>