[svn r12839] Added hotpotatoes form

Updated comments
skala
Yannick Warnier 19 years ago
parent 6edc0275f5
commit 2b4a61e6f0
  1. 47
      main/newscorm/lp_add_item.php

@ -2,7 +2,7 @@
/* /*
============================================================================== ==============================================================================
Dokeos - elearning and course management software Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A. Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent) Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL) Copyright (c) 2001 Universite catholique de Louvain (UCL)
@ -25,12 +25,13 @@
*/ */
/** /**
============================================================================== ==============================================================================
* This is a learning path creation and player tool in Dokeos - previously learnpath_handler.php * This is a learning path creation and player tool in Dokeos - previously
* learnpath_handler.php
* *
* @author Patrick Cool * @author Patrick Cool
* @author Denes Nagy * @author Denes Nagy
* @author Roan Embrechts, refactoring and code cleaning * @author Roan Embrechts, refactoring and code cleaning
* @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update for new SCORM tool * @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update
* @package dokeos.learnpath * @package dokeos.learnpath
============================================================================== ==============================================================================
*/ */
@ -130,12 +131,6 @@ $therow=Database::fetch_array($result);
SHOWING THE ADMIN TOOLS SHOWING THE ADMIN TOOLS
==================================================*/ ==================================================*/
/*==================================================
prerequisites setting end
==================================================*/
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path")); $interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>api_get_self()."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}")); $interbreadcrumb[]= array ("url"=>api_get_self()."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
@ -341,7 +336,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
if(isset($_GET['file']) && is_numeric($_GET['file'])) if(isset($_GET['file']) && is_numeric($_GET['file']))
{ {
echo $_SESSION['oLP']->display_document_form('add', 0, $_GET['file']); echo $_SESSION['oLP']->display_document_form('add', 0, $_GET['file']);
} }
else else
{ {
@ -350,22 +345,28 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
break; break;
case 'hotpotatoes':
echo $_SESSION['oLP']->display_hotpotatoes_form('add', 0, $_GET['file']);
break;
case 'quiz': case 'quiz':
echo $_SESSION['oLP']->display_quiz_form('add', 0, $_GET['file']); echo $_SESSION['oLP']->display_quiz_form('add', 0, $_GET['file']);
break; break;
case 'forum': case 'forum':
echo $_SESSION['oLP']->display_forum_form('add', 0, $_GET['forum_id']); echo $_SESSION['oLP']->display_forum_form('add', 0, $_GET['forum_id']);
break; break;
case 'thread': case 'thread':
echo $_SESSION['oLP']->display_thread_form('add', 0, $_GET['thread_id']); echo $_SESSION['oLP']->display_thread_form('add', 0, $_GET['thread_id']);
break; break;
case 'link': case 'link':
@ -400,4 +401,4 @@ echo '</table>';
============================================================================== ==============================================================================
*/ */
Display::display_footer(); Display::display_footer();
?> ?>

Loading…
Cancel
Save