Ignore:
Timestamp:
Mar 8, 2007, 11:14:14 PM (17 years ago)
Author:
rub
Message:

Add tabsheet on administration pages.

Step 3: Tabsheet for configuration & history

Change css tabsheet to do like p0w0 for all themes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r1877 r1881  
    3232
    3333include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
    3435
    3536// +-----------------------------------------------------------------------+
     
    160161
    161162//----------------------------------------------------- template initialization
    162 $template->set_filenames( array('config'=>'admin/configuration.tpl') );
     163$template->set_filename('config', 'admin/configuration.tpl');
     164
     165// TabSheet initialization
     166$page['tabsheet'] = array
     167(
     168  'general' => array
     169   (
     170    'caption' => l10n('conf_general_title'),
     171    'url' => $conf_link.'general'
     172   ),
     173  'comments' => array
     174   (
     175    'caption' => l10n('conf_comments_title'),
     176    'url' => $conf_link.'comments'
     177   ),
     178  'default' => array
     179   (
     180    'caption' => l10n('conf_default'),
     181    'url' => $conf_link.'default'
     182   )
     183);
     184
     185$page['tabsheet'][$page['section']]['selected'] = true;
     186
     187// Assign tabsheet to template
     188template_assign_tabsheet();
    163189
    164190$action = PHPWG_ROOT_PATH.'admin.php?page=configuration';
Note: See TracChangeset for help on using the changeset viewer.