<?php
require("includes/check_auth_user.php");
require("includes/dbconnect.php");
require("includes/function.php");

$zdir = $dbname;
$zcomp = 1;
$zdbroot = $zdir;
$focusfield = "user";
$usertype = $_SESSION["usertype"];
$username = $_SESSION["username"];

if (isset($_POST["submit"])) {

    $series = $_POST["series"];
    $_SESSION["series_" . $dbname] = $series;


    header("Location: year.php");
}
// include("includes/linkshead.php");
?>
<style>

    body{
        height: 100%;
        margin: 20% 30%;    
        padding: 3% 4%;    
        background: linear-gradient(135deg, orange 40%, cyan);
        background-repeat: no-repeat;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .content-wrapper{
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .content{
        justify-content: center;
        text-align: center;
        align-items: center;
    }
    
    .login-form{
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    #btn {

        height: 100px;
        min-width: 170px;
        border: none;
        border-radius: 10px;
        color: #eee;
        font-size: 22px;
        /* font-family: 'Cookie', cursive; */
        position: relative;
        transition: 1s;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding-top: 5px;
    }

    #btn #circle {
        width: 5px;
        height: 5px;
        background: transparent;
        border-radius: 50%;
        position: absolute;
        top: 0;
        left: 50%;
        color: #000;
        overflow: hidden;
        transition: 500ms;
    }

    .noselect {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    #btn:hover {
        background: transparent;
    }

    a :-webkit-any-link {
        text-decoration: none;
    }

    a :focus {
        text-decoration: none;
    }

    .custom-btn {
            width: 200px;
            height: 100px;
            color: #fff;
            border-radius: 10px;
            padding: 10px 25px;
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            font-weight: 700;
            background: transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            display: inline-block;
            box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
                7px 7px 20px 0px rgba(0, 0, 0, .1),
                4px 4px 5px 0px rgba(0, 0, 0, .1);
            outline: none;
            font-size: 25px;
        }


        .btn-1 {
            background-image: linear-gradient(135deg, #F761A1 10%, #8C1BAB 100%);
            /* background: #34a853; */
            /* background: linear-gradient(0deg, rgba(96, 9, 240, 1) 0%, rgba(129, 5, 240, 1) 100%); */
            /* border: 2px solid #34a853; */
            border: none;
        }

        .btn-2 {
            background-image: linear-gradient(135deg, #fdfcfb 10%, #e2d1c3 100%);
            /* background: #039be5; */
            /* background: linear-gradient(0deg, rgba(96, 9, 240, 1) 0%, rgba(129, 5, 240, 1) 100%); */
            border: none;
            color:#000;
        }

        .btn-1:before {
            height: 0%;
            width: 2px;
        }

        .btn-2:before {
            height: 0%;
            width: 2px;
        }


        .btn-1:hover {
            box-shadow: 4px 4px 7px 0 rgba(255, 255, 255, .5),
                -4px -4px 7px 0 rgba(116, 125, 136, .5),
                inset -4px -4px 10px 0 rgba(255, 255, 255, .2),
                inset 4px 4px 10px 0 rgba(0, 0, 0, .4);
        }

        .btn-2:hover {
            box-shadow: 4px 4px 7px 0 rgba(255, 255, 255, .5),
                -4px -4px 7px 0 rgba(116, 125, 136, .5),
                inset -4px -4px 10px 0 rgba(255, 255, 255, .2),
                inset 4px 4px 10px 0 rgba(0, 0, 0, .4);
        }
        .content{
            justify-content: center;
            align-items: center;
        }
</style>
</head>

<body>


    <!-- Page container -->
    <div class="page-container login-container">

        <!-- Page content -->
        <div class="page-content">

            <!-- Main content -->
            <div class="content-wrapper">

                <!-- Content area -->
                <div class="content">

                    <!-- Simple login form -->
                    <form action="" method="POST">
                        <div class="panel login-form" style="width:100%;background-color:transparent;border:none;align:center;">


                            <div class="row">

                                <table class="" width="100%">
                                    <tr>
                                        <td>
                                            <a href="year.php?series=S">
                                                <button type='button' autofocus class='custom-btn btn-1'><b>Services</b></button>
                                            </a>
                                        </td>
                                        <td>
                                            <a href="year.php?series=R">
                                                <button type='button' class='custom-btn btn-2'><b>Recruitment</b></button>
                                            </a>
                                        </td>
                                    </tr>
                                </table>
                        </div>
                    </form>
                    <!-- /simple login form -->
                </div>
                <!-- /content area -->
            </div>
            <!-- /main content -->
        </div>
        <!-- /page content -->
    </div>



</body>

</html>