b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_create_messages.form.php - 42 lines - 1992 bytes - Text - Print

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

   1  <?php
   2  /**

   3   * This file display the form to create sample messages 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_messages.form.php 9 2011-10-24 22:32:00Z fplanque $

  19   */
  20  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  21  
  22  global $threads_count;
  23  
  24  $Form = new Form( NULL, 'create_messages', 'post', 'compact' );
  25  
  26  $Form->global_icon( T_('Cancel!'), 'close', regenerate_url( 'action' ) );
  27  
  28  $Form->begin_form( 'fform',  T_('Create sample messages for testing moderation') );
  29  
  30      $Form->add_crumb( 'tools' );
  31      $Form->hidden( 'ctrl', 'tools' );
  32      $Form->hidden( 'action', 'create_sample_messages' );
  33      $Form->hidden( 'tab3', get_param( 'tab3' ) );
  34  
  35      $Form->text_input( 'num_loops', 3, 50, T_( 'How many loops' ), '', array( 'maxlength' => 11, 'required' => true, 'note' => sprintf( T_('1 loop will create %d conversations'), $threads_count ) ) );
  36      $Form->text_input( 'num_messages', 5, 50, T_( 'How many messages in each conversation' ), '', array( 'maxlength' => 11, 'required' => true ) );
  37      $Form->text_input( 'num_words', 3, 50, T_( 'How many words in each message' ), '', array( 'maxlength' => 11, 'required' => true ) );
  38      $Form->text_input( 'max_users', 3, 50, T_( 'Max # of participants in a conversation' ), '', array( 'maxlength' => 11, 'required' => true ) );
  39  
  40  $Form->end_form( array( array( 'submit', 'submit', T_('Create'), 'SaveButton' ) ) );
  41  
  42  ?>

title

Description

title

Description

title

Description

title

title

Body