b2evolution PHP Cross Reference Blogging Systems

Source: /inc/chapters/views/_chapter_move.form.php - 68 lines - 2266 bytes - Text - Print

Description: This file implements the Chapter 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 Chapter 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   * @package admin
  20   *
  21   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  22   * @author fplanque: Francois PLANQUE.
  23   *
  24   * @version $Id: _chapter_move.form.php 6136 2014-03-08 07:59:48Z manuel $
  25   */
  26  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  27  
  28  /**
  29   * @var Chapter
  30   */
  31  global $edited_GenericCategory;
  32  /**
  33   * @var Chapter
  34   */
  35  $edited_Chapter = & $edited_GenericCategory;
  36  
  37  /**
  38   * @var BlogCache
  39   */
  40  global $BlogCache;
  41  
  42  global $action;
  43  
  44  $Form = new Form( NULL, 'form' );
  45  
  46  $Form->global_icon( T_('Cancel move!'), 'close', regenerate_url( 'action' ) );
  47  
  48  $Form->begin_form( 'fform', T_('Move category') );
  49  
  50  $Form->add_crumb( 'element' );
  51  $Form->hidden( 'action', 'update_move' );
  52  $Form->hiddens_by_key( get_memorized( 'action' ) );
  53  
  54  $Form->begin_fieldset( T_('Properties') );
  55  
  56      $Form->info( T_('Name'), $edited_Chapter->name );
  57  
  58      // We're essentially double checking here...
  59      $edited_Blog = & $edited_Chapter->get_Blog();
  60  
  61      $Form->select_input_options( $edited_Chapter->dbprefix.'coll_ID', $BlogCache->get_option_list( $edited_Blog->ID ), T_('Attached to blog'), T_('If you select a new blog, you will be able to choose a position within this blog on the next screen.') );
  62  
  63  $Form->end_fieldset();
  64  
  65  $Form->end_form( array( array( 'submit', 'submit', T_('Update'), 'SaveButton' ),
  66                                                  array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  67  
  68  ?>

title

Description

title

Description

title

Description

title

title

Body