home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / filesystem / compress.inc next >
Encoding:
Text File  |  2004-03-08  |  1.5 KB  |  49 lines

  1. <?php
  2. echo '<input type="hidden" name="task" />';
  3.  
  4. if (isset($_POST['files']))
  5. {
  6.     while($file = array_shift($_POST['files']))
  7.     {
  8.         echo '<input type="hidden" name="archive_files[]" value="'.$file.'" />';
  9.     }
  10. }
  11. if (isset($_POST['folders']))
  12. {
  13.     while($folder = array_shift($_POST['folders']))
  14.     {
  15.         echo '<input type="hidden" name="archive_files[]" value="'.$folder.'" />';
  16.     }    
  17. }
  18. $tabtable = new tabtable('go_archiver', 'Comprimeren', '400', '100', '100', '', true);
  19. $tabtable->print_head();
  20. if (isset($feedback))
  21. {
  22.     echo '<p class="Error">'.$feedback.'</p>';
  23. }
  24. $compression_type = isset($_POST['compression_type']) ? $_POST['compression_type'] : 'gz';
  25.  
  26. $name = isset($_POST['name']) ? $_POST['name'] : '';
  27.  
  28.  
  29. echo '<table border="0"><tr><td>'.$strName.':</td><td>';
  30. echo '<input type="text" class="textbox" name="name" value="'.$name.'" size="30" />';
  31. echo '</td></tr><tr><td valign="top">'.$fb_compression_type.':</td><td>';
  32.  
  33. $radio_list = new radio_list('compression_type', $compression_type);
  34. $radio_list->add_option('gz', 'gz', 'gzip');
  35. echo '<br />';
  36. $radio_list->add_option('bz2', 'bz2', 'bzip');
  37. echo '<br />';
  38. $radio_list->add_option('zip','zip', 'zip');
  39. echo '</td></tr><tr><td colspan="2">';
  40. $button = new button($cmdOk, "javascript:document.forms[0].task.value='save_archive';document.forms[0].submit();");
  41. echo '  ';
  42. $button = new button($cmdCancel, "javascript:document.forms[0].task.value='';document.forms[0].submit();");
  43. echo '</td></tr></table>';
  44.  
  45. $tabtable->print_foot();
  46. ?>
  47. <script type="text/javascript">
  48. document.forms[0].name.focus();
  49. </script>