<?php session_start();
require_once 'config.php';
echo $uid = $_REQUEST['uid'];
$sql11 = "SELECT * FROM tbl_users WHERE id='$uid'";
$rncnt11 = getRow($sql11);
if($rncnt11 > 0){
    $row = getRecord($sql11);
    $_SESSION['User'] = $row;
}    
$UserId = $_SESSION['User']['id'];
$PageName = "Home";
?>


<!doctype html>
<html lang="en" class="h-100">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="generator" content="">
    <title><?php echo $Proj_Title; ?></title>

    <!-- manifest meta -->
    <meta name="apple-mobile-web-app-capable" content="yes">

    <!-- Favicons -->
    <link rel="manifest" href="manifest.json" />

    <!-- Favicons -->
    <link rel="apple-touch-icon" href="img/favicon180.png" sizes="180x180">
    <link rel="icon" href="img/favicon32.png" sizes="32x32" type="image/png">
    <link rel="icon" href="img/favicon16.png" sizes="16x16" type="image/png">

    <!-- Material icons-->
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

    <!-- Google fonts-->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">

    <!-- swiper CSS -->
    <link href="vendor/swiper/css/swiper.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <!-- Custom styles for this template -->
    <link href="css/style.css" rel="stylesheet" id="style">
</head>

<body class="body-scroll d-flex flex-column h-100 menu-overlay" data-page="shop" style="text-align: center;">
    <?php include_once 'sidebar.php'; ?>

    <!-- Begin page content -->
    <main class="flex-shrink-0 main has-footer">
        <!-- Fixed navbar -->
      <?php include_once 'top_header.php'; ?>

        <!-- page content start -->

        <div class="main-container">
            <div class="container ">
         
                       
                        <div class="row justify-content-equal no-gutters">
                            
                              

                          
                            <div class="col-4 col-md-2 " style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=study-material&tblname=tbl_study_materials"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/1.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Study Material</small></p>
                                </div>
                            </div>

                            <div class="col-4 col-md-2 " style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=assignments&tblname=tbl_assignments"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/2.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Assignments</small></p>
                                </div>
                            </div>

                           <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="payment-history.php"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/5.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Payment History</small></p>
                                </div>
                            </div>
                            
                            <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=stud-interview&tblname=tbl_stud_interviews"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/3.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Interviews</small></p>
                                </div>
                            </div>

                             <div class="col-4 col-md-2 " style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=online-classes&tblname=tbl_online_classes"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/4.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Online Classes</small></p>
                                </div>
                            </div>

                             


                            <!-- <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=upcomming-discussion&tblname=tbl_upcomming_discussions"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/6.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Upcoming Discussion</small></p>
                                </div>
                            </div> -->

                            <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=current-affairs&tblname=tbl_current_affairs"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/6.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Current Affairs</small></p>
                                </div>
                            </div>

                             <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=test-series&tblname=tbl_test_series"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/7.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Test Series</small></p>
                                </div>
                            </div>

                            <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=resources&tblname=tbl_resources"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/8.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Resources</small></p>
                                </div>
                            </div>

                            <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="departments.php?page=subscribe-course"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/8.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Subscribe Course</small></p>
                                </div>
                            </div>

                            <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="faqs.php"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/9.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>FAQ's</small></p>
                                </div>
                            </div>

                            <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="profile.php"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/10.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Profile</small></p>
                                </div>
                            </div>

                            

                            <div class="col-4 col-md-2" style="background-color: #fff;border: 1px solid #f9f9f9;">
                               <div class="card-body p-2">
                                    <a href="JavaScript:Void(0);" onclick="logout()"><div class="avatar avatar-60 mb-1 rounded">
                                        <div class="background">
                                            <img src="icons/11.jpg" alt="">
                                        </div>
                                    </div></a>
                                   <p class="text-secondary"><small>Log Out</small></p>
                                </div>
                            </div>


                            
                        </div>
                        
                    
            </div>
 
        </div>
    </main>

    <!-- footer-->
  <?php include_once 'footer.php'; ?>


    <!-- Required jquery and libraries -->
      <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="vendor/bootstrap/js/bootstrap.min.js"></script>

    <!-- cookie js -->
    <script src="js/jquery.cookie.js"></script>

    <!-- Swiper slider  js-->
    <script src="vendor/swiper/js/swiper.min.js"></script>

    <!-- Customized jquery file  -->
    <script src="js/main.js"></script>
    <script src="js/color-scheme-demo.js"></script>

    <!-- PWA app service registration and works -->
    <script src="js/pwa-services.js"></script>

    <!-- page level custom script -->
    <script src="js/app.js"></script>

   
    <script src="js/toastr.min.js"></script>
    
    <script>
        function logout(){
       Android.logout();
       window.location.href="logout.php";
  }
    </script>
</body>

</html>
