Ignore:
Timestamp:
Feb 29, 2008, 12:41:47 AM (16 years ago)
Author:
rub
Message:

0000809: Use more php classes implementation

Use class for tabsheet like grum class
Change way for tabsheet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r2201 r2226  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
     
    3232
    3333include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    34 include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
     34include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
    3535
    3636// +-----------------------------------------------------------------------+
     
    158158$template->set_filename('config', 'admin/configuration.tpl');
    159159
     160// TabSheet
     161$tabsheet = new tabsheet();
    160162// TabSheet initialization
    161 $page['tabsheet'] = array
    162 (
    163   'main' => array
    164    (
    165     'caption' => l10n('conf_main_title'),
    166     'url' => $conf_link.'main'
    167    ),
    168   'history' => array
    169    (
    170     'caption' => l10n('conf_history_title'),
    171     'url' => $conf_link.'history'
    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_display'),
    181     'url' => $conf_link.'default'
    182    )
    183 );
    184 
    185 $page['tabsheet'][$page['section']]['selected'] = true;
    186 
     163$tabsheet->add('main', l10n('conf_main_title'), $conf_link.'main');
     164$tabsheet->add('history', l10n('conf_history_title'), $conf_link.'history');
     165$tabsheet->add('comments', l10n('conf_comments_title'), $conf_link.'comments');
     166$tabsheet->add('default', l10n('conf_display'), $conf_link.'default');
     167// TabSheet selection
     168$tabsheet->select($page['section']);
    187169// Assign tabsheet to template
    188 template_assign_tabsheet();
     170$tabsheet->assign();
    189171
    190172$action = PHPWG_ROOT_PATH.'admin.php?page=configuration';
Note: See TracChangeset for help on using the changeset viewer.