footer.inc.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php // $Id: footer.inc.php 19990 2009-04-22 20:11:36Z 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. {
  32. $course_id = api_get_course_id();
  33. if ( !empty($course_id) && ($course_id != -1) )
  34. {
  35. if( api_get_setting('show_navigation_menu') != 'icons')
  36. {
  37. echo '</div> <!-- end #center -->';
  38. echo '</div> <!-- end #centerwrap -->';
  39. }
  40. require_once(api_get_path(INCLUDE_PATH)."tool_navigation_menu.inc.php");
  41. show_navigation_menu();
  42. }
  43. }
  44. /***********************************************************************/
  45. ?>
  46. <div class="clear">&nbsp;</div> <!-- 'clearing' div to make sure that footer stays below the main and right column sections -->
  47. </div> <!-- end of #main" started at the end of banner.inc.php -->
  48. <div id="footer"> <!-- start of #footer section -->
  49. <div id="bottom_corner"></div>
  50. <div class="copyright">
  51. <?php global $_configuration; ?>
  52. <?php echo get_lang("Platform") ?> <a href="http://www.dokeos.com">Dokeos <?php echo $_configuration['dokeos_version']; ?></a> &copy; <?php echo date('Y'); ?>
  53. </div>
  54. <?php
  55. /*
  56. -----------------------------------------------------------------------------
  57. Plugins for footer section
  58. -----------------------------------------------------------------------------
  59. */
  60. api_plugin('footer');
  61. ?>
  62. <?php
  63. if (get_setting('show_administrator_data')=="true") {
  64. // platform manager
  65. echo "<span id=\"platformmanager\">".get_lang("Manager") ?> : <?php echo Display::encrypted_mailto_link(get_setting('emailAdministrator'),get_setting('administratorName')." ".get_setting('administratorSurname'));
  66. // course manager
  67. $id_course=api_get_course_id();
  68. $id_session=api_get_session_id();
  69. if (isset($id_course) && $id_course!=-1){
  70. echo "<span id=\"coursemanager\">";
  71. if ($id_session==0){
  72. $mail=CourseManager::get_emails_of_tutors_to_course($id_course);
  73. if (count($mail)>1){
  74. $bar='&nbsp;|&nbsp;';
  75. echo '&nbsp;'.get_lang('Teachers')." : ";
  76. } else {
  77. $bar='';
  78. echo '&nbsp;'.get_lang('Teacher')." : ";
  79. }
  80. foreach($mail as $value=>$key) {
  81. foreach($key as $email=>$name){
  82. echo Display::encrypted_mailto_link($email,$name).$bar;
  83. }
  84. }
  85. } else {
  86. $mail=CourseManager::get_email_of_tutor_to_session($id_session);
  87. echo '&nbsp;'.get_lang('Tutor')." : ";
  88. foreach($mail as $v=>$k) {
  89. echo Display::encrypted_mailto_link($v,$k);
  90. }
  91. }
  92. echo '</span>';
  93. }
  94. }
  95. ?>&nbsp;
  96. </div> <!-- end of #footer -->
  97. </body>
  98. </html>