b2evolution PHP Cross Reference Blogging Systems

Source: /inc/files/views/_file_edit.form.php - 59 lines - 2011 bytes - Text - Print

Description: This file implements the file editing form. 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 file editing form.
   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_edit.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   * @var File
  33   */
  34  global $edited_File;
  35  
  36  $Form = new Form( NULL, 'file_edit' );
  37  
  38  $Form->global_icon( T_('Cancel editing!'), 'close', regenerate_url('fm_mode') );
  39  
  40  $Form->begin_form( 'fform', T_('Editing:').' '.$edited_File->get_rdfs_rel_path() );
  41      $Form->hidden_ctrl();
  42      $Form->add_crumb( 'file' );
  43      $Form->hidden( 'action', 'update_file' );
  44      $Form->hiddens_by_key( get_memorized() );
  45  
  46       $Form->switch_layout( 'none' );
  47      echo '<div class="center">';
  48  
  49      $Form->textarea_input( 'file_content', $edited_File->content, 25, '', array( 'class'=>'large', 'cols' => '80' ) );
  50  
  51      $Form->buttons( array( array( 'submit', '', T_('Save!'), 'SaveButton' ),
  52                                                  array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  53  
  54      echo '</div>';
  55       $Form->switch_layout( NULL );
  56  
  57  $Form->end_form();
  58  
  59  ?>

title

Description

title

Description

title

Description

title

title

Body