footer.inc.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php // $Id: footer.inc.php 22315 2009-07-23 16:12:54Z cvargas1 $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004-2008 Dokeos SPRL
  6. Copyright (c) 2003 Ghent University (UGent)
  7. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  8. Copyright (c) various contributors
  9. For a full list of contributors, see "credits.txt".
  10. The full license can be read in "license.txt".
  11. This program is free software; you can redistribute it and/or
  12. modify it under the terms of the GNU General Public License
  13. as published by the Free Software Foundation; either version 2
  14. of the License, or (at your option) any later version.
  15. See the GNU General Public License for more details.
  16. Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
  17. Mail: info@dokeos.com
  18. ==============================================================================
  19. */
  20. /**
  21. ==============================================================================
  22. * This script displays the footer that is below (almost)
  23. * every Dokeos web page.
  24. *
  25. * @package dokeos.include
  26. ==============================================================================
  27. */
  28. /**** display of tool_navigation_menu according to admin setting *****/
  29. require_once (api_get_path(LIBRARY_PATH).'course.lib.php');
  30. if (api_get_setting('show_navigation_menu') != 'false') {
  31. $course_id = api_get_course_id();
  32. if (!empty($course_id) && ($course_id != -1)) {
  33. if ( api_get_setting('show_navigation_menu') != 'icons') {
  34. echo '</div> <!-- end #center -->';
  35. echo '</div> <!-- end #centerwrap -->';
  36. }
  37. require_once api_get_path(INCLUDE_PATH).'tool_navigation_menu.inc.php';
  38. show_navigation_menu();
  39. }
  40. }
  41. /***********************************************************************/
  42. ?>
  43. <div class="clear">&nbsp;</div> <!-- 'clearing' div to make sure that footer stays below the main and right column sections -->
  44. </div> <!-- end of #main" started at the end of banner.inc.php -->
  45. <div id="footer"> <!-- start of #footer section -->
  46. <div id="bottom_corner"></div>
  47. <div class="copyright">
  48. <?php
  49. global $_configuration;
  50. echo get_lang("Platform"), ' <a href="http://www.dokeos.com" target="_blank">Dokeos ', $_configuration['dokeos_version'], '</a> &copy; ', date('Y');
  51. // Server mode indicator.
  52. if (api_is_platform_admin()) {
  53. if (api_get_setting('server_type') == 'test') {
  54. echo ' <a href="'.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Platform#server_type">';
  55. echo '<span style="background-color: white; color: red; border: 1px solid red;">&nbsp;Test&nbsp;server&nbsp;mode&nbsp;</span></a>';
  56. }
  57. }
  58. ?>
  59. </div>
  60. <?php
  61. /*
  62. -----------------------------------------------------------------------------
  63. Plugins for footer section
  64. -----------------------------------------------------------------------------
  65. */
  66. api_plugin('footer');
  67. if (get_setting('show_administrator_data')=='true') {
  68. // Platform manager
  69. echo '<span id="platformmanager">', get_lang('Manager'), ' : ', Display::encrypted_mailto_link(get_setting('emailAdministrator'), get_setting('administratorName').' '.get_setting('administratorSurname'));
  70. }
  71. if (get_setting('show_tutor_data')=='true'){
  72. // course manager
  73. $id_course=api_get_course_id();
  74. $id_session=api_get_session_id();
  75. if (isset($id_course) && $id_course!=-1) {
  76. echo '<span id="coursemanager">';
  77. if ($id_session!=0){
  78. $mail=CourseManager::get_email_of_tutor_to_session($id_session);
  79. echo '&nbsp;'.get_lang('Tutor')." : ";
  80. foreach ($mail as $v=>$k) {
  81. echo Display::encrypted_mailto_link($v,$k);
  82. }
  83. }
  84. echo '</span>';
  85. }
  86. }
  87. if (get_setting('show_teacher_data')=='true'){
  88. // course manager
  89. $id_course=api_get_course_id();
  90. if (isset($id_course) && $id_course!=-1) {
  91. echo '<span id="coursemanager">';
  92. $mail=CourseManager::get_emails_of_tutors_to_course($id_course);
  93. if (count($mail)>1){
  94. $bar='&nbsp;|&nbsp;';
  95. echo '&nbsp;'.get_lang('Teachers').' : ';
  96. } else {
  97. $bar='';
  98. echo '&nbsp;'.get_lang('Teacher').' : ';
  99. }
  100. foreach ($mail as $value=>$key) {
  101. foreach ($key as $email=>$name){
  102. echo Display::encrypted_mailto_link($email,$name).$bar;
  103. }
  104. }
  105. echo '</span>';
  106. }
  107. }
  108. ?>&nbsp;
  109. </div> <!-- end of #footer -->
  110. </body>
  111. </html>