Ignore:
Timestamp:
Mar 7, 2007, 11:53:42 PM (17 years ago)
Author:
rub
Message:

Add tabsheet on administration pages.

Step 2: Regroup categories options into sheet Batch management.

On next commit, use of this new method on history and configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_options.php

    r1877 r1878  
    3232
    3333include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
    3435
    3536// +-----------------------------------------------------------------------+
     
    163164   )
    164165 );
     166
     167// TabSheet initialization
     168$opt_link = $link_start.'cat_options&section=';
     169$page['tabsheet'] = array
     170(
     171  'upload' => array
     172   (
     173    'caption' => l10n('upload'),
     174    'url' => $opt_link.'upload'
     175   ),
     176  'comments' => array
     177   (
     178    'caption' => l10n('comments'),
     179    'url' => $opt_link.'comments'
     180   ),
     181  'visible' => array
     182   (
     183    'caption' => l10n('lock'),
     184    'url' => $opt_link.'visible'
     185   ),
     186  'status' => array
     187   (
     188    'caption' => l10n('cat_security'),
     189    'url' => $opt_link.'status'
     190   )
     191);
     192
     193if ($conf['allow_random_representative'])
     194{
     195  $page['tabsheet']['representative'] =
     196    array
     197    (
     198      'caption' => l10n('Representative'),
     199      'url' => $opt_link.'representative'
     200    );
     201}
     202$page['tabsheet'][$page['section']]['selected'] = true;
     203
     204// Assign tabsheet to template
     205template_assign_tabsheet();
    165206
    166207// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.