<!DOCTYPE HTML>
<html lang="zxx">

<head>
	<title>PNRD HCMS </title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
	<script type="application/x-javascript">
		addEventListener("load", function () {
			setTimeout(hideURLbar, 0);
		}, false);

		function hideURLbar() {
			window.scrollTo(0, 1);
		}
	</script>
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<!-- Custom Theme files -->
	<link href="css/font-awesome.css" rel="stylesheet">
	<link href="css/style.css" rel='stylesheet' type='text/css' />
	<!--fonts-->
	<link href="//fonts.googleapis.com/css?family=Josefin+Sans:100,100i,300,300i,400,400i,600,600i,700,700i" rel="stylesheet">
	<link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i" rel="stylesheet">
	<!--//fonts-->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<?php 
include 'db.php';
session_start();
$id = $_SESSION['emp_id'];
$sql = $dbh->query("select * from employee_login where id='$id'");
$row = $sql->fetch();

?>
<body>
	<!-- login -->
	<div class="login-section-agileits">
		<div class="panel panel-primary" style="border-radius: 0px;">
                        <div class="panel-heading" style="border-radius: 0px;">
							<h4><strong>OTP Send To Your Mobile No</strong></h4>
                        </div>
                        <?php if(@$_GET['succ']!=NULL){?>
                         <div class="alert alert-success alert-dismissable" style="margin-bottom: 0px; border-radius: 0px;">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                             <?php echo @$_GET['succ'];?>
                            </div>
                             <?php } 
							 if(@$_GET['wrong']!=NULL){?>
                            <div class="alert alert-danger alert-dismissable" style="margin-bottom: 0px; border-radius: 0px;">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                <?php echo @$_GET['wrong'];?>
                            </div>
                            <?php }?>
                        <div class="panel-body">
		<form action="chk_otp.php" method="post">
			<div class="w3ls-icon">
				<span class="fa fa-user" aria-hidden="true"></span>
				<input type="text" class="lock" id="otp" name="otp" placeholder="Enter OTP" required="" />
				<input type="hidden" name="id" value="<?php echo $row['0'];?>"/>
			</div>
			</div>
			<div class="panel-footer">
				<input type="submit" id="sub" value="Submit">
			</div>
		</form>
			
		</div>
	</div>
	
</body>

</html>