<?php
include('../common/db_connection.php');
$Mainclass=new DB_Controller();
if($_COOKIE['Payroll_Emp_Attendance']!=NULL)
{
	header("Location:attendance.php");
}
if(isset($_REQUEST['login']))
{
$Log_Success=$Mainclass->Num_rows_Check('employee_master',"Binary User_Id","'".$_REQUEST['user-name']."' and Binary Password='".$_REQUEST['password']."' and Active='Yes' and Portal_Access='Yes'");
if($Log_Success>0)
{
$Userdet=$Mainclass->Fetch_needed_datas('employee_master','Emp_Temp_Id',"Binary User_Id","'".$_REQUEST['user-name']."' and Binary Password='".$_REQUEST['password']."'");
$Mainclass->employee_cookies('Payroll_Emp_Attendance',$Userdet['Emp_Temp_Id']);
	header("Location:attendance.php");
}
else
{
$msg="Invalid Credentials.";
}
}
?>
<!DOCTYPE html>
<html lang="en">

<!-- Mirrored from colorlib.com//polygon/admindek/default/auth-sign-in-social.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Nov 2019 12:52:22 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head>
<title>Payroll Management</title>


<!--[if lt IE 10]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
      <![endif]-->

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="Admindek Bootstrap admin template made using Bootstrap 4 and it has huge amount of ready made feature, UI components, pages which completely fulfills any dashboard needs." />
<meta name="keywords" content="bootstrap, bootstrap admin template, admin theme, admin dashboard, dashboard template, admin template, responsive" />
<meta name="author" content="colorlib" />

<!--<link rel="icon" href="https://colorlib.com//polygon/admindek/files/assets/images/favicon.ico" type="image/x-icon">-->

<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Quicksand:500,700" rel="stylesheet">

<link rel="stylesheet" type="text/css" href="files/bower_components/bootstrap/css/bootstrap.min.css">

<link rel="stylesheet" href="files/assets/pages/waves/css/waves.min.css" type="text/css" media="all"> <link rel="stylesheet" type="text/css" href="../files/assets/icon/feather/css/feather.css">

<link rel="stylesheet" type="text/css" href="files/assets/icon/themify-icons/themify-icons.css">

<link rel="stylesheet" type="text/css" href="files/assets/icon/icofont/css/icofont.css">

<link rel="stylesheet" type="text/css" href="files/assets/icon/font-awesome/css/font-awesome.min.css">

<link rel="stylesheet" type="text/css" href="files/assets/css/style.css"><link rel="stylesheet" type="text/css" href="files/assets/css/pages.css">
<br>
<script src="js/jquery.min.js"></script>

</head>
<body themebg-pattern="theme1">

<div class="theme-loader">
<div class="loader-track">
<div class="preloader-wrapper">
<div class="spinner-layer spinner-blue">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-red">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-yellow">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-green">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
</div>

<section class="login-block">

<div class="container-fluid">
<div class="row">
<div class="col-sm-12">

<form class="md-float-material form-material" method="post">
<div class="text-center" style="font-size:25px;">
<!--<img src="files/assets/images/logo.png" alt="logo.png">-->PAYROLL MANAGEMENT
</div>
<div class="auth-box card">
<div class="card-block">
<div class="row m-b-20">
<div class="col-md-12">
<h3 class="text-center txt-primary">Log In</h3>
</div>
</div>

<p class="text-muted text-center p-b-5">Log in with your regular account</p>
<div class="form-group form-primary">
<input type="text" name="user-name" class="form-control" placeholder="Username" required="" style="outline:none;" autocomplete="off">
<span class="form-bar"></span>
<!--<label class="float-label">Username</label>-->
</div>
<div class="form-group form-primary">
<input type="password" name="password" class="form-control" placeholder="Password" required="" style="outline:none;" autocomplete="off">
<span class="form-bar"></span>
<!--<label class="float-label">Password</label>-->
</div>

<div class="row m-t-30">
<div class="col-md-12">
<button type="submit" class="btn btn-primary btn-md btn-block waves-effect text-center m-b-20" name="login">LOGIN</button>
<span style="color:#FF0000"><?php echo $msg; ?></span>
</div>
</div>

</div>
</div>
</form>

</div>

</div>

</div>

</div>

</section>





<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/bower_components/jquery/js/jquery.min.js"></script>
<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/bower_components/jquery-ui/js/jquery-ui.min.js"></script>
<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/bower_components/popper.js/js/popper.min.js"></script>
<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/bower_components/bootstrap/js/bootstrap.min.js"></script>

<script src="../files/assets/pages/waves/js/waves.min.js" type="fb54f96f72c5e07a2922868c-text/javascript"></script>

<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/bower_components/jquery-slimscroll/js/jquery.slimscroll.js"></script>

<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/bower_components/modernizr/js/modernizr.js"></script>
<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/bower_components/modernizr/js/css-scrollbars.js"></script>
<script type="fb54f96f72c5e07a2922868c-text/javascript" src="files/assets/js/common-pages.js"></script>


</body>

<!-- Mirrored from colorlib.com//polygon/admindek/default/auth-sign-in-social.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Nov 2019 12:52:22 GMT -->
</html>
