D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ipuco
/
public_html
/
superadmin
/
include
/
Filename :
header.php
back
Copy
<?php ob_start(); session_start(); include('include/connection.php'); $emailid=$_SESSION['emailid']; $adminid=$_SESSION['id']; $per=mysqli_query($conn,"select * from admin where id='".$adminid."'"); $perq1=mysqli_fetch_array($per); $superadmin=$perq1['superadmin']; $client=$perq1['client']; $project=$perq1['project']; $account=$perq1['account']; $sales=$perq1['sales']; $hr=$perq1['hr']; $procurment=$perq1['procurment']; $support=$perq1['support']; //die(); if (!(isset($_SESSION['adminid']) && $_SESSION['adminid'] != '')) { header ("Location: index.php"); } ?> <header id="topnav"> <div class="topbar-main"> <div class="container-fluid"> <!-- Logo container--> <div class="logo"><a href="dashboard.php" class="logo"> <img src="assets/images/logo-sm.png" alt="" class="logo-small"> <img src="assets/images/dd.png" height="60" alt="" class="logo-large"> </a> </div> <!-- End Logo container--> <div class="menu-extras topbar-custom"> <ul class="navbar-right list-inline float-right mb-0"> <li class="dropdown notification-list list-inline-item d-none d-md-inline-block"> <form role="search" class="app-search"> <div class="form-group mb-0"> <input type="text" class="form-control" placeholder="Search.."> <button type="submit"><i class="fa fa-search"></i></button> </div> </form></li> <!-- language--> <!-- full screen --> <li class="dropdown notification-list list-inline-item d-none d-md-inline-block"><a class="nav-link" href="#" id="btn-fullscreen"><i class="mdi mdi-fullscreen noti-icon"></i></a></li> <!-- notification --> <!--li class="dropdown notification-list list-inline-item"><a class="nav-link dropdown-toggle arrow-none" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false"><i class="mdi mdi-bell-outline noti-icon"></i> <span class="badge badge-pill badge-danger noti-icon-badge">3 </span></a> <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg"> <h6 class="dropdown-item-text">Notifications (258)</h6> <div class="slimscroll notification-item-list"> <a href="javascript:void(0);" class="dropdown-item notify-item active"> <div class="notify-icon bg-success"><i class="mdi mdi-cart-outline"></i> </div> <p class="notify-details">Your order is placed <span class="text-muted">Dummy text of the printing and typesetting industry. </span></p></a> <a href="javascript:void(0);" class="dropdown-item notify-item"> <div class="notify-icon bg-warning"><i class="mdi mdi-message-text-outline"></i> </div> <p class="notify-details">New Message received <span class="text-muted">You have 87 unread messages </span></p></a> <a href="javascript:void(0);" class="dropdown-item notify-item"> <div class="notify-icon bg-info"><i class="mdi mdi-glass-cocktail"></i> </div> <p class="notify-details">Your item is shipped <span class="text-muted">It is a long established fact that a reader will </span></p></a> <a href="javascript:void(0);" class="dropdown-item notify-item"> <div class="notify-icon bg-primary"><i class="mdi mdi-cart-outline"></i> </div> <p class="notify-details">Your order is placed <span class="text-muted">Dummy text of the printing and typesetting industry. </span></p></a> <a href="javascript:void(0);" class="dropdown-item notify-item"> <div class="notify-icon bg-danger"><i class="mdi mdi-message-text-outline"></i> </div> <p class="notify-details">New Message received <span class="text-muted">You have 87 unread messages </span></p></a> </div> <a href="javascript:void(0);" class="dropdown-item text-center text-primary">View all <i class="fi-arrow-right"></i></a> </div></li!--> <li class="dropdown notification-list list-inline-item"> <div class="dropdown notification-list nav-pro-img"><a class="dropdown-toggle nav-link arrow-none nav-user" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false"><img src="assets/images/user-profile.png" alt="user" class="rounded-circle"></a> <div class="dropdown-menu dropdown-menu-right profile-dropdown"> <!-- item--> <a class="dropdown-item" href="#"><i class="mdi mdi-account-circle m-r-5"></i> Profile</a> <a class="dropdown-item d-block" href="list-of-company.php"><span class="badge badge-success float-right"></span><i class="mdi mdi-settings m-r-5"></i> A/C Settings</a> <a class="dropdown-item" href="#" data-toggle="modal" data-target=".bs-example-modal-lg"><i class="mdi mdi-lock-open-outline m-r-5"></i> Change Password</a> <div class="dropdown-divider"> </div><a class="dropdown-item text-danger" href="logout.php"><i class="mdi mdi-power text-danger"></i> Logout</a> </div> </div></li> <li class="menu-item list-inline-item"> <!-- Mobile menu toggle--> <a class="navbar-toggle nav-link"> <div class="lines"> <span> </span> <span> </span> <span> </span> </div></a> <!-- End mobile menu toggle--></li> </ul> </div> <!-- end menu-extras --> <div class="clearfix"> </div> </div> <!-- end container --> </div> <!-- end topbar-main --> <!-- MENU Start --> <div class="navbar-custom"> <div class="container-fluid"> <div id="navigation"> <?php if($superadmin =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="dashboard.php"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu"><a href="list-of-client.php"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu"><a href="list-of-projects.php"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="list-of-procurement.php"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="list-of-commercial.php"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="list-of-project_eng.php"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="list-of-user.php"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } elseif($client =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="#"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu active"><a href="list-of-client.php"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu"><a href="#"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } elseif($project =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="#"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu "><a href="#"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu active"><a href="list-of-projects.php"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } elseif($account =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="#"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu "><a href="#"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu"><a href="#"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } elseif($sales =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="#"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu "><a href="#"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu"><a href="#"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } elseif($hr =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="#"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu "><a href="#"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu"><a href="#"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } elseif($procurment =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="#"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu "><a href="#"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu"><a href="#"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } elseif($support =='1') { ?> <!-- Navigation Menu--> <ul class="navigation-menu"> <li class="has-submenu"><a href="#"><i class="ti-home"></i>Dashboard</a></li> <li class="has-submenu "><a href="#"><i class="ti-harddrives"></i>Clients</a></li> <li class="has-submenu"><a href="#"><i class="ti-package"></i>Project</a></li> <li class="has-submenu"><a href="#"><i class="ti-harddrives"></i>Accounts</a></li> <li class="has-submenu"><a href="#"><i class="ti-archive"></i> Sales</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-support"></i>HR</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Procurement</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Commercial</a></li> <!--li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Support</a></li!--> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>Project Eng</a></li> <li class="has-submenu"><a href="#"><i class="ti-bookmark-alt"></i>User Mgmt</a></li> </ul> <!-- End navigation menu --> <?php } else { echo "no"; } ?> </div> <!-- end #navigation --> </div> <!-- end container --> </div> <!-- end navbar-custom --></header> <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <form class="form-horizontal m-t-30" method="post" action="#"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"><h5 class="modal-title mt-0" id="myLargeModalLabel">Update Password</h5><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> <div class="modal-body"> <div class="card-body1"> <p class="text-muted m-b-30"></p> <div class="form-group row"> <label for="example-search-input" class="col-sm-3 col-form-label">Current Password </label> <div class="col-sm-9"> <input type="text" class="form-control" name="old_password" placeholder="Current Password" /> </div> </div> <div class="form-group row"> <label for="example-search-input" class="col-sm-3 col-form-label">New Password </label> <div class="col-sm-9"> <input type="text" class="form-control" name="password" placeholder="New Password" /> </div> </div> <div class="form-group row"> <label for="example-search-input" class="col-sm-3 col-form-label">Confirm New Password </label> <div class="col-sm-9"> <input type="text" class="form-control" name="confirm_pwd" placeholder="Confirm New Password" /> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary waves-effect waves-light" name="submit">Save changes</button> </div> </div> <!-- /.modal-content --> </div> </form> <!-- /.modal-dialog --> </div>