<?php
require_once "config.php";

if (isset($_SESSION['user_id'])) {
    echo "<script>location.href='myProfile';</script>";
}

?>
<!DOCTYPE html>
<html lang="en">


<head>
    <meta charset="utf8" />
    <title>Employee - Jobaaj </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
    <meta content="Coderthemes" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- Favicon -->
    <link rel="shortcut icon" href="https://cdn.nishtyainfotech.com/content/jobaaj/assets/img/jobaaj-favicon.ico">

    <!-- App css -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="assets/css/app.min.css" rel="stylesheet" type="text/css" />

</head>

<body class="authentication-bg">

    <div class="account-pages my-5">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-xl-10">
                    <div class="row">
                        <div class="col-md-6 mx-auto">
                            <div class="card">
                                <div class="card-body p-5">
                                    <div class="mx-auto mb-3 text-center">
                                        <a href="javascript:;" class="text-center">
                                            <img src="https://cdn.nishtyainfotech.com/content/jobaaj/assets/svg/logos/jobaaj1.png" alt="" width="100" />
                                            <!-- <h3 class="d-inline align-middle ml-1 text-logo">Jobaaj</h3> -->
                                        </a>
                                    </div>

                                    <h6 class="h5 mb-0 mt-4">Welcome back!</h6>
                                    <p class="text-muted mt-1 mb-4">Enter your employee id and password to
                                        access admin panel.</p>

                                    <form action="fun/user_login.php" method="post" enctype="multipart/form-data" class="authentication-form">
                                        <div class="form-group mb-2">
                                            <label class="form-control-label">User Id</label>
                                            <div class="input-group input-group-merge">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text">
                                                        <i class="icon-dual" data-feather="mail"></i>
                                                    </span>
                                                </div>
                                                <input type="text" class="form-control" name="user_id" id="user_id" placeholder="Enter your user id" required>
                                            </div>
                                        </div>

                                        <div class="form-group mb-2">
                                            <label class="form-control-label">Password</label>
                                            <!-- <a href="forgot" class="float-right text-muted text-unline-dashed ml-1">Forgot your password?</a> -->
                                            <div class="input-group input-group-merge">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text">
                                                        <i class="icon-dual" data-feather="lock"></i>
                                                    </span>
                                                </div>
                                                <input type="password" name="password" class="form-control" id="password" placeholder="Enter your password" required>
                                            </div>
                                        </div>

                                        <!-- <div class="form-group mb-4">
                                            <div class="custom-control custom-checkbox">
                                                <input type="checkbox" class="custom-control-input" name="rememberMe" id="checkbox-signin">
                                                <label class="custom-control-label" for="checkbox-signin">Remember Me</label>
                                            </div>
                                        </div> -->

                                        <div class="form-group mb-0 text-center">
                                            <button class="btn btn-primary btn-block" name="login_user" type="submit"> Log In
                                            </button>
                                        </div>
                                    </form>

                                    <!-- <div class="py-3 text-center"><span class="font-size-16 font-weight-bold">Or</span></div>
                                    <div class="row">
                                        <div class="col-6">
                                            <a href="" class="btn btn-white"><i class='uil uil-google icon-google mr-2'></i>With Google</a>
                                        </div>
                                        <div class="col-6 text-right">
                                            <a href="" class="btn btn-white"><i class='uil uil-facebook mr-2 icon-fb'></i>With Facebook</a>
                                        </div>
                                    </div> -->
                                </div>
                            </div>

                        </div> <!-- end card-body -->
                    </div>
                    <!-- end card -->

                </div> <!-- end col -->
            </div>
            <!-- end row -->
        </div>
        <!-- end container -->
    </div>
    <!-- end page -->

    <!-- Vendor js -->
    <script src="assets/js/vendor.min.js"></script>

    <!-- App js -->
    <script src="assets/js/app.min.js"></script>

</body>

</html>