[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
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-2007 by Francois PLANQUE - {@link http://fplanque.net/} 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,v 1.1 2007/06/25 10:59:59 fplanque Exp $ 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 66 /* 67 * $Log: _file_download.form.php,v $ 68 * Revision 1.1 2007/06/25 10:59:59 fplanque 69 * MODULES (refactored MVC) 70 * 71 * Revision 1.8 2007/04/26 00:11:10 fplanque 72 * (c) 2007 73 * 74 * Revision 1.7 2006/12/09 01:55:36 fplanque 75 * feel free to fill in some missing notes 76 * hint: "login" does not need a note! :P 77 * 78 * Revision 1.6 2006/11/24 18:27:25 blueyed 79 * Fixed link to b2evo CVS browsing interface in file docblocks 80 */ 81 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |