<?php
    session_start();
    include '../config.php';
    if(!$_SESSION)
    {
        header("Location: index.php");
    }
    else
    {
        $uid = $_SESSION['userid'];
        $uname = $_SESSION['uname'];
        $regime_type = $_SESSION['regime_type'];
        $cargo_channel = $_SESSION['cargo_channel'];
    }    
?>
<!DOCTYPE html>
<html>
    <head>
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
        <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
        <script src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script>
        <script src="https://cdn.datatables.net/1.10.22/js/dataTables.bootstrap4.min.js"></script>
        <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
        <title><?php echo $uname ; ?></title>
        <style>
            body 
            {
                margin: 0;
                padding: 0;
                background-color: #9c9c9ca3;
                height: 100vh;
                
            }
            th,td,p,input
            {
                font: 14px Verdana;
            }    
            table,th,td
            {
                border: solid 1px #DDD;
                border-collapse: collapse;
                padding: 2px 3px;
                text-align: center;
            }
            th 
            {
                font-weight: bold;
            }
            a
            {     
                display: inline-block;     
                position: relative;    
                z-index: 1;     
                padding: 2em;     
                margin: -2em; 
            }
            .red
            {
                background-color : red;
            }
            footer 
            {
                position: fixed;
                left: 0;
                bottom: 0;
                width: 100%;
                background-color: #255a89ba;
                color: white;
                text-align: center;
            }
        </style>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/jszip.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/xlsx.js"></script>
    </head>
    <body>
        <div class="container"  style="max-width: 1459px;">
            <div class="col-sm-12" style="margin-top: 13px;">
                <div class="row">
                    <div class="col-md-4">
                        <button id="btn1" class="btn btn-warning"><a href="list_company.php" style="color: azure;">Company <i class="fa fa-building" aria-hidden="true"></i></a></button> 
                    </div>  
                    <div class="col-md-4">
                        <button id="btn2" class="btn btn-primary"><a href="list_user.php" style="color: azure;"> User <i class="fa fa-user" aria-hidden="true"></i></a></button> 
                    </div>   
                    <div class="col-md-4">
                        <button id="btn3" class="btn btn-danger"><a href="get_activity.php" style="color: azure;">Activity<i class="fa fa-flag" aria-hidden="true"></i></a></button> 
                    </div>  
                </div>                      
            </div>
        </div>
    </body>
</html>