reporting.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /*
  3. DOKEOS - elearning and course management software
  4. For a full list of contributors, see documentation/credits.html
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. See "documentation/licence.html" more details.
  10. Contact:
  11. Dokeos
  12. Rue des Palais 44 Paleizenstraat
  13. B-1030 Brussels - Belgium
  14. Tel. +32 (2) 211 34 56
  15. */
  16. /**
  17. * @package dokeos.survey
  18. * @author
  19. * @version $Id: reporting.php 10680 2007-01-11 21:26:23Z pcool $
  20. */
  21. /*
  22. ==============================================================================
  23. INIT SECTION
  24. ==============================================================================
  25. */
  26. // name of the language file that needs to be included
  27. $language_file = 'survey';
  28. // including the global dokeos file
  29. require_once ('../inc/global.inc.php');
  30. // including additional libraries
  31. /** @todo check if these are all needed */
  32. /** @todo check if the starting / is needed. api_get_path probably ends with an / */
  33. require_once (api_get_path(LIBRARY_PATH)."/course.lib.php");
  34. require (api_get_path(LIBRARY_PATH)."/groupmanager.lib.php");
  35. $table_survey = Database :: get_course_table(TABLE_SURVEY);
  36. $surveyid=intval($_REQUEST['surveyid']);
  37. if($_SESSION['status']==5)
  38. {
  39. api_protect_admin_script();
  40. }
  41. $tool_name = get_lang('SurveyReporting');
  42. $interbreadcrumb[] = array ("url" => "survey_list.php", "name" => get_lang('Survey'));
  43. Display::display_header($tool_name);
  44. echo '<table align="center">
  45. <tr>
  46. <td><a href="complete_report.php?action=reporting&surveyid='.$surveyid.'"">'.get_lang('CompleteReport').'</a><br />
  47. '.get_lang('CompleteReportDetails').'<br /><br />
  48. </td>
  49. </tr>
  50. <tr>
  51. <td><a href="survey_report.php?action=reporting&surveyid='.$surveyid.'">'.get_lang('AdvancedReport').'</a><br />
  52. '.get_lang('AdvancedReportDetails').'</td>
  53. </tr>
  54. </table>';
  55. Display::display_footer();
  56. ?>