dokeos-upload
[ class tree: dokeos-upload ] [ index: dokeos-upload ] [ all elements ]

Source for file form.document.php

Documentation is available at form.document.php

  1. <?php //$id: $
  2. /**
  3.  * Display part of the document sub-process for upload. This script MUST BE included by upload/index.php
  4.  * as it prepares most of the variables needed here.
  5.  * @package dokeos.upload
  6.  * @author Yannick Warnier <ywarnier@beeznest.org>
  7.  */
  8. /**
  9.  * Just display the form needed to upload a SCORM and give its settings
  10.  */
  11. $noPHP_SELF false;
  12. $nameTools get_lang("FileUpload");
  13. $interbreadcrumb[]array ("url"=>"../newscorm/lp_controller.php?action=list""name"=> get_lang(TOOL_DOCUMENT));
  14. Display::display_header($nameTools,"Doc");
  15. //show the title
  16. api_display_tool_title($nameTools.$add_group_to_title);
  17. ?>
  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.         <?php
  23.     /*
  24.     <div id="folderselector">
  25.         //form to select directory
  26.         //$folders = DocumentManager::get_all_document_folders($_course,$to_group_id,$is_allowed_to_edit);
  27.         //include_once('../document/document.inc.php'); //this should be removed when the functions there are moved to inc/lib
  28.         //echo(build_directory_selector($folders,$path,$group_properties['directory']));
  29.     </div>
  30.     */
  31.         ?>
  32.     
  33.     <form method="POST" action="upload.php" id="upload_form" enctype="multipart/form-data" onsubmit="myUpload.start('dynamic_div','progressbar_green.gif','<?php echo(get_lang('Uploading'));?>','upload_form_div');">
  34.         <input type="hidden" name="curdirpath" value="<?php echo $path?>">
  35.         <input type="hidden" name="tool" value="<?php echo $my_tool?>">
  36.         <input type="file" name="user_file">
  37.         <input type="submit" name="submit" value="Upload">
  38.     </form>
  39. </div>
  40. <br/>
  41. <?php
  42. /*
  43. ==============================================================================
  44.         FOOTER
  45. ==============================================================================
  46. */
  47. ?>

Documentation generated on Thu, 12 Jun 2008 13:30:12 -0500 by phpDocumentor 1.4.1