dokeos-learnpath
[ class tree: dokeos-learnpath ] [ index: dokeos-learnpath ] [ all elements ]

Source for file lp_nav.php

Documentation is available at lp_nav.php

  1. <?php //$id: $
  2. /**
  3.  * Script opened in an iframe and containing the learning path's navigation and progress bar
  4.  * @package dokeos.learnpath
  5.  * @author Yannick Warnier <ywarnier@beeznest.org>
  6.  * @license    GNU/GPL - See Dokeos license directory for details
  7.  */
  8. /**
  9.  * Script
  10.  */
  11. //flag to allow for anonymous user - needs to be set before global.inc.php
  12. $use_anonymous true;
  13. // name of the language file that needs to be included 
  14. $language_file["scormdocument";
  15. $language_file["scorm";
  16. $language_file["learnpath";
  17. require_once('back_compat.inc.php');
  18. require_once('learnpath.class.php');
  19. require_once('scorm.class.php');
  20. require_once('aicc.class.php');
  21.  
  22. //error_log('New LP - Loaded lp_nav: '.$_SERVER['REQUEST_URI'],0);
  23.  
  24. $htmlHeadXtra['<script language="JavaScript" type="text/javascript">
  25.       var dokeos_xajax_handler = window.parent.oxajax;
  26.     </script>';
  27.  
  28. $progress_bar '';
  29. $navigation_bar '';
  30. $display_mode '';
  31.  
  32. if(isset($_SESSION['lpobject']))
  33. {
  34.     //if($debug>0) //error_log('New LP - in lp_nav.php - SESSION[lpobject] is defined',0);
  35.     $oLP unserialize($_SESSION['lpobject']);
  36.     if(is_object($oLP))
  37.     {
  38.         $_SESSION['oLP'$oLP;
  39.     }
  40.     else
  41.     {
  42.         //error_log('New LP - in lp_nav.php - SESSION[lpobject] is not object - dying',0);
  43.         die('Could not instanciate lp object');
  44.     }    
  45.     $display_mode $_SESSION['oLP']->mode;
  46.         
  47.     $scorm_css_header=true;
  48.     $lp_theme_css=$_SESSION['oLP']->get_theme();    
  49.     
  50.     //Setting up the CSS theme if exists    
  51.     include_once('../inc/reduced_header.inc.php');    
  52.     
  53.     if (!empty($lp_theme_css&& !empty($mycourselptheme&& $mycourselptheme!=-&& $mycourselptheme== )    
  54.     {
  55.         global $lp_theme_css;            
  56.     }
  57.     else 
  58.     {
  59.         $lp_theme_css=$my_style;
  60.     }
  61.     
  62.     $progress_bar $_SESSION['oLP']->get_progress_bar();
  63.     $navigation_bar $_SESSION['oLP']->get_navigation_bar();}
  64. ?>
  65. <body>
  66.     <div class="lp_navigation_elem">
  67.       <?php echo $progress_bar?>
  68.       <?php echo $navigation_bar?>
  69.     </div>
  70. </body>
  71. </html>

Documentation generated on Thu, 12 Jun 2008 14:03:03 -0500 by phpDocumentor 1.4.1