form.document.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Display part of the document sub-process for upload. This script MUST BE included by upload/index.php
  5. * as it prepares most of the variables needed here.
  6. *
  7. * @package chamilo.upload
  8. *
  9. * @author Yannick Warnier <ywarnier@beeznest.org>
  10. */
  11. /**
  12. * Just display the form needed to upload a SCORM and give its settings.
  13. */
  14. $nameTools = get_lang('FileUpload');
  15. $interbreadcrumb[] = ["url" => "../lp/lp_controller.php?action=list", "name" => get_lang(TOOL_DOCUMENT)];
  16. Display::display_header($nameTools, "Doc");
  17. // Show the title
  18. api_display_tool_title($nameTools.$add_group_to_title);
  19. ?>
  20. <div id="dynamic_div" style="display:block;margin-left:40%;margin-top:10px;height:50px;">
  21. </div>
  22. <div id="upload_form_div" name="form_div" style="display:block;">
  23. <form method="POST" action="upload.php" id="upload_form" enctype="multipart/form-data">
  24. <input type="hidden" name="curdirpath" value="<?php echo $path; ?>">
  25. <input type="hidden" name="tool" value="<?php echo $my_tool; ?>">
  26. <input type="file" name="user_file">
  27. <input type="submit" name="submit" value="Upload">
  28. </form>
  29. </div>
  30. <br/>
  31. <?php
  32. Display::display_footer();