<?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>
    #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-3 {
            background-image: linear-gradient(135deg, #603813 10%, #b29f94 100%);
            /* background: linear-gradient(0deg, rgba(96, 9, 240, 1) 0%, rgba(129, 5, 240, 1) 100%); */
            border: none;
        }

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

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

        .btn-3: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);
        }

        .btn-3:hover {
            box-shadow: 4px 4px 7px 0 rgba(255, 255, 255, .5),
                -4px -4px 7px 0 rgba(116, 125, 136, .5),
                inset -4px -4px 15px 0 rgba(255, 255, 255, .2),
                inset 4px 4px 15px 0 rgba(0, 0, 0, .4);
        }
</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:700px;background-color:transparent;border:none;align:center;">


                            <div class="row">

                                <table class="" width="100%">
                                    <tr>
                                        <td>
                                            <a href="year.php?series=1">
                                                <button type='button' autofocus class='custom-btn btn-1'><b>Potatoes & Onions</b></button>
                                            </a>
                                        </td>
                                        <td>
                                            <a href="year.php?series=2">
                                                <button type='button' class='custom-btn btn-2'><b>Garlic</b></button>
                                            </a>
                                        </td>
                                        <td>
                                            <a href="year.php?series=3">
                                                <button type='button' class='custom-btn btn-3'><b>Coconut</b></button>
                                            </a>
                                        </td>


                                    </tr>
                                </table>

                                <!-- <div class="col-lg-12">
                                    <div class="col-lg-4">
                                        <a href="year.php?series=1" style="text-decoration: none" autofocus>
                                            <div id="btn" style="background-image: linear-gradient(135deg, #F761A1 10%, #8C1BAB 100%);"><span class="noselect">Potatoes & Onions</span>
                                                <div id="circle"></div>
                                            </div>
                                        </a>
                                    </div>
                                    <div class="col-lg-4">
                                        <a href="year.php?series=2" style="text-decoration: none">
                                            <div id="btn" style="background-image: linear-gradient(135deg, #fdfcfb 10%, #e2d1c3 100%);color:black"><span class="noselect">Garlic</span>
                                                <div id="circle"></div>
                                            </div>
                                        </a>
                                        </a>
                                    </div>
                                    <div class="col-lg-4">
                                        <a href="year.php?series=3" style="text-decoration: none">
                                            <div id="btn" style="background-image: linear-gradient(135deg, #603813 10%, #b29f94 100%);"><span class="noselect">Coconut</span>
                                                <div id="circle"></div>
                                            </div>
                                        </a>
                                    </div>
                                </div>
                            </div> -->
                            
                        </div>
                    </form>
                    <!-- /simple login form -->
                </div>
                <!-- /content area -->
            </div>
            <!-- /main content -->
        </div>
        <!-- /page content -->
    </div>



</body>

</html>