Viewing file: header.php (8.8 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("include/conn.php"); error_reporting(E_ALL); ini_set('display_errors', 1); ?> <?php session_start(); if (!isset($_SESSION['admin_name'])) { header("Location: login.php"); exit; } $admin_type = $_SESSION['admin_type']; ?> <!DOCTYPE html> <html lang="en">
<head> <meta charset="utf-8"> <meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <title>ALP Blog</title> <!-- PACE LOAD BAR PLUGIN - This creates the subtle load bar effect at the top of the page. --> <!-- <link href="css/plugins/pace/pace.css" rel="stylesheet"> --> <!-- <script src="js/plugins/pace/pace.js"></script> --> <!-- GLOBAL STYLES - Include these on every page. --> <link href="css/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href='https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic' rel="stylesheet" type="text/css"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel="stylesheet" type="text/css">
<link href="css/plugins/datatables/datatables.css" rel="stylesheet"> <!-- <------------fav icon------> <link rel="icon" type="image/png" href="img/logo.png"> <!-- THEME STYLES - Include these on every page. --> <link href="css/flex-admin.css" rel="stylesheet"> <link href="css/plugins.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- THEME DEMO STYLES - Use these styles for reference if needed. Otherwise they can be deleted. --> <link href="css/demo.css" rel="stylesheet"> <!-- CKEditor 5 (Classic Build with Plugin Support via CDN) --> <script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/ckeditor.js"></script>
<link href="css/w3.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css" integrity="sha512-5Hs3dF2AEPkpNAR7UiOHba+lRSJNeM2ECkwxUIxC1Q/FLycGTbNapWXB4tP889k5T5Ju8fs4b1P5z/iB4nMfSQ==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style> .daterangepicker td.active, .daterangepicker td.active:hover { background-color: #16a085; border-color: #16a085; color: #fff; }
.daterangepicker .ranges li.active, .daterangepicker .ranges li:hover { background: #16a085; border: 1px solid #16a085; color: #fff; }
.daterangepicker .ranges li { color: #16a085; } </style> <!-- at the modal page of the buy page product details -->
</head>
<body> <div id="wrapper"> <!-- begin TOP NAVIGATION --> <nav class="navbar-top" role="navigation"> <!-- begin BRAND HEADING --> <div class="navbar-header"> <button type="button" class="navbar-toggle pull-right" data-toggle="collapse" data-target=".sidebar-collapse"> <i class="fa fa-bars"></i> Menu </button> <div class="navbar-brand"> <a href="index.php"> <b style="color:white;">ALP Blog Admin</b> </a> </div> </div> <!-- end BRAND HEADING --> <div class="nav-top"> <!-- begin LEFT SIDE WIDGETS --> <ul class="nav navbar-left"> <li class="tooltip-sidebar-toggle"> <a href="#" id="sidebar-toggle" data-toggle="tooltip" data-placement="right" title="Sidebar Toggle"> <i class="fa fa-bars"></i> </a> </li> <!-- You may add more widgets here using <li> --> </ul> <!-- end LEFT SIDE WIDGETS --> <!-- begin MESSAGES/ALERTS/TASKS/USER ACTIONS DROPDOWNS --> <ul class="nav navbar-right"> <!-- begin USER ACTIONS DROPDOWN --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-user"></i> <i class="fa fa-caret-down"></i> </a> <ul class="dropdown-menu dropdown-user"> <li> <a class="logout_open" href="logout.php"> <i class="fa fa-sign-out"></i> Logout <strong>Admin </strong> </a> </li> </ul> <!-- /.dropdown-menu --> </li> </ul> <!-- /.nav --> <!-- end MESSAGES/ALERTS/TASKS/USER ACTIONS DROPDOWNS --> </div> <!-- /.nav-top --> </nav> <!-- /.navbar-top --> <!-- end TOP NAVIGATION --> <!-- begin SIDE NAVIGATION --> <nav class="navbar-side" role="navigation"> <div class="navbar-collapse sidebar-collapse collapse"> <ul id="side" class="nav navbar-nav side-nav"> <!-- begin SIDE NAV USER PANEL --> <li class="side-user hidden-xs"> <img class="img-circle" src="img/logo.png" alt="" style='width:150px;'> <p class="welcome"> <i class="fa fa-key"></i> Logged in as </p> <p class="name tooltip-sidebar-logout"> <?php echo $_SESSION['admin_name'] ?> [<?= $admin_type ?>] <span class="last-name"></span> <a style="color: inherit" class="logout_open" href="logout.php" data-toggle="tooltip" data-placement="top" title="Logout"><i class="fa fa-sign-out"></i></a> </p> <div class="clearfix"></div> </li> <!-- <li class="panel"> <a class="" href="./index.php"> <i class="fa fa-dashboard"></i>Dashboard </a> </li> -->
<li class="panel"> <a class=" " href="./articles.php"> <i class="fa-solid fa-book" style="padding-right: 10px;"></i>Articles </a> <i class=""></i> </li> <?php if ($admin_type === 'Super Admin') { ?> <li class="panel"> <a class=" " href="./banners.php"> <i class="fa-solid fa-book" style="padding-right: 10px;"></i>Banners </a> <i class=""></i> </li> <?php } ?> <li class="panel"> <a class=" " href="./comments.php"> <i class="fa-solid fa-message" style="padding-right: 10px;"></i> Comments </a> </li> <?php if ($admin_type === 'Admin' || $admin_type === 'Super Admin') { ?> <li class="panel"> <a class=" " href="./subscribers.php"> <i class="fa-solid fa-user-tie" style="padding-right: 10px;"></i> Subscribers </a> </li> <li class="panel"> <a class=" " href="./adminuser.php"> <i class="fa-solid fa-address-book" style="padding-right: 10px;"></i>Admin Users </a> </li>
<?php
} ?> <!--<a class="" href="./changepassword.php?id=<?php echo $_SESSION['admin_name'] ?>"> <i class="fa fa-key"></i>Change Password </a> </li> -->
<li class=""> <a class="" href="./logout.php"> <i class="fa fa-sign-out"></i> Logout </a> </li> </ul> <!-- /.side-nav -->
</div>
<!-- /.navbar-collapse --> </nav>
|