Seditio Source
Root |
./othercms/b2evolution_7.2.3/inc/files/views/_file_edit.form.php
<?php
/**
 * This file implements the file editing form.
 *
 * This file is part of the evoCore framework - {@link http://evocore.net/}
 * See also {@link https://github.com/b2evolution/b2evolution}.
 *
 * @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license}
 *
 * @copyright (c)2003-2020 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package admin
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

/**
 * @var File
 */
global $edited_File;

$block_item_Widget = new Widget( 'block_item' );
$block_item_Widget->title = TB_('Editing:').' '.$edited_File->get_rdfs_rel_path();
$block_item_Widget->global_icon( TB_('Cancel editing').'!', 'close', regenerate_url( 'fm_mode' ) );
$block_item_Widget->disp_template_replaced( 'block_start' );

$Form = new Form( NULL, 'file_edit' );
   
$Form->switch_layout( 'none' );
   
$Form->begin_form( 'fform' );
   
$Form->hidden_ctrl();
   
$Form->add_crumb( 'file' );
   
$Form->hidden( 'action', 'update_file' );
   
$Form->hiddens_by_key( get_memorized() );

   
$Form->textarea_input( 'file_content', $edited_File->content, 25, '', array( 'cols' => '80', 'style' => 'width: 100%;' ) );

    echo
'<div class="center" style="margin: 25px 0 10px 0;">';
   
$Form->buttons( array( array( 'submit', '', TB_('Save Changes!'), 'SaveButton' ) ) );
    echo
'</div>';

$Form->end_form();

$block_item_Widget->disp_template_replaced( 'block_end' );
?>