<?php

    session_start();

    include "../../db.php";

    date_default_timezone_set('Asia/Kolkata');

    $currentTime = date('M j, Y g:i a');



    if ( !isset($_SESSION['uid']) && !isset($_SESSION['uref']) && !isset($_SESSION['utype']) ) {

        header("Location: logout.php");

        exit();

    }



    if ( $_SESSION['utype'] != 'master_admin' && $_SESSION['uref'] != 'fssdf4543frts' ) {

        header("Location: logout.php");

        exit();

    }

?>



<!DOCTYPE html>

<html lang="en">



<head>

    <?php include "include/meta.php"; ?>

    <?php include "include/css.php"; ?>

    <?php include "include/php-functions.php"; ?>

</head>



<body>

    <!--  Header -->

    <?php 

    include "include/header2.php"; 

    ?>

    <!-- #header -->



    <section id="inner-body">

        <div class="body-content">

            <div class="container-fluid">

                <div class="row">

                    <div class="col-lg-4 col-md-4 col-12 mb-2">

                        <a href="view-admin.php" class="text-dark" style="text-decoration:none;">

                            <div class="card">

                                <div class="card-body">

                                    <div class="row">

                                        <div class="col-md-5 col-6">

                                            <h5 class="card-title text-uppercase color-4b4be9">Admin</h5>

                                        </div>

                                        <div class="col-md-7 col-6">

                                            <div class="text-end">

                                                <h2 class="color-f25f00">

                                                    <i class="fa fa-user"></i>

                                                </h2>

                                            </div>

                                        </div>

                                    </div>

                                </div>

                            </div>

                        </a>

                    </div>

                    <div class="col-lg-4 col-md-4 col-12 mb-2">

                        <a href="view-teacher.php" class="text-dark" style="text-decoration:none;">

                            <div class="card">

                                <div class="card-body">

                                    <div class="row">

                                        <div class="col-md-6 col-6">

                                            <h5 class="card-title text-uppercase color-4b4be9">Teacher</h5>

                                        </div>

                                        <div class="col-md-6 col-6">

                                            <div class="text-end">

                                                <h2 class="color-f25f00">

                                                    <i class="fa fa-chalkboard-teacher"></i>

                                                </h2>

                                            </div>

                                        </div>

                                    </div>

                                </div>

                            </div>

                        </a>

                    </div>

                    <div class="col-lg-4 col-md-4 col-12 mb-2">

                        <a href="view-student.php" class="text-dark" style="text-decoration:none;">

                            <div class="card">

                                <div class="card-body">

                                    <div class="row">

                                        <div class="col-md-6 col-6">

                                            <h5 class="card-title text-uppercase color-4b4be9">Student</h5>

                                        </div>

                                        <div class="col-md-6 col-6">

                                            <div class="text-end">

                                                <h2 class="color-f25f00">

                                                    <i class="fa fa-graduation-cap"></i>

                                                </h2>

                                            </div>

                                        </div>

                                    </div>

                                </div>

                            </div>

                        </a>

                    </div>

                </div>

            </div>

        </div>



        <?php include "include/footer.php"; ?>

    </section>



    <!-- JavaScript Libraries -->



    <?php include "include/js.php"; ?>





</body>



</html>