b2evolution PHP Cross Reference Blogging Systems

Source: /inc/files/views/_file_rename.form.php - 69 lines - 2194 bytes - Text - Print

Description: This file implements the UI for file rename 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 rename
   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   *
  10   * {@internal License choice
  11   * - If you have received this file as part of a package, please find the license.txt file in
  12   *   the same folder or the closest folder above for complete license terms.
  13   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  14   *   then you must choose one of the following licenses before using the file:
  15   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  16   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  17   * }}
  18   *
  19   * {@internal Open Source relicensing agreement:
  20   * }}
  21   *
  22   * @package admin
  23   *
  24   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  25   * @author fplanque: Francois PLANQUE.
  26   *
  27   * @version $Id: _file_rename.form.php 6136 2014-03-08 07:59:48Z manuel $
  28   */
  29  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  30  
  31  /**
  32   * @global Filelist
  33   */
  34  global $selected_Filelist;
  35  
  36  /**
  37   * @global string
  38   */
  39  global $new_names;
  40  
  41  
  42  $Form = new Form( NULL, 'fm_rename_checkchanges' );
  43  
  44  $Form->global_icon( T_('Cancel rename!'), 'close', regenerate_url() );
  45  
  46  $Form->begin_form( 'fform', T_('Rename') );
  47  
  48      $Form->add_crumb( 'file' );
  49      $Form->hidden_ctrl();
  50      $Form->hiddens_by_key( get_memorized() );
  51      $Form->hidden( 'action', 'rename' );
  52      $Form->hidden( 'confirmed', 1 );
  53  
  54      $selected_Filelist->restart();
  55      while( $loop_src_File = & $selected_Filelist->get_next() )
  56      {
  57          $Form->begin_fieldset( T_('File').': '.$loop_src_File->dget('name') );
  58  
  59          $Form->text( 'new_names['.$loop_src_File->get_md5_ID().']', $new_names[$loop_src_File->get_md5_ID()], 32,
  60                                      T_('New name'), $loop_src_File->dget('title'), 128 );
  61  
  62          $Form->end_fieldset();
  63      }
  64  
  65  
  66  $Form->end_form( array( array( 'submit', 'submit', T_('Rename'), 'SaveButton' ),
  67                                                  array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  68  
  69  ?>

title

Description

title

Description

title

Description

title

title

Body