Advertisement
Guest User

nav_admin_profile.php

a guest
Oct 16th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  2. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  3. <link rel="stylesheet" type="text/css" href="../admin/css/bootstrap.min.css" />
  4. <!-- Navigation -->
  5. <nav style="background-color:#3a223a;" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  6. <div class="container">
  7.  
  8.  
  9. <!-- Brand and toggle get grouped for better mobile display -->
  10. <div class="navbar-header">
  11. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  12. <span class="sr-only">Toggle navigation</span>
  13. <span class="icon-bar"></span>
  14. <span class="icon-bar"></span>
  15. <span class="icon-bar"></span>
  16. </button>
  17. <a class="navbar-brand" href="index.php"><img style="width: 140px;height: auto;position: relative;bottom:50%;left:8%;" src="header_img.png" /></a>
  18. </div>
  19. <!-- Collect the nav links, forms, and other content for toggling -->
  20.  
  21. <div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1">
  22. <ul class="nav navbar-nav">
  23.  
  24. <?php
  25.  
  26. // $query = "SELECT * FROM cms_table";
  27. // $select_all_categories_query = mysqli_query($connection, $query);
  28.  
  29. // while($row = mysqli_fetch_assoc($select_all_categories_query))
  30. // {
  31. // $cat_title = $row['cat_title'];
  32. // $cat_id = $row['cat_id'];
  33.  
  34. // echo "<li><a href='category.php?category=$cat_id''>{$cat_title}</a></li>";
  35. // }
  36.  
  37. ?>
  38.  
  39.  
  40. <li>
  41. <a href="admin">Admin</a>
  42. </li>
  43. <li>
  44. <a href="#"><img style="width: 30px;height: 30px; cursor:pointer;" src="notification.png"/></a>
  45. </li>
  46. <li>
  47. <a href="#"><img style="width: 30px;height: 30px; cursor:pointer;" src="messages.png"/> </a>
  48. </li>
  49.  
  50. <!-- <li>-->
  51. <!-- <a href="Registration.php">Register</a>-->
  52. <!-- </li>-->
  53. <!-- <li>-->
  54. <!-- <a href="login.php">Login</a>-->
  55. <!-- </li>-->
  56.  
  57.  
  58.  
  59. <li class="dropdown">
  60. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><img style="width: 30px;height: 30px; cursor:pointer;" src="user.png"/>
  61. <?php
  62. // PRINT username
  63. if(!isset($_SESSION)) {
  64. if(isset($_SESSION['username'])){
  65. echo $_SESSION['username'];
  66. }
  67. }
  68.  
  69. ?>
  70.  
  71. <?php
  72.  
  73. // if(isset($_SESSION['username'])){
  74. // echo $_SESSION['username'];
  75. // }
  76.  
  77. ?>
  78.  
  79. <b class="caret"></b></a>
  80. <ul class="dropdown-menu">
  81. <li>
  82. <a href="profile.php"><i class="fa fa-fw fa-user"></i> Profile</a>
  83. </li>
  84. <li>
  85. <a href="#"><i class="fa fa-fw fa-envelope"></i> Inbox</a>
  86. </li>
  87. <li>
  88. <a href="settings.php"><i class="fa fa-fw fa-gear"></i> Settings</a>
  89. </li>
  90. <li class="divider"></li>
  91. <li>
  92. <a href="./includes/logout.php"><i class="fa fa-fw fa-power-off"></i> Log Out</a>
  93. </li>
  94. </ul>
  95. </li>
  96.  
  97.  
  98. </ul>
  99. </div>
  100. <!-- /.navbar-collapse -->
  101. </div>
  102. <!-- /.container -->
  103. </nav>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement