b2evolution PHP Cross Reference Blogging Systems

Source: /inc/slugs/views/_slug.form.php - 61 lines - 2245 bytes - Text - Print

Description: This file display the slugs form This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}. See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This file display the slugs form
   4   *
   5   * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}.
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}.
   9   * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
  10   *
  11   * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
  12   *
  13   * @package admin
  14   *
  15   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  16   * @author evfy-asimo: Attila Simo.
  17   *
  18   * @version $Id: _slug.form.php 6136 2014-03-08 07:59:48Z manuel $
  19   */
  20  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  21  
  22  /**
  23   * @var Slug
  24   */
  25  global $edited_Slug;
  26  
  27  // Determine if we are creating or updating...
  28  global $action;
  29  $creating = is_create_action( $action );
  30  
  31  $Form = new Form( NULL, 'slug_checkchanges', 'post', 'compact' );
  32  
  33  $Form->global_icon( T_('Cancel editing!'), 'close', regenerate_url( 'action' ) );
  34  
  35  $Form->begin_form( 'fform', $creating ?  T_('New Slug') . get_manual_link('slug-form') : T_('Slug') . get_manual_link('slug-form') );
  36  
  37      $Form->add_crumb( 'slug' );
  38      $Form->hidden( 'action',  $creating ? 'create' : 'update' );
  39      $Form->hiddens_by_key( get_memorized( 'action'.( $creating ? ',slug_ID' : '' ) ) );
  40  
  41      $Form->text_input( 'slug_title', $edited_Slug->get( 'title' ), 50, T_('Slug'), '', array( 'maxlength'=> 255, 'required'=>true ) );
  42  
  43      $Form->radio_input( 'slug_type', $creating ? 'item' : $edited_Slug->get( 'type' ), array( 
  44                          array( 'value' => 'item', 'label' => T_( 'Item' ) ),
  45                          array( 'value' => 'help', 'label' => T_( 'Help' ) ) ),
  46                          T_('Type'), array( 'lines' => 1 ) );
  47  
  48      $Form->text_input( 'slug_object_ID', $edited_Slug->get( 'itm_ID' ), 50, T_('Object ID'), '', array( 'maxlength'=> 11, 'required'=>false ) );
  49  
  50  if( $creating )
  51  {
  52      $Form->end_form( array( array( 'submit', 'submit', T_('Record'), 'SaveButton' ),
  53                              array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  54  }
  55  else
  56  {
  57      $Form->end_form( array( array( 'submit', 'submit', T_('Update'), 'SaveButton' ),
  58                              array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  59  }
  60  
  61  ?>

title

Description

title

Description

title

Description

title

title

Body