b2evolution PHP Cross Reference Blogging Systems

Source: /inc/newsletter/views/_newsletter.form.php - 64 lines - 2805 bytes - Text - Print

Description: This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**

   3   * This file is part of the evoCore framework - {@link http://evocore.net/}

   4   * See also {@link http://sourceforge.net/projects/evocms/}.

   5   *

   6   * @copyright (c)2009-2014 by Francois PLANQUE - {@link http://fplanque.net/}

   7   * Parts of this file are copyright (c)2009 by The Evo Factory - {@link http://www.evofactory.com/}.

   8   *

   9   * {@internal License choice

  10   * - If you have received this file as part of a package, please find the license.txt file in

  11   *   the same folder or the closest folder above for complete license terms.

  12   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)

  13   *   then you must choose one of the following licenses before using the file:

  14   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php

  15   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php

  16   * }}

  17   *

  18   * {@internal Open Source relicensing agreement:

  19   * The Evo Factory grants Francois PLANQUE the right to license

  20   * The Evo Factory's contributions to this file and the b2evolution project

  21   * under any OSI approved OSS license (http://www.opensource.org/licenses/).

  22   * }}

  23   *

  24   * @package evocore

  25   *

  26   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  27   * @author fplanque: Francois PLANQUE.

  28   *

  29   * @version $Id: _newsletter.form.php 988 2012-03-06 06:10:41Z yura $

  30   */
  31  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  32  
  33  global $Session, $users_numbers;
  34  
  35  $Form = new Form( NULL, 'newsletter' );
  36  $Form->begin_form( 'fform' );
  37  
  38  $Form->add_crumb( 'newsletter' );
  39  $Form->hidden( 'ctrl', 'newsletter' );
  40  $Form->hidden( 'action', 'preview' );
  41  
  42  $Form->begin_fieldset( T_('Users info') );
  43  
  44      $Form->info( T_('Number of accounts in filterset'), $users_numbers['all'] );
  45      $Form->info( T_('Number of active accounts in filterset'), $users_numbers['active'] );
  46      $Form->info( T_('Number of active accounts which accept newsletter email'), $users_numbers['newsletter'] );
  47  
  48  $Form->end_fieldset();
  49  
  50  $Form->begin_fieldset( T_('Newsletter') );
  51  
  52      echo '<p>';
  53      echo T_('You can use the following patterns to auto insert the user\'s data:');
  54      echo ' $login$, $email$, $user_ID$, $unsubscribe_key$.';
  55      echo '</p>';
  56      $Form->text_input( 'title', $Session->get( 'newsletter_title', T_('Newsletter') ), 60, T_('Title'), '', array( 'maxlength' => 1024, 'required' => true ) );
  57      $Form->textarea_input( 'message', $Session->get( 'newsletter_message' ), 30, T_('Message'), array( 'cols' => 45, 'required' => true ) );
  58  
  59  $Form->end_fieldset();
  60  
  61  $Form->end_form( array( array( 'submit', 'submit', T_('Preview !'), 'SaveButton' ),
  62                                                  array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  63  
  64  ?>

title

Description

title

Description

title

Description

title

title

Body