help.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004-2005 Dokeos S.A.
  6. Copyright (c) 2003-2005 Ghent University (UGent)
  7. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  8. Copyright (c) Sally "Example" Programmer (sally@somewhere.net)
  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, 44 rue des palais, B-1030 Brussels, Belgium
  17. Mail: info@dokeos.com
  18. ==============================================================================
  19. */
  20. /**
  21. ==============================================================================
  22. * This script displays a help window.
  23. *
  24. * @package dokeos.help
  25. ==============================================================================
  26. */
  27. // name of the language file that needs to be included
  28. $language_file='help';
  29. $helpName=$_GET['open'];
  30. include('../inc/global.inc.php');
  31. $language_code = Database::get_language_isocode($language_interface);
  32. header('Content-Type: text/html; charset='. $charset);
  33. ?>
  34. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  35. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $language_code; ?>" lang="<?php echo $language_code; ?>">
  36. <head>
  37. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" />
  38. <title>
  39. <?php echo get_lang('H'.$helpName); ?>
  40. </title>
  41. <style type="text/css" media="screen, projection">
  42. /*<![CDATA[*/
  43. @import "<?php echo api_get_path(WEB_CODE_PATH); ?>css/default/default.css";
  44. /*]]>*/
  45. </style>
  46. <?php
  47. if(api_get_setting('stylesheets')<>'')
  48. {
  49. ?>
  50. <style type="text/css" media="screen, projection">
  51. /*<![CDATA[*/
  52. @import "<?php echo api_get_path(WEB_CODE_PATH); ?>css/<?php echo api_get_setting('stylesheets');?>/default.css";
  53. /*]]>*/
  54. </style>
  55. <?php
  56. }
  57. ?>
  58. </head>
  59. <body>
  60. <div style="margin:10px;">
  61. <div style="text-align:right;"><a href="javascript:window.close();"><?php echo get_lang('Close'); ?></a></div>
  62. <a href="faq.php"><?php echo get_lang('AccessToFaq') ?></a>
  63. <h4>
  64. <?php echo get_lang('H'.$helpName); ?>
  65. </h4>
  66. <?php echo get_lang($helpName.'Content'); ?>
  67. <br /><br />
  68. <a href="faq.php"><?php echo get_lang('AccessToFaq') ?></a>
  69. <div style="text-align:right;"><a href="javascript:window.close();"><?php echo get_lang('Close'); ?></a></div>
  70. </div>
  71. </body>
  72. </html>