[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpbrain/inc/ -> hook_settings.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare - Knowledge Base                                              *
   4      * http://www.egroupware.org                                                *
   5      * -----------------------------------------------                          *
   6      *  This program is free software; you can redistribute it and/or modify it *
   7      *  under the terms of the GNU General Public License as published by the   *
   8      *  Free Software Foundation; either version 2 of the License, or (at your  *
   9      *  option) any later version.                                              *
  10      \**************************************************************************/
  11  
  12      /* $Id: hook_settings.inc.php 20295 2006-02-15 12:31:25Z  $ */
  13  
  14      $show_tree = array(
  15          'all' => 'The present category and all subcategories under it',
  16          'only_cat' => 'The present category only'
  17      );
  18  
  19      $num_lines = array(
  20          '3'  => '3',
  21          '5'  => '5',
  22          '10' => '10',
  23          '15' => '15'
  24      );
  25  
  26      $num_comments = array(
  27          '5'   => '5',
  28          '10'  => '10',
  29          '15'  => '15',
  30          '20'  => '20',
  31          'All' => 'All'
  32      );
  33  
  34      $GLOBALS['settings'] = array(
  35          'show_tree' => array(
  36              'type'    => 'select',
  37              'label'   => 'Show articles belonging to:',
  38              'name'    => 'show_tree',
  39              'values'  => $show_tree,
  40              'help'    => 'When navigating through categories, choose whether the list of articles shown corresponds only to the present category, or the present category and all categories under it.',
  41              'default' => 'all'
  42          ),
  43          'num_lines' => array(
  44              'type'    => 'select',
  45              'label'   => 'Maximum number of most popular articles, latest articles and unanswered questions to show in the main view:',
  46              'name'    => 'num_lines',
  47              'values'  => $num_lines,
  48              'default' => '',
  49              'size'    => '3'
  50          ),
  51          'num_comments' => array(
  52              'type'    => 'select',
  53              'label'   => 'Maximum number of comments to show:',
  54              'name'    => 'num_comments',
  55              'values'  => $num_comments,
  56              'default' => '',
  57              'size'    => '5'
  58          )
  59      );


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7