b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_create_posts.form.php - 38 lines - 1520 bytes - Text - Print

Description: This file display the form to create sample posts for testing

   1  <?php
   2  /**
   3   * This file display the form to create sample posts for testing
   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 efy-asimo: Attila Simo.
  17   *
  18   * @version $Id: _create_posts.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  $Form = new Form( NULL, 'create_posts', 'post', 'compact' );
  23  
  24  $Form->global_icon( T_('Cancel!'), 'close', regenerate_url( 'action' ) );
  25  
  26  $Form->begin_form( 'fform',  T_('Create sample post for testing moderation') );
  27  
  28      $Form->add_crumb( 'tools' );
  29      $Form->hidden( 'ctrl', 'tools' );
  30      $Form->hidden( 'action',  'create_sample_posts' );
  31      $Form->hidden( 'tab3', get_param( 'tab3' ) );
  32  
  33      $Form->text_input( 'blog_ID', 1, 50, T_( 'Blog ID' ), '', array( 'maxlength' => 11, 'required' => true ) );
  34      $Form->text_input( 'num_posts', 3, 50, T_( 'How many posts' ), '', array( 'maxlength' => 11, 'required' => true ) );
  35  
  36  $Form->end_form( array( array( 'submit', 'submit', T_('Create'), 'SaveButton' ) ) );
  37  
  38  ?>

title

Description

title

Description

title

Description

title

title

Body