b2evolution PHP Cross Reference Blogging Systems

Source: /inc/files/views/_file_browse_set.form.php - 92 lines - 4660 bytes - Text - Print

Description: This file implements the UI for file display settings. 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 for file display settings.
   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   * }}
  21   *
  22   * @package admin
  23   *
  24   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  25   * @author fplanque: Francois PLANQUE.
  26   *
  27   * @version $Id: _file_browse_set.form.php 6136 2014-03-08 07:59:48Z manuel $
  28   */
  29  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  30  
  31  /**
  32   * @var UserSettings
  33   */
  34  global $UserSettings;
  35  
  36  $Form = new Form( NULL, 'file_displaysettings_checkchanges' );
  37  
  38  $Form->global_icon( T_('Close settings!'), 'close', regenerate_url() );
  39  
  40  $Form->begin_form( 'fform', T_('Display settings').get_manual_link('file-manager-display-settings') );
  41  
  42      $Form->add_crumb( 'file' );
  43      $Form->hidden_ctrl();
  44      $Form->hiddens_by_key( get_memorized() );
  45  
  46      $Form->begin_fieldset( T_('Images') );
  47          $Form->checkbox( 'option_imglistpreview', $UserSettings->get('fm_imglistpreview'), T_('Thumbnails'), T_('Check to display thumbnails instead of icons for image files') );
  48          $Form->checkbox( 'option_getimagesizes', $UserSettings->get('fm_getimagesizes'), T_('Dimensions'), T_('Check to display the pixel dimensions of image files') );
  49      $Form->end_fieldset();
  50  
  51      $Form->begin_fieldset( T_('Columns') );
  52          $Form->checkbox( 'option_showtypes', $UserSettings->get('fm_showtypes'), T_('File type'), T_('Based on file extension') );
  53          $Form->radio_input( 'option_showdate', $UserSettings->get('fm_showdate'), array(
  54                  array( 'value'=>'no', 'label'=>T_('No') ),
  55                  array( 'value'=>'compact', 'label'=>T_('Compact format') ),
  56                  array( 'value'=>'long', 'label'=>T_('Long format') ) ), T_('Last change') );
  57          $Form->checkbox( 'option_showfsperms', $UserSettings->get('fm_showfsperms'), T_('File permissions'), T_('Unix file permissions') );
  58          $Form->checkbox( 'option_permlikelsl', $UserSettings->get('fm_permlikelsl'), '', T_('Check to display file permissions like "rwxr-xr-x" rather than short form') );
  59          $Form->checkbox( 'option_showfsowner', $UserSettings->get('fm_showfsowner'), T_('File Owner'), T_('Unix file owner') );
  60          $Form->checkbox( 'option_showfsgroup', $UserSettings->get('fm_showfsgroup'), T_('File Group'), T_('Unix file group') );
  61      $Form->end_fieldset();
  62  
  63      $Form->begin_fieldset( T_('Options') );
  64          $Form->checkbox( 'option_showhidden', $UserSettings->get('fm_showhidden'), T_('Hidden files'), T_('Check this to show system hidden files. System hidden files start with a dot (.)') );
  65          $Form->checkbox( 'option_showevocache', $UserSettings->get('fm_showevocache'), '', T_('Check this to show _evocache folders (not recommended)') );
  66          $Form->checkbox( 'option_dirsattop', !$UserSettings->get('fm_dirsnotattop'), T_('Folders first'), T_('Check to always display folders before files') );
  67          $Form->checkbox( 'option_recursivedirsize', $UserSettings->get('fm_recursivedirsize'), T_('Folder sizes'), T_('Check to compute recursive size of folders') );
  68          $Form->radio_input( 'option_allowfiltering', $UserSettings->get('fm_allowfiltering'), array(
  69                  array( 'value'=>'no', 'label'=>T_('Don\'t show') ),
  70                  array( 'value'=>'simple', 'label'=>T_('Simple') ),
  71                  array( 'value'=>'regexp', 'label'=>T_('With regular expressions') ) ), T_('Filter box') );
  72      $Form->end_fieldset();
  73  
  74  if( $current_User->check_perm( 'options', 'edit', false ) )
  75  {    // TODO: better perm check
  76      echo '<p class="note">'.T_('See also:').' ';
  77  
  78    /**
  79       * @var FileRoot
  80       */
  81      global $fm_FileRoot;
  82      if( $fm_FileRoot->type == 'collection' )
  83      {
  84          echo T_('Blog Settings').' &gt; '.T_('Advanced').' &gt; <a href="?ctrl=coll_settings&tab=advanced&blog='.$fm_FileRoot->in_type_ID.'">'
  85                      .T_('Media directory location').'</a>';
  86      }
  87  }
  88  
  89  $Form->end_form( array( array( 'submit', 'actionArray[update_settings]', T_('Update !'), 'ActionButton'),
  90                                                  array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  91  
  92  ?>

title

Description

title

Description

title

Description

title

title

Body