b2evolution PHP Cross Reference Blogging Systems

Source: /inc/files/views/_file_download.form.php - 65 lines - 2651 bytes - Text - Print

Description: This file implements the UI for file download.

   1  <?php
   2  /**
   3   * This file implements the UI for file download.
   4   *
   5   * This file is part of the evoCore framework - {@link http://evocore.net/}
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
   9   * Parts of this file are copyright (c)2004-2006 by Daniel HAHLER - {@link http://thequod.de/contact}.
  10   *
  11   * {@internal License choice
  12   * - If you have received this file as part of a package, please find the license.txt file in
  13   *   the same folder or the closest folder above for complete license terms.
  14   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  15   *   then you must choose one of the following licenses before using the file:
  16   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  17   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  18   * }}
  19   *
  20   * {@internal Open Source relicensing agreement:
  21   * Daniel HAHLER grants Francois PLANQUE the right to license
  22   * Daniel HAHLER's contributions to this file and the b2evolution project
  23   * under any OSI approved OSS license (http://www.opensource.org/licenses/).
  24   * }}
  25   *
  26   * @package admin
  27   *
  28   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  29   * @author fplanque: Francois PLANQUE
  30   * @author blueyed: Daniel HAHLER
  31   *
  32   * @version $Id: _file_download.form.php 6136 2014-03-08 07:59:48Z manuel $
  33   */
  34  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  35  
  36  global $zipname, $exclude_sd, $selected_Filelist;
  37  
  38  $Form = new Form( NULL, 'fm_download_checkchanges' );
  39  
  40  $Form->global_icon( T_('Cancel download!'), 'close', regenerate_url() );
  41  
  42  $Form->begin_form( 'fform', T_('Download files in archive') );
  43      $Form->hidden_ctrl();
  44      $Form->hidden( 'action', 'download' );
  45      $Form->hidden( 'action_invoked', 1 );
  46      $Form->hiddens_by_key( get_memorized() );
  47  
  48      $Form->text_input( 'zipname', $zipname, 30, T_('Archive filename'), T_('This is the name of the file which will get sent to you.'),  array( 'maxlength' => '' ) );
  49  
  50      if( $selected_Filelist->count_dirs() )
  51      { // Allow to exclude dirs:
  52          $Form->checkbox( 'exclude_sd', $exclude_sd, T_('Exclude subdirectories'), T_('This will exclude subdirectories of selected directories.') );
  53      }
  54  
  55      $Form->begin_fieldset( T_('Files to download') );
  56      echo '<ul>'
  57          .'<li>'.implode( "</li>\n<li>", $selected_Filelist->get_array( 'get_prefixed_name' ) )."</li>\n"
  58          .'</ul>';
  59  
  60      $Form->end_fieldset();
  61  
  62  $Form->end_form( array(
  63          array( 'submit', 'submit', T_('Download'), 'DeleteButton' ) ) );
  64  
  65  ?>

title

Description

title

Description

title

Description

title

title

Body