footer.inc.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php // $Id: footer.inc.php 21487 2009-06-18 09:52:42Z ivantcholakov $
  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. // course manager
  71. $id_course=api_get_course_id();
  72. $id_session=api_get_session_id();
  73. if (isset($id_course) && $id_course!=-1) {
  74. echo '<span id="coursemanager">';
  75. if ($id_session==0){
  76. $mail=CourseManager::get_emails_of_tutors_to_course($id_course);
  77. if (count($mail)>1){
  78. $bar='&nbsp;|&nbsp;';
  79. echo '&nbsp;'.get_lang('Teachers').' : ';
  80. } else {
  81. $bar='';
  82. echo '&nbsp;'.get_lang('Teacher').' : ';
  83. }
  84. foreach ($mail as $value=>$key) {
  85. foreach ($key as $email=>$name){
  86. echo Display::encrypted_mailto_link($email,$name).$bar;
  87. }
  88. }
  89. } else {
  90. $mail=CourseManager::get_email_of_tutor_to_session($id_session);
  91. echo '&nbsp;'.get_lang('Tutor')." : ";
  92. foreach ($mail as $v=>$k) {
  93. echo Display::encrypted_mailto_link($v,$k);
  94. }
  95. }
  96. echo '</span>';
  97. }
  98. }
  99. ?>&nbsp;
  100. </div> <!-- end of #footer -->
  101. </body>
  102. </html>