<?php
    session_start();
if(isset($_SESSION['userId'])){

}else{
header("location: ../login.php");
        }
                                    
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Home page</title>
    <!-- Bootstrap CSS -->
<meta name="viewport" content="width=device-width, initial-scale=1">
     <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet">
     <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
    <style>
        @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900');

        body {
            font-family: 'Poppins', sans-serif;
            background: aliceblue;
        }

        #list .card {
            box-shadow: 1px 1px 13px 2px #00000012;
            border: none;
        }

        .navbar.navbar-expand-lg {
            background-color: #ffffff !important;
            box-shadow: 1px 1px 3px 1px #00000012;
            position: sticky;
            top: 0;
            z-index: 10;
        }


        .navbar a img {
            height: 60px;
            padding-left: 35px;
        }

        .navbar-light .navbar-nav .nav-link {
            color: #000;
        }

        .text-primary {
            color: #009edb !important;
        }

        /*
        #container .car-holder:nth-child(-n+3) {
            padding-top: 7px !important;
        }
*/

        .navbar-light .navbar-nav .nav-link:focus,
        .navbar-light .navbar-nav .nav-link:hover {
            color: rgb(0 158 219);
        }

        .navbar-light .navbar-nav .nav-link.active {
            color: rgb(0 158 219);
        }

        #searchText {
            text-align: center;
            border-radius: 19px;
            padding: 7px 20px;
            border-color: #009edb;
            font-size: 14px;
        }

        .btn-outline-primary {
            background: #04a0dc;
            border-radius: 50px;
            color: #fff;
            padding: 6px 20px;
            border-color: #04a0dc;
        }

        .btn-outline-primary:active,
        .btn-outline-primary:focus,
        .btn-outline-primary:hover {
            background-color: #222222 !important;
            border-color: #222222 !important;
            box-shadow: 1px 1px 5px #020202 !important;
        }

        .card-footer a.btn-outline-info {
            color: #9da2a5;
            background-color: transparent;
            border-color: none;
            border: none;
            font-size: 0.9rem;
        }

        .card-footer a.btn-outline-info:hover {
            color: #fff !important;
            border-color: #222222 !important;
            background-color: #222222 !important;
            box-shadow: 1px 1px 5px #020202 !important;
        }
        th{
            text-align: inherit;
    color: #04a0dc;
    font-weight: 100;
    line-height: 1.7;
        }

        /* right bounce */
        @-webkit-keyframes bounceRight {

            0%,
            20%,
            50%,
            80%,
            100% {
                -webkit-transform: translateX(0);
                transform: translateX(0);
            }

            40% {
                -webkit-transform: translateX(-15px);
                transform: translateX(-15px);
            }

            60% {
                -webkit-transform: translateX(-7.5px);
                transform: translateX(-7.5px);
            }
        }

        @-moz-keyframes bounceRight {

            0%,
            20%,
            50%,
            80%,
            100% {
                transform: translateX(0);
            }

            40% {
                transform: translateX(-15px);
            }

            60% {
                transform: translateX(-7.5px);
            }
        }

        @keyframes bounceRight {

            0%,
            20%,
            50%,
            80%,
            100% {
                -ms-transform: translateX(0);
                transform: translateX(0);
            }

            40% {
                -ms-transform: translateX(-15px);
                transform: translateX(-15px);
            }

            60% {
                -ms-transform: translateX(-7.5px);
                transform: translateX(-7.5px);
            }
        }

        /* /right bounce */


        /* assign bounce */
        .card-footer a.btn-outline-info:hover .fa-arrow-right {
            -webkit-animation: bounceRight 2s infinite;
            animation: bounceRight 2s infinite;
            float: right;
            padding-top: 4px;
            padding-left: 10px;
            opacity: 1;

        }

        .card-footer .fa-arrow-right {
            padding-left: 10px;
            opacity: 0;
        }

    </style>
</head>

<body>
    <!-- Navbar start -->
    <nav class="navbar navbar-expand-lg bg-dark navbar-light">
        <a class="navbar-brand" href="./index.php">
            <img src="images/pacslogo.jpg" alt="Navbar" />
        </a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <h2 class="m-auto text-success">FTA MANUAL ENTRIES</h2>
            <ul class="navbar-nav">
                <li class="nav-item pr-2">
                    <a class="nav-link" href="../">Home<span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item pr-2">
                    <a class="nav-link active" href="index.php">Search FTA <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item pr-2">
                    <a class="nav-link" href="html/add_New_FTA_Details.php">Add New FTA</a>
                </li>
            </ul>
            <form id="searchForm" class="form-inline  ml-sm-0 ml-5">
                <input class="form-control mr-sm-2" id="searchText" type="search" placeholder="Search by Emp-ID" aria-label="Search" required />
                <input class="form-control mr-sm-2" id="siteVisitDate" type="date" aria-label="Search" required />
                <button class="btn btn-outline-primary my-2 my-sm-0 text-white" type="submit">
                    Search<i id="searchSiteIdSpinner" class="d-none fa fa-spinner fa-spin"></i>
                </button>
            </form>
        </div>
    </nav>

    <!-- Navbar end -->
    <div class="container" id="container">
        <div id="list" class="row"></div>
    </div>
    <script src="../js/constants.js"></script>
    <script src="js/common.js"></script>
    <script src="js/main.js"></script>
    <script src="js/checkSessionState.js"></script>
    
</body>

</html>
