|
|
|
@ -34,20 +34,18 @@ $cmd = (isset($_REQUEST['cmd'])? $_REQUEST['cmd'] : 'show_import'); |
|
|
|
|
|
|
|
|
|
switch ($cmd) { |
|
|
|
|
case 'show_import': |
|
|
|
|
|
|
|
|
|
$display = '<p>' |
|
|
|
|
. get_lang('Imported exercises must consist of a zip or an XML file (IMS-QTI) and be compatible with your Claroline version.') . '<br>' |
|
|
|
|
. '</p>' |
|
|
|
|
. '<form enctype="multipart/form-data" action="" method="post">' |
|
|
|
|
. '<input name="cmd" type="hidden" value="import" />' |
|
|
|
|
. '<input name="uploadedExercise" type="file" /><br><br>' |
|
|
|
|
. get_lang('Import exercise') . ' : ' |
|
|
|
|
. '<input value="' . get_lang('Ok') . '" type="submit" /> ' |
|
|
|
|
. claro_html_button( $_SERVER['PHP_SELF'], get_lang('Cancel')) |
|
|
|
|
. '<br><br>' |
|
|
|
|
. '<small>' . get_lang('Max file size') . ' : 2 MB</small>' |
|
|
|
|
. '</form>'; |
|
|
|
|
|
|
|
|
|
. get_lang('Imported exercises must consist of a zip or an XML file (IMS-QTI) and be compatible with your Claroline version.') . '<br>' |
|
|
|
|
. '</p>' |
|
|
|
|
. '<form enctype="multipart/form-data" action="" method="post">' |
|
|
|
|
. '<input name="cmd" type="hidden" value="import" />' |
|
|
|
|
. '<input name="uploadedExercise" type="file" /><br><br>' |
|
|
|
|
. get_lang('Import exercise') . ' : ' |
|
|
|
|
. '<input value="' . get_lang('Ok') . '" type="submit" /> ' |
|
|
|
|
. claro_html_button( $_SERVER['PHP_SELF'], get_lang('Cancel')) |
|
|
|
|
. '<br><br>' |
|
|
|
|
. '<small>' . get_lang('Max file size') . ' : 2 MB</small>' |
|
|
|
|
. '</form>'; |
|
|
|
|
break; |
|
|
|
|
case 'import': |
|
|
|
|
//include needed librabries for treatment |
|
|
|
|