b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_create_test_hit.form.php - 36 lines - 1441 bytes - Text - Print

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

   1  <?php
   2  /**
   3   * This file display the form to create sample hit data 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   *
  10   * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
  11   *
  12   * @package admin
  13   *
  14   * @version $Id: _create_test_hit.form.php 6136 2014-03-08 07:59:48Z manuel $
  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  $Form = new Form( NULL, 'create_hits', 'post', 'compact' );
  19  
  20  $Form->global_icon( T_('Cancel!'), 'close', regenerate_url( 'action' ) );
  21  
  22  $Form->begin_form( 'fform',  T_('Create sample data for hits testing') );
  23  
  24      $Form->add_crumb( 'tools' );
  25  
  26      $Form->text_input( 'days', 10, 3, T_( 'Days of stats to generate' ), '', array( 'required' => true ) );
  27      $Form->text_input( 'min_interval', 0, 5, T_( 'Minimal interval between 2 consecutive hits (sec)' ), '', array( 'required' => true ) );
  28      $Form->text_input( 'max_interval', 5000, 5, T_( 'Maximal interval between 2 consecutive hits (sec)' ), '', array('required' => true ) );
  29  
  30      $Form->hidden( 'ctrl', 'tools' );
  31      $Form->hidden( 'action',  'create_sample_hits' );
  32      $Form->hidden( 'tab3', get_param( 'tab3' ) );
  33  
  34  $Form->end_form( array( array( 'submit', 'submit', T_('Generate'), 'SaveButton' ) ) );
  35  
  36  ?>

title

Description

title

Description

title

Description

title

title

Body