Dokeos PHP Cross Reference Learning Management Systems

Source: /main/upload/form.document.php - 43 lines - 1560 bytes - Summary - Text - Print

Description: Upload Just display the form needed to upload a SCORM and give its settings

   1  <?php
   2  /* For licensing terms, see /dokeos_license.txt */
   3  
   4  /**
   5   * Upload
   6   * Just display the form needed to upload a SCORM and give its settings
   7   * @package dokeos.upload
   8   */
   9  
  10  $noPHP_SELF = false;
  11  $nameTools = get_lang("FileUpload");
  12  $interbreadcrumb[]= array ("url"=>"../newscorm/lp_controller.php?action=list", "name"=> get_lang(TOOL_DOCUMENT));
  13  Display::display_header($nameTools,"Doc");
  14  //show the title
  15  api_display_tool_title($nameTools.$add_group_to_title);
  16  ?>
  17  
  18  <div id="dynamic_div" style="display:block;margin-left:40%;margin-top:10px;height:50px;">
  19  </div>
  20  <div id="upload_form_div" name="form_div" style="display:block;">
  21          <?php
  22      /*
  23      <div id="folderselector">
  24          //form to select directory
  25          //$folders = DocumentManager::get_all_document_folders($_course,$to_group_id,$is_allowed_to_edit);
  26          //include_once('../document/document.inc.php'); //this should be removed when the functions there are moved to inc/lib
  27          //echo(build_directory_selector($folders,$path,$group_properties['directory']));
  28      </div>
  29      */
  30          ?>
  31  
  32      <form method="POST" action="upload.php" id="upload_form" enctype="multipart/form-data" onsubmit="javascript: myUpload.start('dynamic_div','progressbar_green.gif','<?php echo(get_lang('Uploading', ''));?>','upload_form_div');">
  33          <input type="hidden" name="curdirpath" value="<?php echo $path; ?>">
  34          <input type="hidden" name="tool" value="<?php echo $my_tool; ?>">
  35          <input type="file" name="user_file">
  36          <input type="submit" name="submit" value="Upload">
  37      </form>
  38  </div>
  39  <br/>
  40  <?php
  41  // Display the footer
  42  Display::display_footer();
  43  ?>

title

Description

title

Description

title

Description

title

title

Body