learnpath_item_show.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004 Dokeos S.A.
  6. Copyright (c) Denes Nagy (darkden@freemail.hu)
  7. For a full list of contributors, see "credits.txt".
  8. The full license can be read in "license.txt".
  9. This program is free software; you can redistribute it and/or
  10. modify it under the terms of the GNU General Public License
  11. as published by the Free Software Foundation; either version 2
  12. of the License, or (at your option) any later version.
  13. See the GNU General Public License for more details.
  14. Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
  15. ==============================================================================
  16. */
  17. /**
  18. ==============================================================================
  19. * Can show some type of item in LP
  20. * @author Denes Nagy <darkden@freemail.hu>
  21. * @version 2.0
  22. * @access public
  23. * @package dokeos.learnpath
  24. ==============================================================================
  25. */
  26. include('../inc/global.inc.php');
  27. $this_section=SECTION_COURSES;
  28. header('Content-Type: text/html; charset='. $charset);
  29. switch ($type) {
  30. case "Introduction_text" :
  31. $TBL_INTRO = Database::get_course_table(TOOL_INTRO_TABLE);
  32. $result = api_sql_query("SELECT * FROM $TBL_INTRO WHERE id=1",__FILE__,__LINE__);
  33. $myrow= mysql_fetch_array($result);
  34. $intro=$myrow["intro_text"];
  35. echo "<html><head><link rel=stylesheet type=text/css href='../css/default.css'></head>",
  36. "<body><br>".$intro."</body></html>";
  37. break;
  38. }
  39. ?>