help.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. $langFile='help';
  28. $helpName=$_GET['open'];
  29. include('../inc/global.inc.php');
  30. $language_code = Database::get_language_isocode($language_interface);
  31. header('Content-Type: text/html; charset='. $charset);
  32. ?>
  33. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  34. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $language_code; ?>" lang="<?php echo $language_code; ?>">
  35. <head>
  36. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" />
  37. <title>
  38. <?php echo get_lang('H'.$helpName); ?>
  39. </title>
  40. <style type="text/css" media="screen, projection">
  41. /*<![CDATA[*/
  42. @import "<?php echo api_get_path(WEB_CODE_PATH); ?>css/default/default.css";
  43. /*]]>*/
  44. </style>
  45. <?php
  46. if(api_get_setting('stylesheets')<>'')
  47. {
  48. ?>
  49. <style type="text/css" media="screen, projection">
  50. /*<![CDATA[*/
  51. @import "<?php echo api_get_path(WEB_CODE_PATH); ?>css/<?php echo api_get_setting('stylesheets');?>/default.css";
  52. /*]]>*/
  53. </style>
  54. <?php
  55. }
  56. ?>
  57. </head>
  58. <body>
  59. <div style="margin:10px;">
  60. <div style="text-align:right;"><a href="javascript:window.close();"><?php echo get_lang('Close'); ?></a></div>
  61. <h4>
  62. <?php echo get_lang('H'.$helpName); ?>
  63. </h4>
  64. <?php echo get_lang($helpName.'Content'); ?>
  65. <div style="text-align:right;"><a href="javascript:window.close();"><?php echo get_lang('Close'); ?></a></div>
  66. </div>
  67. </body>
  68. </html>