lp_author_image.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php //$id: $
  2. /**
  3. * Script that displays the author name and image of a LP
  4. * @package dokeos.learnpath
  5. * @author Julio Montoya Armas <gugli100@gmail.com>
  6. */
  7. $use_anonymous = true;
  8. require_once('back_compat.inc.php');
  9. require_once('learnpath.class.php');
  10. require_once('scorm.class.php');
  11. require_once('aicc.class.php');
  12. //Getting the LP
  13. if(isset($_SESSION['lpobject']))
  14. {
  15. $oLP = unserialize($_SESSION['lpobject']);
  16. if(is_object($oLP)){
  17. $_SESSION['oLP'] = $oLP;
  18. }else{
  19. die('Could not instanciate lp object');
  20. }
  21. } /*
  22. $charset = $_SESSION['oLP']->encoding;
  23. $lp_theme_css=$_SESSION['oLP']->get_theme();
  24. */
  25. $scorm_css_header=true;
  26. // scorm.css loaded
  27. include_once('../inc/reduced_header.inc.php');
  28. echo '<html>
  29. <body>';
  30. $image = '../img/lp_author_background.gif';
  31. echo '<div id="image_preview">';
  32. echo '<table STYLE="width:250px;height:110px;background-image: url('.$image.');">';
  33. echo '<tr><td align="center">';
  34. if ($_SESSION['oLP']->get_preview_image()!='')
  35. echo '<img alt="" src="'.api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image().'">';
  36. else
  37. echo Display::display_icon('unknown_250_100.jpg',' ');
  38. echo '</td></tr>';
  39. echo '</table>';
  40. echo '<div id="author_name">';
  41. echo $_SESSION['oLP']->get_author();
  42. echo '</div>';
  43. echo '</div>';
  44. ?>
  45. </body>
  46. </html>