b2evolution PHP Cross Reference Blogging Systems

Source: /inc/files/views/_file_delete.form.php - 74 lines - 2457 bytes - Text - Print

Description: This file implements the UI for file deletion This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This file implements the UI for file deletion
   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 evocore
  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_delete.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  
  37  /**
  38   * @global Filelist
  39   */
  40  global $selected_Filelist;
  41  
  42  
  43  $Form = new Form( NULL );
  44  
  45  $Form->global_icon( T_('Cancel delete!'), 'close', regenerate_url() );
  46  
  47  $Form->begin_form( 'fform', T_('Delete') );
  48  
  49      $Form->add_crumb( 'file' );
  50      $Form->hidden_ctrl();
  51      $Form->hiddens_by_key( get_memorized() );
  52      $Form->hidden( 'action', 'delete' );
  53      $Form->hidden( 'confirmed', 1 );
  54  
  55      $Form->begin_fieldset( T_('Confirm delete') );
  56  
  57      echo $selected_Filelist->count() > 1
  58          ? T_('Do you really want to delete the following files?')
  59          : T_('Do you really want to delete the following file?');
  60  
  61      $selected_Filelist->restart();
  62      echo '<ul>';
  63          while( $l_File = & $selected_Filelist->get_next() )
  64          {
  65              echo '<li>'.$l_File->get_prefixed_name().'</li>';
  66          }
  67      echo '</ul>';
  68  
  69      $Form->end_fieldset();
  70  
  71  $Form->end_form( array(
  72          array( 'submit', 'submit', T_('Delete'), 'DeleteButton' ) ) );
  73  
  74  ?>

title

Description

title

Description

title

Description

title

title

Body