home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / filesystem / upload.inc < prev    next >
Text File  |  2004-03-08  |  2KB  |  70 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12. ?>
  13. <input type="hidden" name="task" value="upload" />
  14. <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $GO_CONFIG->max_file_size; ?>" />
  15.  
  16. <?php
  17. $tabtable = new tabtable('upload_tab', $fbUpload, '600', '300');
  18. $tabtable->print_head();
  19. ?>
  20. <table border="0" cellpadding="4" cellspacing="0">
  21. <?php if(isset($feedback)) echo '<tr><td>'.$feedback.'</td></tr>';
  22. ?>
  23. <tr>
  24.     <td>
  25.     <?php echo '<h3>'.$fbPath.': '.$page_title.'</3><br /><br />'.$fbFiles; ?>
  26.     :<br /><br />
  27.     <input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
  28.     <input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
  29.     <input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
  30.     <input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
  31.     <input type="file" name="file[]" maxlength="100" class="textbox" size="70" />
  32.     </td>
  33. </tr>
  34. <tr>
  35.     <td>
  36.     <?php
  37.     echo $fbMaxUploadSize.": ".format_size($GO_CONFIG->max_file_size)." (".number_format($GO_CONFIG->max_file_size, 0, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator'])." bytes)";
  38.     ?>
  39.     </td>
  40. </tr>
  41. <tr>
  42.     <td id="status" class="Success"> </td>
  43. </tr>
  44. <tr>
  45.     <td>
  46.         <br />
  47.         <?php
  48.         $button = new button($cmdOk, "javascript:upload()");
  49.         echo '  ';
  50.         $button = new button($cmdCancel, "javascript:document.location='".$_SERVER['PHP_SELF']."?path=".$urlencoded_path."';");
  51.         ?>
  52.         </td>
  53. </tr>
  54. </table>
  55. <?php
  56. $tabtable->print_foot();
  57. ?>
  58. <script type="text/javascript">
  59. <!--
  60. function upload()
  61. {
  62.     var status = null;
  63.     if (status = get_object("status"))
  64.     {
  65.         status.innerHTML = "<?php echo $fbPleaseWait; ?>";
  66.     }
  67.     document.forms[0].submit();
  68. }
  69. -->
  70. </script>