home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / cms / upload_template_file.inc < prev    next >
Text File  |  2004-03-08  |  2KB  |  79 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.  
  14. <input type="hidden" name="task" value="upload" />
  15. <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $GO_CONFIG->max_file_size; ?>" />
  16.  
  17. <table border="0" cellpadding="0" cellspacing="0" class="TableBorder" width="400">
  18. <tr>
  19.     <td valign="top">
  20.     <table border="0" cellpadding="1" cellspacing="1" width="100%">
  21.     <tr>
  22.         <td colspan="99" class="TableHead"><?php echo $fbUpload; ?></td>
  23.     </tr>
  24.     <tr>
  25.         <td class="TableInside">
  26.         <table border="0" cellpadding="4" cellspacing="0">
  27.         <?php if(isset($feedback)) echo '<tr><td>'.$feedback.'</td></tr>';
  28.         ?>
  29.         <tr>
  30.             <td><br /><br />
  31.             <?php echo $fbFiles; ?>
  32.             :<br /><br />
  33.             <input type="file" name="file[]" maxlength="100" class="textbox" /><br />
  34.             <input type="file" name="file[]" maxlength="100" class="textbox" /><br />
  35.             <input type="file" name="file[]" maxlength="100" class="textbox" /><br />
  36.             <input type="file" name="file[]" maxlength="100" class="textbox" /><br />
  37.             <input type="file" name="file[]" maxlength="100" class="textbox" />
  38.             </td>
  39.         </tr>
  40.         <tr>
  41.             <td>
  42.             <?php
  43.             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)";
  44.             ?>
  45.             </td>
  46.         </tr>
  47.         <tr>
  48.             <td id="status" class="Success"> </td>
  49.         </tr>
  50.         <tr>
  51.             <td>
  52.                 <br />
  53.                 <?php
  54.                 $button = new button($cmdOk, "javascript:upload()");
  55.                 echo '  ';
  56.                 $button = new button($cmdCancel, "javascript:document.location='".$_SERVER['PHP_SELF']."?template_id=".$template_id."&task=files';");
  57.                 ?>
  58.                 </td>
  59.         </tr>
  60.         </table>
  61.         </td>
  62.     </tr>
  63.     </table>
  64.     </td>
  65. </tr>
  66. </table>
  67. <script type="text/javascript">
  68. <!--
  69. function upload()
  70. {
  71.     var status = null;
  72.     if (status = get_object("status"))
  73.     {
  74.         status.innerHTML = "<?php echo $fbPleaseWait; ?>";
  75.     }
  76.     document.forms[0].submit();
  77. }
  78. -->
  79. </script>