b2evolution PHP Cross Reference Blogging Systems

Source: /inc/items/views/_item_history_details.view.php - 46 lines - 1785 bytes - Text - Print

Description: This file implements the Item history details view

   1  <?php
   2  /**

   3   * This file implements the Item history details view

   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   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  15   * @author fplanque: Francois PLANQUE.

  16   *

  17   * @version $Id: _item_history_details.view.php 849 2012-02-16 09:09:09Z attila $

  18   */
  19  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  20  
  21  global $edited_Item, $Revision;
  22  
  23  $post_statuses = get_visibility_statuses();
  24  
  25  $Form = new Form( NULL, 'history', 'post', 'compact' );
  26  
  27  $Form->global_icon( T_('Cancel viewing!'), 'close', regenerate_url( 'action', 'action=history' ) );
  28  
  29  $Form->begin_form( 'fform', sprintf( T_('Revision #%s for: %s'), $Revision->iver_ID == 0 ? '('.T_('Current version').')' : $Revision->iver_ID, $edited_Item->get_title() ) );
  30  
  31  $Form->info( T_('Date'), mysql2localedatetime( $Revision->iver_edit_datetime, 'Y-m-d', 'H:i:s' ) );
  32  
  33  $iver_editor_user_link = get_user_identity_link( NULL, $Revision->iver_edit_user_ID );
  34  $Form->info( T_('User'), ( empty( $iver_editor_user_link ) ? T_( '(deleted user)' ) : $iver_editor_user_link ) );
  35  
  36  $Form->info( T_('Status'), $post_statuses[ $Revision->iver_status ] );
  37  
  38  $Form->info( T_('Note'), $Revision->iver_ID > 0 ? T_('Archived version') : T_('Current version') );
  39  
  40  $Form->info( T_('Title'), $Revision->iver_title );
  41  
  42  $Form->info( T_('Content'), $Revision->iver_content );
  43  
  44  $Form->end_form();
  45  
  46  ?>

title

Description

title

Description

title

Description

title

title

Body