b2evolution PHP Cross Reference Blogging Systems

Source: /inc/users/views/_user_report.form.php - 120 lines - 4064 bytes - Text - Print

Description: This file implements the UI view for the user report form. 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 implements the UI view for the user report form.

   4   *

   5   * This file is part of the evoCore framework - {@link http://evocore.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   * {@internal License choice

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

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

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

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

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

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

  17   * }}

  18   *

  19   * {@internal Open Source relicensing agreement:

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

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

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

  23   *

  24   * Daniel HAHLER grants Francois PLANQUE the right to license

  25   * Daniel HAHLER's contributions to this file and the b2evolution project

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

  27   * }}

  28   *

  29   * @package admin

  30   *

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

  32   * @author fplanque: Francois PLANQUE

  33   *

  34   * @version $Id: _user_report.form.php 6136 2014-03-08 07:59:48Z manuel $

  35   */
  36  
  37  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  38  
  39  global $display_mode, $user_tab, $admin_url;
  40  
  41  /**

  42   * @var instance of User class

  43   */
  44  global $edited_User;
  45  /**

  46   * @var current action

  47   */
  48  global $action;
  49  /**

  50   * @var user permission, if user is only allowed to edit his profile

  51   */
  52  global $user_profile_only;
  53  /**

  54   * @var the action destination of the form (NULL for pagenow)

  55   */
  56  global $form_action;
  57  /**

  58   * @var instance of User class

  59   */
  60  global $current_User;
  61  
  62  if( $display_mode != 'js' )
  63  {
  64      // ------------------- PREV/NEXT USER LINKS -------------------

  65      user_prevnext_links( array(
  66              'block_start'  => '<table class="prevnext_user"><tr>',
  67              'prev_start'   => '<td width="33%">',
  68              'prev_end'     => '</td>',
  69              'prev_no_user' => '<td width="33%">&nbsp;</td>',
  70              'back_start'   => '<td width="33%" class="back_users_list">',
  71              'back_end'     => '</td>',
  72              'next_start'   => '<td width="33%" class="right">',
  73              'next_end'     => '</td>',
  74              'next_no_user' => '<td width="33%">&nbsp;</td>',
  75              'block_end'    => '</tr></table>',
  76              'user_tab'     => 'report'
  77          ) );
  78      // ------------- END OF PREV/NEXT USER LINKS -------------------

  79  }
  80  
  81  $Form = new Form( $form_action, 'user_checkchanges' );
  82  
  83  $form_title = '';
  84  $form_class = 'fform';
  85  $Form->title_fmt = '<span style="float:right">$global_icons$</span><div>$title$</div>'."\n";
  86  
  87  if( $display_mode != 'js' )
  88  {
  89      if( !$user_profile_only )
  90      {
  91          echo_user_actions( $Form, $edited_User, $action );
  92      }
  93  
  94      $form_title = get_usertab_header( $edited_User, '', T_( 'Report User' ) );
  95  }
  96  
  97  $Form->begin_form( $form_class, $form_title );
  98  
  99  $Form->hidden_ctrl();
 100  $Form->hidden( 'user_tab', $user_tab );
 101  
 102  $Form->begin_fieldset( T_('Report User'), array( 'class'=>'fieldset clear' ) );
 103  
 104  user_report_form( array(
 105          'Form'       => $Form,
 106          'user_ID'    => $edited_User->ID,
 107          'crumb_name' => 'user',
 108          'cancel_url' => $admin_url.'?ctrl=user&amp;user_tab='.$user_tab.'&amp;action=remove_report&amp;user_ID='.$edited_User->ID.'&amp;'.url_crumb( 'user' ),
 109      ) );
 110  
 111  if( $display_mode == 'js' )
 112  { // Display a close link for popup window
 113      echo '<div class="center" style="margin-top:32px">'.action_icon( T_('Close this window'), 'close', '', ' '.T_('Close this window'), 3, 4, array( 'id' => 'close_button', 'class' => 'small' ) ).'</div>';
 114  }
 115  
 116  $Form->end_fieldset();
 117  
 118  $Form->end_form();
 119  
 120  ?>

title

Description

title

Description

title

Description

title

title

Body