Current File : /home/inlingua/www/icentex/general_admin_leave/admin_leave.php |
<?php
include("header_leave.php");
// Include the database connection details
require('../dbConnection.php');
// Include common functions
require('../commonFunc.php');
// Include common functions
require('../globalVars.php');
// Include the table handler class
require('../dbHandler.class.php');
// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();
$queryLWC= "SELECT COUNT( id ) AS tot FROM leaves_non_teach leav INNER JOIN timesheet_user user ON leav.timesheet_user_id = user.recNo
WHERE (user.superwiser =".$_SESSION['id']." and leav.status = 'waiting' ) ||(user.manager =".$_SESSION['id']." and leav.status = 'waiting' or leav.status = 'remarks' )";
$resultLWC=mysqli_query($conn,$queryLWC);
$numLWC=mysqli_fetch_array($resultLWC);
?>
<style>
#adfrom h2,h4,h5,h6
{
/*font-family: Georgia, "Times New Roman", Times, serif;*/
color: #069; /* CHANGE TO CORPORATE COLOUR */
margin-bottom: 1em;
border-bottom:none;
padding-bottom: 0.3em;
}
#adfrom img
{
padding: 3px;
border: 1px solid #ccc;
}
#adfrom a img
{
padding: 3px;
border: 1px solid #ccc;
}
#adfrom a img:hover
{
padding: 3px;
border:none;
}
</style>
<h3>Admin Leaves</h3>
<table align="center" cellpadding="3" cellspacing="3" width="99%" id="adform">
<tbody>
<tr>
<td width="33%" align="center">
<a href="leaves.select.php?st=approved" title=""> <h5>Approved Leave History</h5></a>
<a href="leaves.select.php?st=approved" title=""> <img src="../images/approved.png" alt=""></a>
</td>
<td width="33%" align="center">
<a href="leaves.select.php?st=disapproved" ><h5>Denied Leaves History</h5></a>
<a href="leaves.select.php?st=disapproved" ><img src="../images/cancel.jpg" alt=" "></a></td>
<td width="33%" align="center">
<a href="leaves.select.php?st=waiting" ><h5>Pending Requests</h5></a>
<a href="leaves.select.php?st=waiting" ><img src="../images/waiting.jpg" alt=" "> </a></td>
</tr>
</tbody></table>
<?php
include("footer_leave.php");
?>