JezK
Edit File: header.php
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png"> <link rel="icon" type="image/png" href="assets/img/favicon1.png"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Kaburu Admin Module</title> <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' /> <meta name="viewport" content="width=device-width" /> <!-- Bootstrap core CSS --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" /> <!-- Animation library for notifications --> <link href="assets/css/animate.min.css" rel="stylesheet"/> <!-- Paper Dashboard core CSS --> <link href="assets/css/paper-dashboard.css" rel="stylesheet"/> <link href="assets/css/kaburu.css" rel="stylesheet" /> <!-- Fonts and icons --> <link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet"> <link href='https://fonts.googleapis.com/css?family=Muli:400,300' rel='stylesheet' type='text/css'> <link href="assets/css/themify-icons.css" rel="stylesheet"> </head> <body> <?php $dashboard=''; $user_management=''; $category_management=''; $news_management=''; $news_management_view=''; $news_management_edit=''; $post_news=''; $news_filtration=''; $news_filteration_view=''; $news_filteration_edit=''; $location_management=''; $report_management=''; $smsreport_admin=''; $notification=''; $dashpic = "assets/dashboard.png"; $user_managementpic = "assets/user.png"; $category_managementpic = "assets/category.png"; $news_managementpic = "assets/news.png"; $news_management_editpic = "assets/news.png"; $news_managementviewpic = "assets/news.png"; $news_filtrationpic = "assets/news.png"; $location_managementpic = "assets/location.png"; $smsreport_adminpic = "assets/userreport.png"; $sms_adminpic = "assets/sms.png"; $contact_managementpic = "assets/contact.png"; //$contact_managementpic = "assets/contact.png"; $notificationpic = "assets/notify.png"; $sendsms_managementpic = "assets/contact2.png";; $report_managementpic= "assets/report.png"; $logoutpic= "assets/logout.png"; $contactusmanagementpic=$contact_managementpic; if(isset($currentPage)) { switch($currentPage) { case 'dashboard': $dashboard='active'; $dashpic = "assets/dashboard_blue.png"; break; case 'user_management': $user_management='active'; $user_managementpic = "assets/user_blue.png"; break; case 'category_management': $category_management='active'; $category_managementpic = "assets/category_blue.png"; break; case 'news_management': $news_management='active'; $news_managementpic = "assets/news_blue.png"; break; case 'news_management_view': $news_management_view='active'; $news_managementpic = "assets/news_blue.png"; break; case 'news_management_edit': $news_management_edit='active'; $news_managementpic = "assets/news_blue.png"; break; case 'post_news': $post_news='active'; $news_managementpic = "assets/news_blue.png"; break; case 'news_filtration': $news_filtration='active'; $news_filtrationpic = "assets/news_blue.png"; break; case 'news_filteration_edit': $annadanamscheme='active'; $news_filtrationpic = "assets/news_blue.png"; break; case 'location_management': $location_management='active'; $location_managementpic = "assets/location_blue.png"; break; case 'report_management': $report_management='active'; $report_managementpic = "assets/report_blue.png"; break; case 'smslog': $sms_log='active'; $sms_adminpic = "assets/sms_blue.png"; break; case 'smsreport_admin': $smsreport_admin='active'; $smsreport_adminpic = "assets/userreport_color.png"; break; case 'contact_management': $contact_management='active'; $contact_managementpic = "assets/contact_blue.png"; break; case 'notification': $notification='active'; $notificationpic = "assets/notifiy_blue.png"; break; case 'sendsms': $sendsms_management='active'; $sendsms_managementpic = "assets/contact_color.png"; break; case 'contactus_messages': $contactus_messages='active'; $contactusmanagementpic = "assets/contact_blue.png"; break; case 'logout': $notification='active'; $logoutpic = "assets/logout_blue.png"; break; } } ?> <div class="wrapper"> <div class="sidebar" data-background-color="white" data-active-color="danger" style="overflow-x:hidden;"> <!-- Tip 1: you can change the color of the sidebar's background using: data-background-color="white | black" Tip 2: you can change the color of the active button using the data-active-color="primary | info | success | warning | danger" --> <div class="sidebar-wrapper" > <div class="logo"> <a href="dashboard.php" class="simple-text"> <img src="assets/img/appicon.png" style="max-width:100%" height="auto" /> </a> </div> <ul class="nav nav_background"> <li class="<?php echo $dashboard; ?>"> <a href="dashboard.php"> <p><img src="<?php echo $dashpic; ?>"> Dashboard</p> </a> </li> <li class="<?php echo $user_management; ?>"> <a href="user_management.php"> <p><img src="<?php echo $user_managementpic; ?>"> User Management</p> </a> </li> <li class="<?php echo $category_management; ?>"> <a href="category_management.php"> <p><img src="<?php echo $category_managementpic; ?>"> Category Management</p> </a> </li> <li class="<?php echo $location_management; ?>"> <a href="new_location_management1.php"> <p><img src="<?php echo $location_managementpic; ?>"> Location Management</p> </a> </li> <li class="<?php echo $news_management; ?>"> <a href="news_management.php"> <p><img src="<?php echo $news_managementpic; ?>"> News Management</p> </a> </li> <li class="<?php echo $report_management; ?>"> <a href="report_management.php"> <p><img src="<?php echo $report_managementpic; ?>"> Report Management</p> </a> </li> <li class="<?php echo $sms_log; ?>"> <a href="smslog.php"> <p><img src="<?php echo $sms_adminpic; ?>"> OTP Tracking Report </p> </a> </li> <li class="<?php echo $smsreport_admin; ?>"> <a href="smsreport_admin.php"> <p><img src="<?php echo $smsreport_adminpic; ?>"> User Reports on OTP </p> </a> </li> <li class="<?php echo $contact_management; ?>"> <a href="contact_management.php"> <p><img src="<?php echo $contact_managementpic; ?>"> Contact Management</p> </a> </li> <li class="<?php echo $notification; ?>"> <a href="notification.php"> <p><img src="<?php echo $notificationpic; ?>"> Send Notification</p> </a> </li> <li class="<?php echo $sendsms_management; ?>"> <a href="contactsbook.php"> <p><img src="<?php echo $sendsms_managementpic; ?>"> Contacts Book</p> </a> </li> <li class="<?php echo $contactus_messages; ?>"> <a href="contactus_messages.php"> <p><img src="<?php echo $contactusmanagementpic; ?>"> Web Contact Requests</p> </a> </li> <li > <a href="logout.php"> <p><img src="<?php echo $logoutpic; ?>"> Logout</p> </a> </li> </ul> </div> </div>