b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_create_comments.form.php - 39 lines - 1675 bytes - Text - Print

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

   1  <?php
   2  /**
   3   * This file display the form to create sample comments for testing moderation
   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_comments.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_comments', 'post', 'compact' );
  23  
  24  $Form->global_icon( T_('Cancel!'), 'close', regenerate_url( 'action' ) );
  25  
  26  $Form->begin_form( 'fform',  T_('Create sample comments for testing moderation') );
  27  
  28      $Form->add_crumb( 'tools' );
  29      $Form->hidden( 'ctrl', 'tools' );
  30      $Form->hidden( 'action',  'create_sample_comments' );
  31      $Form->hidden( 'tab3', get_param( 'tab3' ) );
  32  
  33      $Form->text_input( 'blog_ID', 1, 6, T_( 'Blog ID' ), '', array( 'maxlength' => 5, 'required' => true ) );
  34      $Form->text_input( 'num_comments', 30, 6, T_( 'How many comments per post' ), '', array( 'maxlength' => 6, 'required' => true ) );
  35      $Form->text_input( 'num_posts', 3, 6, T_( 'How many posts' ), '', array( 'maxlength' => 5, 'required' => true ) );
  36  
  37  $Form->end_form( array( array( 'submit', 'submit', T_('Create'), 'SaveButton' ) ) );
  38  
  39  ?>

title

Description

title

Description

title

Description

title

title

Body