Current File : /home/inlingua/public_html/icentex/procedures/admin_updates.php
<?php
include("header_procedure.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 where status='waiting' && timesheet_user_id='".$_SESSION['id']."'";
		$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>Updates</h3>
	
	
	<table align="center" cellpadding="3" cellspacing="3" width="99%" id="adform">
					<tbody>
	
<?php
$dbObject_tot = new dbHandler();
$dbObject_tot->connect();
$querytotupdates="select recNo  from messages where 1=1 && to_send='".$_SESSION['id']."' &&  to_viewed = '0' &&  to_deleted = '0'";
$selectedRecords_msg = $dbObject_tot->Select($querytotupdates);
if($selectedRecords_msg>0)
{
$flag="<img src='images/new-blinking.gif' style='border:none;'>";
}
else
{
$flag="";
}
?>
<tr>
<td width="33%" align="center"> 
<a href="private_messages.php" title=""> <h5>Updates (<?php echo $selectedRecords_msg; ?>) <?php echo $flag; ?></h5></a>
<a href="private_messages.php" title="">	<img src="images/compose.jpeg" alt="" width='50' height='50'></a>
</td>
<td width="33%" align="center">&nbsp; 

</td>
<td width="33%" align="center">&nbsp; 

</td>
</tr>
</tbody></table>	

			

<?php
include("footer_procedure.php");
?>