else
						{
						?>
                        	<a href="leave_application.php?emp_id=<?php 
echo $row["emp_id"];
?>
&leave_type=CL"><?php 
echo $left_cl;
?>
</a>
						<?	
						}
						
				?>
            </td>
             <td align="center">
            	<?php 
echo getLeavestatus($row["emp_id"], "A");
?>
            </td>
             <td align="center">
            	<?php 
echo getLeavestatus($row["emp_id"], "P");
?>
            </td>
		</tr>
	<?
	} 
}
?>
</table>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    	<?php 
                        echo getLeavestatus($row_emp['emp_id'], 'PL');
                        ?>
                                    </td>
                                     <td>
                                    	<?php 
                        echo getLeavestatus($row_emp['emp_id'], 'CL');
                        ?>
                                    </td>
                                     <td>
                                    	<?php 
                        echo getLeavestatus($row_emp['emp_id'], 'A');
                        ?>
                                    </td>
                                </tr>                                
                                <?php 
                        $s++;
                    }
                }
            }
        }
    }
}
?>
		                                              	
            </table>
        </td>