default.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: default.php 10680 2007-01-11 21:26:23Z pcool $
  20. */
  21. // including the global dokeos file
  22. require_once ('../inc/global.inc.php');
  23. // including additional libraries
  24. /** @todo check if these are all needed */
  25. /** @todo check if the starting / is needed. api_get_path probably ends with an / */
  26. $surveyid = $_GET['surveyid'];
  27. $groupid = $_GET['groupid'];
  28. $qtype = $_GET['qtype'];
  29. $qid = $_GET['qid'];
  30. switch($qtype)
  31. {
  32. case "Yes/No":
  33. include("question.php");
  34. break;
  35. case "Multiple Choice (single answer)":
  36. include("mcsa_view.php");
  37. break;
  38. case "Multiple Choice (multiple answer)":
  39. include("mcma_view.php");
  40. break;
  41. case "Open Answer":
  42. include("open_view.php");
  43. break;
  44. case "Numbered":
  45. include("numbered_view.php");
  46. break;
  47. }
  48. ?>