b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_create_users.form.php - 37 lines - 1399 bytes - Text - Print

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

   1  <?php
   2  /**
   3   * This file display the form to create sample users 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   * @version $Id: _create_users.form.php 849 2012-02-16 09:09:09Z attila $
  16   */
  17  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  18  
  19  global $Settings, $GroupCache;
  20  
  21  $Form = new Form( NULL, 'create_users', 'user', 'compact' );
  22  
  23  $Form->global_icon( T_('Cancel!'), 'close', regenerate_url( 'action' ) );
  24  
  25  $Form->begin_form( 'fform',  T_('Create sample users') );
  26  
  27      $Form->add_crumb( 'tools' );
  28      $Form->hidden( 'ctrl', 'tools' );
  29      $Form->hidden( 'action',  'create_sample_users' );
  30      $Form->hidden( 'tab3', get_param( 'tab3' ) );
  31  
  32      $Form->select_object( 'group_ID', $Settings->get('newusers_grp_ID'), $GroupCache, T_('Group for new users') );
  33      $Form->text_input( 'num_users', 10, 11, T_( 'How many users' ), '', array( 'maxlength' => 10, 'required' => true ) );
  34  
  35  $Form->end_form( array( array( 'submit', 'submit', T_('Create'), 'SaveButton' ) ) );
  36  
  37  ?>

title

Description

title

Description

title

Description

title

title

Body