form.document.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. * @package chamilo.upload
  7. * @author Yannick Warnier <ywarnier@beeznest.org>
  8. */
  9. /**
  10. * Just display the form needed to upload a SCORM and give its settings
  11. */
  12. $noPHP_SELF = false;
  13. $nameTools = get_lang('FileUpload');
  14. $interbreadcrumb[] = array("url"=>"../lp/lp_controller.php?action=list", "name"=> get_lang(TOOL_DOCUMENT));
  15. Display::display_header($nameTools, "Doc");
  16. //show the title
  17. api_display_tool_title($nameTools.$add_group_to_title);
  18. ?>
  19. <div id="dynamic_div" style="display:block;margin-left:40%;margin-top:10px;height:50px;">
  20. </div>
  21. <div id="upload_form_div" name="form_div" style="display:block;">
  22. <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');">
  23. <input type="hidden" name="curdirpath" value="<?php echo $path; ?>">
  24. <input type="hidden" name="tool" value="<?php echo $my_tool; ?>">
  25. <input type="file" name="user_file">
  26. <input type="submit" name="submit" value="Upload">
  27. </form>
  28. </div>
  29. <br/>
  30. <?php
  31. /*
  32. FOOTER
  33. */
  34. Display::display_footer();