Changeset 1878


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

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r1877 r1878  
    7070$link_start = PHPWG_ROOT_PATH.'admin.php?page=';
    7171$conf_link = $link_start.'configuration&section=';
    72 $opt_link = $link_start.'cat_options&section=';
    7372//----------------------------------------------------- template initialization
    7473$title = l10n('PhpWebGallery Administration'); // for include/page_header.php
     
    9493    'U_CATEGORIES'=> $link_start.'cat_list',
    9594    'U_MOVE'=> $link_start.'cat_move',
    96     'U_CAT_UPLOAD'=> $opt_link.'upload',
    97     'U_CAT_COMMENTS'=> $opt_link.'comments',
    98     'U_CAT_VISIBLE'=> $opt_link.'visible',
    99     'U_CAT_STATUS'=> $opt_link.'status',
    10095    'U_CAT_OPTIONS'=> $link_start.'cat_options',
    10196    'U_CAT_UPDATE'=> $link_start.'site_update&site=1',
     
    119114    array(
    120115      'U_WS_CHECKER'=> $link_start.'ws_checker',
    121       )
    122     );
    123 }
    124 if ($conf['allow_random_representative'])
    125 {
    126   $template->assign_block_vars(
    127     'representative',
    128     array(
    129       'URL' => $opt_link.'representative'
    130116      )
    131117    );
  • 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// +-----------------------------------------------------------------------+
  • trunk/admin/include/functions_tabsheet.inc.php

    r1874 r1878  
    55// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    7 // | file          : $Id$
    8 // | last update   : $Date$
    9 // | last modifier : $Author$
    10 // | revision      : $Revision$
     7// | file          : $Id: functions_tabsheet.inc.php 1874 2007-03-06 02:07:15Z rub $
     8// | last update   : $Date: 2007-03-06 03:07:15 +0100 (mar., 06 mars 2007) $
     9// | last modifier : $Author: rub $
     10// | revision      : $Revision: 1874 $
    1111// +-----------------------------------------------------------------------+
    1212// | This program is free software; you can redistribute it and/or modify  |
     
    7272}
    7373
    74 //TOTO:Voir pour intégrer U_TABSHEET_TITLE dans les autres tabs
    75 //TODO:Selected sans link
    76 //Remplacer mode par tab_caption
    7774?>
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r1866 r1878  
    415415$lang['thumbnail'] = 'thumbnail';
    416416$lang['title'] = 'title';
    417 $lang['title_cat_options'] = 'Categories options';
    418417$lang['title_categories'] = 'Categories management';
    419418$lang['title_configuration'] = 'PhpWebGallery configuration';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r1866 r1878  
    415415$lang['thumbnail'] = 'miniature';
    416416$lang['title'] = 'titre';
    417 $lang['title_cat_options'] = 'Options des catégories';
    418417$lang['title_categories'] = 'Gestion des catégories';
    419418$lang['title_configuration'] = 'Configuration de PhpWebGallery';
  • trunk/template/yoga/admin.tpl

    r1877 r1878  
    2929        <li><a href="{U_CATEGORIES}">{lang:manage}</a></li>
    3030        <li><a href="{U_MOVE}">{lang:Move}</a></li>
    31         <li><a href="{U_CAT_UPLOAD}">{lang:upload}</a></li>
    32         <li><a href="{U_CAT_COMMENTS}">{lang:comments}</a></li>
    33         <li><a href="{U_CAT_VISIBLE}">{lang:lock}</a></li>
    34         <li><a href="{U_CAT_STATUS}">{lang:cat_security}</a></li>
    35         <!-- BEGIN representative -->
    36         <li><a href="{representative.URL}">{lang:Representative}</a></li>
    37         <!-- END representative -->
     31        <li><a href="{U_CAT_OPTIONS}">{lang:Batch management}</a></li>
    3832        <li><a href="{U_PERMALINKS}">{lang:Permalinks}</a></li>
    3933      </ul>
  • trunk/template/yoga/admin/cat_options.tpl

    r1244 r1878  
    44    <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
    55  </ul>
    6   <h2>{lang:title_cat_options}</h2>
     6  <h2>{lang:Batch management} {TABSHEET_TITLE}</h2>
     7  {TABSHEET}
    78</div>
    89
  • trunk/template/yoga/theme/p0w0/theme.css

    r1875 r1878  
    285285  border-radius: 6px 6px 0px 0px;       /* round corners with CSS3 compliant browsers */
    286286  -moz-border-radius: 6px 6px 0px 0px;  /* round corners with CSS3 compliant browsers */
    287   padding: 5px 4em 2px 4em;
     287  padding: 5px 2em 2px 2em;
    288288}
    289289
Note: See TracChangeset for help on using the changeset viewer.