[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/files/views/ -> _file_browse_set.form.php (source)

   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-2007 by Francois PLANQUE - {@link http://fplanque.net/}

   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,v 1.1 2007/06/25 10:59:58 fplanque Exp $

  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') );
  41  
  42      $Form->hidden_ctrl();
  43      $Form->hiddens_by_key( get_memorized() );
  44  
  45      $Form->begin_fieldset( T_('Images') );
  46          $Form->checkbox( 'option_imglistpreview', $UserSettings->get('fm_imglistpreview'), T_('Thumbnails'), T_('Check to display thumbnails instead of icons for image files') );
  47          $Form->checkbox( 'option_getimagesizes', $UserSettings->get('fm_getimagesizes'), T_('Dimensions'), T_('Check to display the pixel dimensions of image files') );
  48      $Form->end_fieldset();
  49  
  50      $Form->begin_fieldset( T_('Columns') );
  51          $Form->checkbox( 'option_showtypes', $UserSettings->get('fm_showtypes'), T_('File type'), T_('Based on file extension') );
  52          $Form->radio_input( 'option_showdate', $UserSettings->get('fm_showdate'), array(
  53                  array( 'value'=>'no', 'label'=>T_('No') ),
  54                  array( 'value'=>'compact', 'label'=>T_('Compact format') ),
  55                  array( 'value'=>'long', 'label'=>T_('Long format') ) ), T_('Last change') );
  56          $Form->checkbox( 'option_showfsperms', $UserSettings->get('fm_showfsperms'), T_('File permissions'), T_('Unix file permissions') );
  57          $Form->checkbox( 'option_permlikelsl', $UserSettings->get('fm_permlikelsl'), '', T_('Check to display file permissions like "rwxr-xr-x" rather than short form') );
  58          $Form->checkbox( 'option_showfsowner', $UserSettings->get('fm_showfsowner'), T_('File Owner'), T_('Unix file owner') );
  59          $Form->checkbox( 'option_showfsgroup', $UserSettings->get('fm_showfsgroup'), T_('File Group'), T_('Unix file group') );
  60      $Form->end_fieldset();
  61  
  62      $Form->begin_fieldset( T_('Options') );
  63          $Form->checkbox( 'option_showhidden', $UserSettings->get('fm_showhidden'), T_('Hidden files'), T_('Check to show hidden files. Hidden files start with a dot (.)') );
  64          $Form->checkbox( 'option_dirsattop', !$UserSettings->get('fm_dirsnotattop'), T_('Folders first'), T_('Check to always display folders before files') );
  65          $Form->checkbox( 'option_recursivedirsize', $UserSettings->get('fm_recursivedirsize'), T_('Folder sizes'), T_('Check to compute recursive size of folders') );
  66          $Form->radio_input( 'option_allowfiltering', $UserSettings->get('fm_allowfiltering'), array(
  67                  array( 'value'=>'no', 'label'=>T_('No') ),
  68                  array( 'value'=>'simple', 'label'=>T_('Simple') ),
  69                  array( 'value'=>'regexp', 'label'=>T_('With regular expressions') ) ), T_('Allow filtering') );
  70          $Form->checkbox( 'option_uploadwithproperties', $UserSettings->get('fm_uploadwithproperties'), T_('Upload with properties'), T_('Check to add file properties to the upload form') );
  71      $Form->end_fieldset();
  72  
  73  $Form->end_form( array( array( 'submit', 'actionArray[update_settings]', T_('Update !'), 'ActionButton'),
  74                                                  array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  75  
  76  /*

  77   * $Log: _file_browse_set.form.php,v $

  78   * Revision 1.1  2007/06/25 10:59:58  fplanque

  79   * MODULES (refactored MVC)

  80   *

  81   * Revision 1.6  2007/04/26 00:11:10  fplanque

  82   * (c) 2007

  83   *

  84   * Revision 1.5  2007/01/25 05:09:05  fplanque

  85   * i18n update

  86   *

  87   * Revision 1.4  2007/01/25 03:17:00  fplanque

  88   * visual cleanup for average users

  89   * geeky stuff preserved as options

  90   *

  91   * Revision 1.3  2007/01/25 02:41:26  fplanque

  92   * made settings non sticky

  93   *

  94   * Revision 1.2  2007/01/24 13:44:56  fplanque

  95   * cleaned up upload

  96   *

  97   * Revision 1.1  2007/01/24 05:57:55  fplanque

  98   * cleanup / settings

  99   *

 100   */
 101  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics