<?php
date_default_timezone_set('Asia/Kolkata'); 
//echo $date = date("Y-m-d", time());
include ('../config.php');
@session_start();
@$user_id1=$_SESSION['user_id1'];
@$idvfied1=$_SESSION['idverified1'];
@$namevfied1=$_SESSION['namevfied1'];
if(!isset($_SESSION['user_id1'])){
	header("Location: index.php");
}

$timeout = 60 * 60 * 24 * 365;
$s_name = session_name();
if(isset( $_COOKIE[ $s_name ] )) {
  setcookie( $s_name, $_COOKIE[ $s_name ], time() + $timeout, '/' );
}

$sel1=mysqli_query($conn,"select * from hr_dump where empid='".@$user_id1."'");
$fetch1=mysqli_fetch_array($sel1);

$queryFR=mysqli_query($conn,"select * from tracker where Functional_Reporting='$fetch1[Employee_Number]'");
$dataFR=mysqli_fetch_array($queryFR);

$queryFR=mysqli_query($conn,"select * from emp_leave where Functional_Reporting='$fetch1[Employee_Number]'");
$dataFR=mysqli_fetch_array($queryFR);
?>

<!doctype html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
	<meta http-equiv="refresh" content="20; url=dashboard.php" />
    <title>Happy Birthday</title>
	
	<?php	include ('header.php');	?>
	
	<div id="appCapsule">
        <div class="section wallet-card-section pt-1">
            <div class="wallet-card">
				 
				<div class="row mt-1 mb-1">
					<div class="col" style="height: 70vh;">
						
						<!-------------- Birthday Start -------------->
						<link rel="stylesheet" href="bdy/css/bootstrap.min.css">
						<link rel="stylesheet" href="bdy/style.css">
						<div class="container">
							<div class="row">
								<div class="loader"><button id="play"></button></div>
							</div>
						</div>
						<audio class="song" controls autoplay loop><source src="bdy/Birthday.mp3" autoplay="autoplay"></source>Your browser isn't invited for super fun audio time.</audio>
						<canvas id="confetti"></canvas>
						<div class="main">
							<div class="container pt-1">
								<div class="row">
									<div class="col-12 col-xl-6 mx-auto"><img src="bdy/img/banner.png" alt=""></div>
									<div class="col-12  text-center"><div id="name" class="area">Honeyy Sir</div></div>
									<div class="col-12 text-center">
										<div class="type-wrap">
											<div id="typed-strings" class="typing">
												<h2>We Wish Happy Birthday to<br> <b><i id="nae">HONEYY SIR</i></b></h2>
												<h2>Have a wonderful day</h2>
												<h2>Filled with joy and happiness</h2>
											</div>
											<span id="typed" style="white-space:pre;"></span>
										</div>
									</div>
									<div class="col-12 col-xl-3 cake"><img src="bdy/img/cake.gif" alt=""></div>
								</div>
							</div>
							<img src="bdy/img/Balloon-Border.png" width="50%" class="balloon-border text-center">
						</div>
						<!--<script src="https://unpkg.com/magic-snowflakes/dist/snowflakes.min.js"></script>-->
						<script src="bdy/js/snowflakes.min.js"></script>
						<script src="bdy/js/jquery.js"></script>
						<script src="bdy/js/typed.min.js"></script>
						<script src="bdy/js/script.js"></script>
						
						<script>
							window.onload = function() {
								document.getElementById('play').click();
							};
						</script>

						<!-------------- Birthday Ends -------------->
					</div>
				</div>
            </div>
        </div>
	<?php	// include ('include/copyright.php');	?>
	</div>
	
	<?php	include ('footer.php');	?>