ok
Direktori : /home2/selectio/www/pvmatricschool.com/dashboard/admin/ |
Current File : /home2/selectio/www/pvmatricschool.com/dashboard/admin/header.php |
<?php ob_start(); session_start(); include("inc/config.php"); include("inc/functions.php"); include("inc/CSRF_Protect.php"); $csrf = new CSRF_Protect(); $error_message = ''; $success_message = ''; $error_message1 = ''; $success_message1 = ''; // Check if the user is logged in or not if(!isset($_SESSION['user'])) { header('location: login.php'); exit; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Admin Panel</title> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/ionicons.min.css"> <link rel="stylesheet" href="css/datepicker3.css"> <link rel="stylesheet" href="css/all.css"> <link rel="stylesheet" href="css/select2.min.css"> <link rel="stylesheet" href="css/dataTables.bootstrap.css"> <link rel="stylesheet" href="css/jquery.fancybox.css"> <link rel="stylesheet" href="css/AdminLTE.min.css"> <link rel="stylesheet" href="css/_all-skins.min.css"> <link rel="stylesheet" href="css/on-off-switch.css"/> <link rel="stylesheet" href="css/summernote.css"> <link rel="stylesheet" href="style.css"> </head> <style> .skin-blue .main-header .logo, .skin-blue .main-header .logo:hover, .skin-blue .main-header .navbar, .skin-blue .main-header .navbar .sidebar-toggle:hover { background-color: #0097bc; } </style> <body class="hold-transition fixed skin-blue sidebar-mini"> <div class="wrapper"> <header class="main-header"> <a href="index.php" class="logo"> <span class="logo-lg">PV SCHOOL</span> </a> <nav class="navbar navbar-static-top"> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <span style="float:left;line-height:50px;color:#fff;padding-left:15px;font-size:18px;">Admin Panel</span> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img src="../assets/uploads/<?php echo $_SESSION['user']['photo']; ?>" class="user-image" alt="User Image"> <span class="hidden-xs"><?php echo $_SESSION['user']['full_name']; ?></span> </a> <ul class="dropdown-menu"> <li class="user-footer"> <div> <a href="profile-edit.php" class="btn btn-default btn-flat">Edit Profile</a> </div> <div> <a href="logout.php" class="btn btn-default btn-flat">Log out</a> </div> </li> </ul> </li> </ul> </div> </nav> </header> <?php $cur_page = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); ?> <aside class="main-sidebar"> <section class="sidebar"> <ul class="sidebar-menu"> <li class="treeview <?php if($cur_page == 'index.php') {echo 'active';} ?>"> <a href="index.php"> <i class="fa fa-hand-o-right"></i> <span>Dashboard</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'settings.php') ) {echo 'active';} ?>"> <a href="settings.php"> <i class="fa fa-hand-o-right"></i> <span>Settings</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'slider.php') ) {echo 'active';} ?>"> <a href="slider.php"> <i class="fa fa-hand-o-right"></i> <span>Banner</span> </a> </li> <!--<li class="treeview <?php if( ($cur_page == 'service.php') ) {echo 'active';} ?>"> <a href="service.php"> <i class="fa fa-hand-o-right"></i> <span>Service</span> </a> </li>--> <li class="treeview <?php if( ($cur_page == 'testimonial.php') ) {echo 'active';} ?>"> <a href="testimonial.php"> <i class="fa fa-hand-o-right"></i> <span>Results</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'faq.php') ) {echo 'active';} ?>"> <a href="news.php"> <i class="fa fa-hand-o-right"></i> <span>News & Events</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'academic-result.php') ) {echo 'active';} ?>"> <a href="academic-result.php"> <i class="fa fa-hand-o-right"></i> <span>Academic Results</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'all-committee.php') ) {echo 'active';} ?>"> <a href="all-committee.php"> <i class="fa fa-hand-o-right"></i> <span>Committees</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'photo.php') || ($cur_page == 'video.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Extra Curricular Activites</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="arts-craft.php"><i class="fa fa-circle-o"></i>Arts and Craft</a></li> <li><a href="bharatham.php"><i class="fa fa-circle-o"></i>Bharatham</a></li> <li><a href="chess.php"><i class="fa fa-circle-o"></i>Chess</a></li> <li><a href="scout.php"><i class="fa fa-circle-o"></i>Scout</a></li> <li><a href="silambam.php"><i class="fa fa-circle-o"></i>Silambam</a></li> <li><a href="teakwondo.php"><i class="fa fa-circle-o"></i>Teakwondo</a></li> <li><a href="yoga.php"><i class="fa fa-circle-o"></i>Yogo</a></li> </ul> </li> <li class="treeview <?php if( ($cur_page == 'video.php') ) {echo 'active';} ?>"> <a href="video-presentation.php"> <i class="fa fa-circle-o"></i> <span>Video Presentation</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'photo.php') || ($cur_page == 'video.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Gallery</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="lap-facilies.php"><i class="fa fa-circle-o"></i>Lab Facilities</a></li> <li><a href="list-events.php"><i class="fa fa-circle-o"></i>List Of Events In 2023</a></li> <li><a href="news-papers.php"><i class="fa fa-circle-o"></i>News Paper Imprints 2022-23</a></li> <li><a href="pta-meet.php"><i class="fa fa-circle-o"></i>PTA Meeting 2022-23</a></li> <li><a href="sports.php"><i class="fa fa-circle-o"></i>Sports Achievement</a></li> <li><a href="toppers.php"><i class="fa fa-circle-o"></i>Toppers Of 2022-23</a></li> </ul> </li> <!-- <li class="treeview <?php if( ($cur_page == 'post.php') ||($cur_page == 'post-add.php') ||($cur_page == 'post-edit.php') || ($cur_page == 'category.php') || ($cur_page == 'category-add.php') || ($cur_page == 'category-edit.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Blog Posts</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="category.php"><i class="fa fa-circle-o"></i> Category</a></li> <li><a href="post.php"><i class="fa fa-circle-o"></i> Posts</a></li> </ul> </li>--> <!--<li class="treeview <?php if( ($cur_page == 'size.php') || ($cur_page == 'size-add.php') || ($cur_page == 'size-edit.php') || ($cur_page == 'color.php') || ($cur_page == 'color-add.php') || ($cur_page == 'color-edit.php') || ($cur_page == 'country.php') || ($cur_page == 'country-add.php') || ($cur_page == 'country-edit.php') || ($cur_page == 'shipping-cost.php') || ($cur_page == 'shipping-cost-edit.php') || ($cur_page == 'top-category.php') || ($cur_page == 'top-category-add.php') || ($cur_page == 'top-category-edit.php') || ($cur_page == 'mid-category.php') || ($cur_page == 'mid-category-add.php') || ($cur_page == 'mid-category-edit.php') || ($cur_page == 'end-category.php') || ($cur_page == 'end-category-add.php') || ($cur_page == 'end-category-edit.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Shop Section</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="size.php"><i class="fa fa-circle-o"></i> Size</a></li> <li><a href="color.php"><i class="fa fa-circle-o"></i> Color</a></li> <li><a href="country.php"><i class="fa fa-circle-o"></i> Country</a></li> <li><a href="shipping-cost.php"><i class="fa fa-circle-o"></i> Shipping Cost</a></li> <li><a href="top-category.php"><i class="fa fa-circle-o"></i> Top Level Category</a></li> <li><a href="mid-category.php"><i class="fa fa-circle-o"></i> Mid Level Category</a></li> <li><a href="end-category.php"><i class="fa fa-circle-o"></i> End Level Category</a></li> </ul> </li>--> <!--<li class="treeview <?php if( ($cur_page == 'product.php') || ($cur_page == 'product-add.php') || ($cur_page == 'product-edit.php') ) {echo 'active';} ?>"> <a href="product.php"> <i class="fa fa-hand-o-right"></i> <span>Product</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'order.php') ) {echo 'active';} ?>"> <a href="order.php"> <i class="fa fa-hand-o-right"></i> <span>Order</span> </a> </li>--> <!--<li class="treeview <?php if( ($cur_page == 'rating.php') ) {echo 'active';} ?>"> <a href="rating.php"> <i class="fa fa-hand-o-right"></i> <span>Rating</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'language.php') ) {echo 'active';} ?>"> <a href="language.php"> <i class="fa fa-hand-o-right"></i> <span>Language Settings</span> </a> </li>--> <!--<li class="treeview <?php if( ($cur_page == 'customer-message.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Message</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="customer-message.php"><i class="fa fa-circle-o"></i> Customer Message</a></li> </ul> </li>--> <!-- <li class="treeview <?php if( ($cur_page == 'customer.php') || ($cur_page == 'customer-add.php') || ($cur_page == 'customer-edit.php') ) {echo 'active';} ?>"> <a href="customer.php"> <i class="fa fa-hand-o-right"></i> <span>Customer</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'page.php') ) {echo 'active';} ?>"> <a href="page.php"> <i class="fa fa-hand-o-right"></i> <span>Page</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'social-media.php') ) {echo 'active';} ?>"> <a href="social-media.php"> <i class="fa fa-hand-o-right"></i> <span>Social Media</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'advertisement.php') ) {echo 'active';} ?>"> <a href="advertisement.php"> <i class="fa fa-hand-o-right"></i> <span>Advertisement</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'subscriber.php')||($cur_page == 'subscriber.php') ) {echo 'active';} ?>"> <a href="subscriber.php"> <i class="fa fa-hand-o-right"></i> <span>Subscriber</span> </a> </li>--> </ul> </section> </aside> <div class="content-wrapper">