nav.php 968 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. if (check_login ()) {
  3. ?>
  4. <nav class="navbar navbar-default">
  5. <div class="container">
  6. <div class="navbar-header">
  7. <ul class="nav navbar-nav navbar-left">
  8. <a class="navbar-brand" href="index.php"><span
  9. class="glyphicon glyphicon-home">&nbsp;</span>
  10. <?php
  11. echo $ini['app_title'];
  12. ?>
  13. </a>
  14. <li><a href="adminpwd.php">Admin password</a></li>
  15. <li><a href="logout.php">Logout</a></li>
  16. <li><a href="selfservice.php">User Self Service</a></li>
  17. </ul>
  18. </div>
  19. </div>
  20. </nav>
  21. <?php
  22. } else {
  23. ?>
  24. <nav class="navbar navbar-default">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <ul class="nav navbar-nav navbar-left">
  28. <a class="navbar-brand" href="index.php"><span
  29. class="glyphicon glyphicon-home">&nbsp;</span>
  30. <?php
  31. echo $ini['app_title'];
  32. ?>
  33. </a>
  34. <li><a href="login.php">Login</a></li>
  35. <li><a href="selfservice.php">User Self Service</a></li>
  36. </ul>
  37. </div>
  38. </div>
  39. </nav>
  40. <?php
  41. }
  42. ?>