0byt3m1n1
Path:
/
data
/
applications
/
aps
/
b2evolution
/
3.3.1-5
/
standard
/
htdocs
/
inc
/
files
/
views
/
[
Home
]
File: _file_rename.form.php
<?php /** * 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/}. * * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} * * {@internal License choice * - If you have received this file as part of a package, please find the license.txt file in * the same folder or the closest folder above for complete license terms. * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) * then you must choose one of the following licenses before using the file: * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php * }} * * {@internal Open Source relicensing agreement: * }} * * @package admin * * {@internal Below is a list of authors who have contributed to design/coding of this file: }} * @author fplanque: Francois PLANQUE. * * @version $Id: _file_rename.form.php,v 1.3 2009/03/08 23:57:43 fplanque Exp $ */ if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); /** * @global Filelist */ global $selected_Filelist; /** * @global string */ global $new_names; $Form = & new Form( NULL, 'fm_rename_checkchanges' ); $Form->global_icon( T_('Cancel rename!'), 'close', regenerate_url() ); $Form->begin_form( 'fform', T_('Rename') ); $Form->hidden_ctrl(); $Form->hiddens_by_key( get_memorized() ); $Form->hidden( 'action', 'rename' ); $Form->hidden( 'confirmed', 1 ); $selected_Filelist->restart(); while( $loop_src_File = & $selected_Filelist->get_next() ) { $Form->begin_fieldset( T_('File').': '.$loop_src_File->dget('name') ); $Form->text( 'new_names['.$loop_src_File->get_md5_ID().']', $new_names[$loop_src_File->get_md5_ID()], 32, T_('New name'), $loop_src_File->dget('title'), 128 ); $Form->end_fieldset(); } $Form->end_form( array( array( 'submit', 'submit', T_('Rename'), 'SaveButton' ), array( 'reset', '', T_('Reset'), 'ResetButton' ) ) ); ?>