Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.218.107.101
<?php
include("sys_connect.php");
include("sys_mainphp.php");
include("sys_session.php");
//Birthday
$curr_date=date('m-d');
if($type_id=='ADMIN')
{
$mysql="select * from masempl where right(femplbday,5)= '$curr_date' and ifnull(fdeleted,'F')<>'T' order by femplname";
}
elseif($type_id=='CHIEF')
{
$mysql="select * from masempl where right(femplbday,5)= '$curr_date' and ifnull(fdeleted,'F')<>'T' order by femplname";
}
elseif($type_id=='SUPER')
{
$mysql="select * from masempl where right(femplbday,5)= '$curr_date' and ifnull(fdeleted,'F')<>'T' order by femplname";
}
else
{
$mysql="select * from masempl where fdeptcode='$dept_id' and right(femplbday,5)= '$curr_date' and ifnull(fdeleted,'F')<>'T' order by femplname";
}
$myres = mysqli_query($mycon,$mysql);
$mycnt = mysqli_num_rows($myres);
if($mycnt>0)
{
while($row = mysqli_fetch_assoc($myres))
{
$curr_date=date('d-M-Y');
$dept_name=get_dept_name($row['fdeptcode']);
echo "<a onClick=window.location='#'><span class='glyphicon glyphicon-gift'></span> ";
echo "$curr_date : Today is $row[femplname] birthday! [$dept_name]";
echo "</a>";
}
}
else
{
echo "<p class='bg-info'>No events!</p>";
}
?>
|