topbar.tpl 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!-- Topbar -->
  2. {% if show_toolbar == 1 %}
  3. <nav id="toolbar-admin" class="navbar navbar-inverse">
  4. <div class="container-fluid">
  5. <div class="navbar-header">
  6. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#toolbar">
  7. <span class="sr-only">Toggle navigation</span>
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. <span class="icon-bar"></span>
  11. </button>
  12. <a class="navbar-brand" href="{{ _p.web }}">
  13. <img src="{{ "icon-chamilo.png"|icon(22) }}" title="{{ "siteName" | api_get_setting }}">
  14. </a>
  15. </div>
  16. {% if _u.logged %}
  17. <div class="collapse navbar-collapse" id="toolbar">
  18. <ul class="nav navbar-nav">
  19. <li class="active"><a href="{{ _p.web }}user_portal.php"> {{ "MyCourses"|get_lang }}</a></li>
  20. <li class="dropdown">
  21. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{'Tracking'|get_lang }}<b class="caret"></b></a>
  22. <ul class="dropdown-menu">
  23. <li><a href="{{ _p.web_main }}mySpace/">{{ "CoursesReporting"|get_lang }}</a></li>
  24. <li><a href="{{ _p.web_main }}mySpace/index.php?view=admin">{{ "AdminReports"|get_lang }}</a></li>
  25. <li><a href="{{ _p.web_main }}tracking/exams.php">{{ "ExamsReporting"|get_lang }}</a></li>
  26. <li class="divider"></li>
  27. <li><a href="{{ _p.web_main }}dashboard/">{{ "Dashboard"|get_lang }}</a></li>
  28. </ul>
  29. </li>
  30. {% if _u.is_admin == 1 %}
  31. <li class="dropdown">
  32. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{'Administration'|get_lang }}<b class="caret"></b></a>
  33. <ul class="dropdown-menu">
  34. <li><a href="{{ _p.web_main }}admin/">{{ "Home"|get_lang }}</a></li>
  35. <li><a href="{{ _p.web_main }}admin/user_list.php">{{ "UserList"|get_lang }}</a></li>
  36. <li><a href="{{ _p.web_main }}admin/course_list.php">{{ "CourseList"|get_lang }}</a></li>
  37. <li><a href="{{ _p.web_main }}session/session_list.php">{{ "SessionList"|get_lang }}</a></li>
  38. <li class="divider"></li>
  39. <li><a href="{{ _p.web_main }}admin/settings.php">{{ "Settings"|get_lang }}</a></li>
  40. <li class="divider"></li>
  41. <li><a href="{{ _p.web_main }}admin/settings.php?category=Plugins">{{ "Plugins"|get_lang }}</a></li>
  42. <li><a href="{{ _p.web_main }}admin/settings.php?category=Regions">{{ "Regions"|get_lang }}</a></li>
  43. </ul>
  44. </li>
  45. <li class="dropdown">
  46. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{ 'Add'|get_lang }}<b class="caret"></b></a>
  47. <ul class="dropdown-menu">
  48. <li><a href="{{ _p.web_main }}admin/user_add.php">{{ "User"|get_lang }}</a></li>
  49. <li><a href="{{ _p.web_main }}admin/course_add.php">{{ "Course"|get_lang }}</a></li>
  50. <li><a href="{{ _p.web_main }}session/session_add.php">{{ "Session"|get_lang }}</a></li>
  51. </ul>
  52. </li>
  53. {% endif %}
  54. </ul>
  55. {% if _u.is_admin == 1 %}
  56. <form class="navbar-form navbar-left" role="search" action="{{ _p.web_main }}admin/user_list.php" method="get">
  57. <input type="text" class="form-control" placeholder="{{'SearchUsers'|get_lang }}" name="keyword">
  58. </form>
  59. {% endif %}
  60. <ul class="nav navbar-nav navbar-right">
  61. <li><a href="{{ _p.web }}index.php?logout=logout&uid={{_u.user_id}}">{{ "Logout"|get_lang }}</a></li>
  62. </ul>
  63. </div> <!-- /nav collapse -->
  64. {% endif %}
  65. </div> <!-- /container-->
  66. </nav><!-- /topbar -->
  67. {% endif %}