JezK
Edit File: header.php
<?php if (!isset($_SESSION)) session_start(); include('classes/class_admin_videoconsultation.php'); $videocon = new admin_videoconsultation(); if (!isset($_SESSION['aid'])) { echo "<script>window.location='index.php';</script>"; } if (isset($_SESSION['updateFailed'])) { echo "<script>alert('Error!!! Unable to update password. Internal server error.');</script>"; unset($_SESSION['updateFailed']); } if (isset($_SESSION['invalidOldPassword'])) { echo "<script>alert('Invalid Old Password.');</script>"; unset($_SESSION['invalidOldPassword']); } if (isset($_SESSION['updateSuccess'])) { echo "<script>alert('Password updated successfully.');</script>"; unset($_SESSION['updateSuccess']); } ?> <?php $page = basename($_SERVER['PHP_SELF']); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Video Consultation</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="all,follow"> <link rel="shortcut icon" type="image/png" href="../img/favicon.png"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/custom.css"> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/fontastic.css"> <!-- Google fonts - Roboto --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"> <!-- Custom Scrollbar--> <link rel="stylesheet" href="css/jquery.mCustomScrollbar.css"> <!-- theme stylesheet--> <link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/admin.css"> <link rel="stylesheet" href="build/css/intlTelInput.css" /> <link rel="stylesheet" type="text/css" href="css/daterangepicker.css" /> <link rel="stylesheet" type="text/css" href="css/dataTables.bootstrap4.min.css"> <!--- jquery---> <!-- Favicon--> <!-- <link rel="shortcut icon" href="img/favicon.ico"> --> <!-- Tweaks for older IEs--> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]--> </head> <body> <!-- Side Navbar --> <nav class="side-navbar"> <div class="side-navbar-wrapper"> <div class="sidenav-header d-flex align-items-center justify-content-center"> <div class="sidenav-header-inner text-center"> <!-- <img src="img/avatar-7.jpg" alt="person" class="img-fluid rounded-circle"> --> <h2 class="text-dark mb-1 pb-2"><img src="img/logo1.png" alt="logo" style=" width:180px !important; height:41px !important"></h2> </div> <div class="sidenav-header-logo"> <a href="#" class="brand-small text-center"> <strong class="text-primary">LO</strong><strong class="text-primary">GO</strong></a> </div> </div> <div class="main-menu"> <ul id="side-main-menu" class="side-menu list-unstyled"> <li> <a href="dashboard.php" <?php if ($page == "dashboard.php") { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'dashboard.php') { echo '<img src="img/dashboard_selected.png">'; } else { echo '<img src="img/dashboard.png">'; } ?></i>Dashboard</a> </li> <li> <a href="appointment.php?fromdate=<?php echo date('Y-m-d');?>&todate=<?php echo date('Y-m-d',strtotime(' +1 day'));?>&tab=1" <?php if ($page == "appointment.php" || $page == "appointmentDetails.php") { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'appointment.php' || $page == "appointmentDetails.php") { echo '<img src="img/appointments_selected.png">'; } else { echo '<img src="img/appointments.png">'; } ?></i>Appointment. Mgt</a> <!-- <a href="appointment.php"><i><img src="img/appointments.png"></i>Appointment. Mgt </a> --> </li> <li> <a href="businessManagement.php" <?php if ($page == "businessManagement.php" || $page == 'business.php' || $page == 'availabilityView.php' || $page == 'editBusiness.php' || $page == 'addBusiness.php') { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'businessManagement.php' || $page == 'business.php' || $page == 'availabilityView.php' || $page == 'editBusiness.php' || $page == 'addBusiness.php') { echo '<img src="img/business_selecte.png">'; } else { echo '<img src="img/business.png">'; } ?></i>Business. Mgt</a> <!-- <a href="businessManagement.php"><i><img src="img/appointments.png"></i>Business. Mgt </a> --> </li> <li> <a href="users.php" <?php if ($page == "users.php" || $page == "userManagement.php" || $page == 'userApp-details.php') { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'userManagement.php' || $page == 'users.php' || $page == 'userApp-details.php') { echo '<img src="img/usermanagement_selected.png">'; } else { echo '<img src="img/usermanagement.png">'; } ?></i>Users. Mgt</a> <!-- <a href="userManagement.php"><i><img src="img/appointments.png"></i>Users. Mgt </a> --> </li> <li> <a href="professionManagement.php" <?php if ($page == "professionManagement.php" || $page == 'professionalView.php' || $page == 'professionalEdit.php') { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'professionManagement.php' || $page == 'professionalView.php' || $page == 'professionalEdit.php') { echo '<img src="img/profession_selected.png">'; } else { echo '<img src="img/profession.png">'; } ?></i>Profession. Mgt</a> <!-- <a href="professionManagement.php"><i><img src="img/appointments.png"></i>Profession. Mgt</a> --> </li> <!--<li> <a href="membershipManagement.php" <?php if ($page == "membershipManagement.php") { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'membershipManagement.php') { echo '<img src="img/updateprofile_selected.png">'; } else { echo '<img src="img/updateprofile.png">'; } ?></i>MemberShip. Mgt</a> </li>--> <li> <a href="paymentManagement.php" <?php if ($page == "paymentManagement.php" || $page == 'paymentView.php') { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'paymentManagement.php' || $page == 'paymentView.php') { echo '<img src="img/payment-manage_selected.png">'; } else { echo '<img src="img/payment-manage.png">'; } ?></i>Payments. Mgt</a> <!-- <a href="paymentManagement.php"><i><img src="img/appointments.png"></i>Payments. Mgt </a> --> </li> <li> <a href="percentageMng.php" <?php if ($page == "percentageMng.php") { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'percentageMng.php') { echo '<img src="img/payment-manage_selected.png">'; } else { echo '<img src="img/payment-manage.png">'; } ?></i>Percentage. Mgt</a> </li> <!--<li> <a href="payment-gateways.php" <?php if($page == "payment-gateways.php" || $page == "payment-gateway-update.php"){echo 'class="active"';}else{}?>> <i><?php if($page == "payment-gateways.php" || $page == "payment-gateway-update.php"){echo '<img src="img/payment-manage_selected.png">';}else{echo '<img src="img/payment-manage.png">';}?></i>Payment Gateway. Mgt</a> </li>--> <li> <a href="categoriesManagement.php" <?php if ($page == "categoriesManagement.php" || $page == "editCategory.php" || $page =="categoryDetails.php") { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'categoriesManagement.php' || $page == "editCategory.php" || $page =="categoryDetails.php") { echo '<img src="img/dashboard_selected.png">'; } else { echo '<img src="img/dashboard.png">'; } ?></i>Categories. Mgt</a> </li> <li> <a href="countriesManagement.php" <?php if ($page == "countriesManagement.php" || $page == "editCountry.php") { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'countriesManagement.php' || $page == "editCountry.php") { echo '<img src="img/countries-manage_selected.png">'; } else { echo '<img src="img/countries-manage.png">'; } ?></i>Countries. Mgt</a> <!-- <a href="countriesManagement.php"><i><img src="img/appointments.png"></i>Countries. Mgt</a> --> </li> <li> <a href="contentManagement.php" <?php if ($page == "contentManagement.php") { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'contentManagement.php') { echo '<img src="img/content-manage_selecte.png">'; } else { echo '<img src="img/content-manage.png">'; } ?></i>Content. Mgt</a> <!-- <a href="contentManagement.php"><i><img src="img/appointments.png"></i>Content. Mgt</a> --> </li> <li> <a href="reportsManagement.php" <?php if ($page == "reportsManagement.php" || $page == 'reportsView.php' || $page == 'reportsReply.php') { echo 'class="active"'; } else { } ?>> <i><?php if ($page == 'reportsManagement.php' || $page == 'reportsView.php' || $page == 'reportsReply.php') { echo '<img src="img/reportsmanage_selecte.png">'; } else { echo '<img src="img/reportsmanage.png">'; } ?></i>Reports. Mgt</a> <!-- <a href="reportsManagement.php"><i><img src="img/appointments.png"></i>Reports. Mgt</a> --> </li> <li> <a href="settings.php" <?php if($page == "settings.php" ){echo 'class="active"';}else{}?>> <i><?php if($page == 'settings.php'){echo '<img src="img/payment-manage_selected.png">';}else{echo '<img src="img/payment-manage.png">';}?></i>Settings</a> </li> <li> <a href="changepassword.php" <?php if ($page == "changepassword.php" ) { echo 'class="active"'; } else { } ?>> <i><img src="img/content-manage.png"></i>Change Password</a> </li> <li> <a href="logout.php"> <i><img src="img/logout.png"></i>Logout</a> </li> </ul> </div> <!-- <div class="admin-menu"> <h5 class="sidenav-heading">Second menu</h5> <ul id="side-admin-menu" class="side-menu list-unstyled"> <li> <a href="#"> <i class="icon-screen"> </i>Demo</a> </li> <li> <a href="#"> <i class="icon-flask"> </i>Demo <div class="badge badge-info">Special</div> </a> </li> <li> <a href=""> <i class="icon-flask"> </i>Demo</a> </li> <li> <a href=""> <i class="icon-picture"> </i>Demo</a> </li> </ul> </div> --> </div> </nav> <div class="page"> <!-- navbar--> <header class="header"> <nav class="navbar"> <div class="container-fluid"> <div class="navbar-holder d-flex align-items-center justify-content-between"> <div class="navbar-header"> <a id="toggle-btn" href="#" class="menu-btn"> <i class="icon-bars"></i> </a> <a href="#" class="navbar-brand" style="cursor: auto;"> <div class="brand-text d-none d-md-inline-block text-dark"> <span>Dashboard</span> </div> </a> </div> <ul class="nav-menu list-unstyled d-flex flex-md-row align-items-md-center"> <!-- Notifications dropdown--> <!-- <li class="nav-item dropdown"> <a id="notifications" rel="nofollow" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link"><i class="fa fa-bell"></i><span class="badge badge-warning">12</span></a> <ul aria-labelledby="notifications" class="dropdown-menu"> <li> <a rel="nofollow" href="#" class="dropdown-item"> <div class="notification d-flex justify-content-between"> <div class="notification-content"><i class="fa fa-envelope"></i>You have 6 new messages </div> <div class="notification-time"><small>4 minutes ago</small></div> </div> </a> </li> <li> <a rel="nofollow" href="#" class="dropdown-item"> <div class="notification d-flex justify-content-between"> <div class="notification-content"><i class="fa fa-twitter"></i>You have 2 followers</div> <div class="notification-time"><small>4 minutes ago</small></div> </div> </a> </li> <li> <a rel="nofollow" href="#" class="dropdown-item"> <div class="notification d-flex justify-content-between"> <div class="notification-content"><i class="fa fa-upload"></i>Server Rebooted</div> <div class="notification-time"><small>4 minutes ago</small></div> </div> </a> </li> <li> <a rel="nofollow" href="#" class="dropdown-item"> <div class="notification d-flex justify-content-between"> <div class="notification-content"><i class="fa fa-twitter"></i>You have 2 followers</div> <div class="notification-time"><small>10 minutes ago</small></div> </div> </a> </li> <li> <a rel="nofollow" href="#" class="dropdown-item all-notifications text-center"> <strong> <i class="fa fa-bell"></i>view all notifications </strong></a> </li> </ul> </li> --> <!-- Messages dropdown--> <!-- <li class="nav-item dropdown"> <a id="messages" rel="nofollow" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link"><i class="fa fa-envelope"></i><span class="badge badge-info">10</span></a> <ul aria-labelledby="notifications" class="dropdown-menu"> <li> <a rel="nofollow" href="#" class="dropdown-item d-flex"> <div class="msg-profile"> <img src="img/avatar-1.jpg" alt="..." class="img-fluid rounded-circle"></div> <div class="msg-body"> <h3 class="h5">Jason Doe</h3><span>sent you a direct message</span><small>3 days ago at 7:58 pm - 10.06.2014</small> </div> </a> </li> <li> <a rel="nofollow" href="#" class="dropdown-item d-flex"> <div class="msg-profile"> <img src="img/avatar-2.jpg" alt="..." class="img-fluid rounded-circle"></div> <div class="msg-body"> <h3 class="h5">Frank Williams</h3><span>sent you a direct message</span><small>3 days ago at 7:58 pm - 10.06.2014</small> </div> </a> </li> <li> <a rel="nofollow" href="#" class="dropdown-item d-flex"> <div class="msg-profile"> <img src="img/avatar-3.jpg" alt="..." class="img-fluid rounded-circle"></div> <div class="msg-body"> <h3 class="h5">Ashley Wood</h3><span>sent you a direct message</span><small>3 days ago at 7:58 pm - 10.06.2014</small> </div> </a> </li> <li> <a rel="nofollow" href="#" class="dropdown-item all-notifications text-center"> <strong> <i class="fa fa-envelope"></i>Read all messages </strong></a> </li> </ul> </li> --> <!-- Languages dropdown --> <li class="nav-item dropdown"> <a id="languages" rel="nofollow" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link language dropdown-toggle"> <img src="img/avatar-7.jpg" alt="person" width="40px" height="40px" class="img-fluid rounded-circle"> <!-- <span class="text-dark d-none d-sm-inline-block">English</span> --> </a> <ul aria-labelledby="languages" class="dropdown-menu"> <li> <a rel="nofollow" href="#" class="dropdown-item"> <!-- <img src="img/flags/16/DE.png" alt="English" class="mr-2"> --> <span>Profile</span> </a> </li> <li> <a rel="nofollow" href="settings.php" class="dropdown-item"> <!-- <img src="img/flags/16/FR.png" alt="English" class="mr-2"> --> <span>Settings</span> </a> </li> <li> <a rel="nofollow" href="logout.php" class="dropdown-item"> <!-- <img src="img/flags/16/FR.png" alt="English" class="mr-2"> --> <span>Logout</span> </a> </li> </ul> </ul> </li> <!-- Log out--> <!-- <li class="nav-item"> <a href="login.html" class="nav-link logout"> <span class="d-none d-sm-inline-block">Logout</span><i class="fa fa-sign-out"></i></a> </li> --> </ul> </div> </div> </nav> </header>