Quellcode durchsuchen

#6948 when clicking audio button display list of items with upload fields

Eric Marguin vor 11 Jahren
Ursprung
Commit
322981feaf
2 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. 1 2
      main/newscorm/learnpath.class.php
  2. 5 0
      main/newscorm/lp_admin_view.php

+ 1 - 2
main/newscorm/learnpath.class.php

@@ -4967,8 +4967,7 @@ class learnpath
     }
 
     /**
-     * Function that creates a table structure with a learning path his modules, chapters and documents.
-     * Also the actions for the modules, chapters and documents are in this table.
+     * Function that creates a html list of learning path items so that we can add audio files to them
      * @author Kevin Van Den Haute
      * @param int $lp_id
      * @return string

+ 5 - 0
main/newscorm/lp_admin_view.php

@@ -303,6 +303,11 @@ switch ($_GET['action']) {
         }
         break;
 }
+if(!empty($_GET['updateaudio']))
+{
+    // list of items to add audio files
+    echo $_SESSION['oLP']->overview();
+}
 
 echo '</div>';
 echo '</div>';