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/include/functions_waiting.inc.php

    r1915 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// | file          : $Id$
     
    2525// +-----------------------------------------------------------------------+
    2626
    27 include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
     27include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
    2828
    2929function waiting_tabsheet()
     
    3131  global $page, $link_start;
    3232
     33  // TabSheet
     34  $tabsheet = new tabsheet();
    3335  // TabSheet initialization
    34   $page['tabsheet'] = array
    35   (
    36     'comments' => array
    37      (
    38       'caption' => l10n('comments'),
    39       'url' => $link_start.'comments'
    40      ),
    41     'upload' => array
    42      (
    43       'caption' => l10n('upload_pictures'),
    44       'url' => $link_start.'upload'
    45      )
    46   );
    47 
    48   $page['tabsheet'][$page['page']]['selected'] = true;
    49 
     36  $tabsheet->add('comments', l10n('comments'), $link_start.'comments');
     37  $tabsheet->add('upload', l10n('upload_pictures'), $link_start.'upload');
     38  // TabSheet selection
     39  $tabsheet->select($page['page']);
    5040  // Assign tabsheet to template
    51   template_assign_tabsheet();
     41  $tabsheet->assign();
    5242}
    5343
Note: See TracChangeset for help on using the changeset viewer.