[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/files/views/ -> _file_rename.form.php (source)

   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-2007 by Francois PLANQUE - {@link http://fplanque.net/}

   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,v 1.1 2007/06/25 11:00:05 fplanque Exp $

  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->hidden_ctrl();
  49      $Form->hiddens_by_key( get_memorized() );
  50      $Form->hidden( 'action', 'rename' );
  51      $Form->hidden( 'confirmed', 1 );
  52  
  53      $selected_Filelist->restart();
  54      while( $loop_src_File = & $selected_Filelist->get_next() )
  55      {
  56          $Form->begin_fieldset( T_('File').': '.$loop_src_File->dget('name') );
  57  
  58          $Form->text( 'new_names['.$loop_src_File->get_md5_ID().']', $new_names[$loop_src_File->get_md5_ID()], 32,
  59                                      T_('New name'), $loop_src_File->dget('title'), 128 );
  60  
  61          $Form->end_fieldset();
  62      }
  63  
  64  
  65  $Form->end_form( array( array( 'submit', 'submit', T_('Rename'), 'SaveButton' ),
  66                                                  array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  67  
  68  /*

  69   * $Log: _file_rename.form.php,v $

  70   * Revision 1.1  2007/06/25 11:00:05  fplanque

  71   * MODULES (refactored MVC)

  72   *

  73   * Revision 1.7  2007/04/26 00:11:10  fplanque

  74   * (c) 2007

  75   *

  76   * Revision 1.6  2006/12/23 22:53:10  fplanque

  77   * extra security

  78   *

  79   * Revision 1.5  2006/11/24 18:27:25  blueyed

  80   * Fixed link to b2evo CVS browsing interface in file docblocks

  81   */
  82  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics