Changeset 1881


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

Location:
trunk
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r1878 r1881  
    8282    'U_SITE_MANAGER'=> $link_start.'site_manager',
    8383    'U_HISTORY_STAT'=> $link_start.'stats',
    84     'U_HISTORY_SEARCH'=> $link_start.'history',
    8584    'U_FAQ'=> $link_start.'help',
    8685    'U_SITES'=> $link_start.'remote_site',
  • 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';
  • trunk/admin/history.php

    r1844 r1881  
    4949
    5050include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     51include_once(PHPWG_ROOT_PATH.'admin/include/functions_history.inc.php');
    5152
    5253if (isset($_GET['start']) and is_numeric($_GET['start']))
     
    129130// +-----------------------------------------------------------------------+
    130131
    131 $template->set_filenames(array('history'=>'admin/history.tpl'));
     132$template->set_filename('history', 'admin/history.tpl');
     133
     134// TabSheet initialization
     135history_tabsheet();
    132136
    133137$base_url = PHPWG_ROOT_PATH.'admin.php?page=history';
  • trunk/admin/stats.php

    r1782 r1881  
    3232
    3333include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34include_once(PHPWG_ROOT_PATH.'admin/include/functions_history.inc.php');
    3435
    3536// +-----------------------------------------------------------------------+
     
    384385}
    385386
    386 $template->set_filenames(array('stats'=>'admin/stats.tpl'));
     387$template->set_filename('stats', 'admin/stats.tpl');
     388
     389// TabSheet initialization
     390history_tabsheet();
    387391
    388392$template->assign_vars(
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r1878 r1881  
    223223$lang['category'] = 'category';
    224224$lang['conf_access'] = 'Access type';
    225 $lang['conf_comments_title'] = 'Users comments';
     225$lang['conf_comments_title'] = 'Comments';
    226226$lang['conf_confirmation'] = 'Information data registered in database';
    227227$lang['conf_default'] = 'Default display';
    228228$lang['conf_default_title'] = 'Default display';
    229229$lang['conf_gallery_url_error'] = 'The gallery URL is not valid.';
    230 $lang['conf_general_title'] = 'Main configuration';
     230$lang['conf_general_title'] = 'Main';
    231231$lang['conf_nb_comment_page_error'] = 'The number of comments a page must be between 5 and 50 included.';
    232232$lang['config'] = 'Configuration';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r1878 r1881  
    223223$lang['category'] = 'catégorie';
    224224$lang['conf_access'] = 'Type d\'accès';
    225 $lang['conf_comments_title'] = 'Commentaires d\'utilisateurs';
     225$lang['conf_comments_title'] = 'Commentaires';
    226226$lang['conf_confirmation'] = 'Informations enregistrées dans la base de données';
    227227$lang['conf_default'] = 'Affichage par défaut';
    228228$lang['conf_default_title'] = 'Affichage par défaut';
    229229$lang['conf_gallery_url_error'] = 'L\'adresse de la galerie n\'est pas valide.';
    230 $lang['conf_general_title'] = 'Configuration principale';
     230$lang['conf_general_title'] = 'Principale';
    231231$lang['conf_nb_comment_page_error'] = 'Le nombre de commentaires d\'utilisateurs par page doit être compris entre 5 et 50.';
    232232$lang['config'] = 'Configuration';
  • trunk/template/yoga/admin.tpl

    r1878 r1881  
    1616      <ul>
    1717        <li><a href="{U_CONFIG_GENERAL}">{lang:general}</a></li>
    18         <li><a href="{U_CONFIG_COMMENTS}">{lang:comments}</a></li>
    1918        <li><a href="{U_CONFIG_DISPLAY}">{lang:conf_default}</a></li>
    2019      </ul>
     
    6160    <dd>
    6261      <ul>
    63         <li>
    64           {lang:history}
    65           <ul>
    66             <li><a href="{U_HISTORY_STAT}">{lang:Statistics}</a></li>
    67             <li><a href="{U_HISTORY_SEARCH}">{lang:Search}</a></li>
    68           </ul>
    69         </li>
     62        <li><a href="{U_HISTORY_STAT}">{lang:history}</a></li>
    7063        <li><a href="{U_MAINTENANCE}">{lang:Maintenance}</a></li>
    7164        <li><a href="{U_ADVANCED_FEATURE}">{lang:Advanced_features}</a></li>
  • trunk/template/yoga/admin/configuration.tpl

    r1877 r1881  
    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_configuration}</h2>
     6  <h2>{lang:title_configuration} {TABSHEET_TITLE}</h2>
     7  {TABSHEET}
    78</div>
    89
     
    1112<!-- BEGIN general -->
    1213<fieldset id="generalConf">
    13   <legend>{lang:conf_general_title}</legend>
    14 
    1514  <ul>
    1615    <li>
     
    9291<!-- BEGIN comments -->
    9392<fieldset id="commentsConf">
    94   <legend>{lang:conf_comments_title}</legend>
    95 
    9693  <ul>
    9794    <li>
     
    136133<!-- BEGIN default -->
    137134<fieldset id="commentsConf">
    138   <legend>{lang:conf_default_title}</legend>
    139 
    140135  <ul>
    141136    <li>
  • trunk/template/yoga/admin/default-layout.css

    r1874 r1881  
    161161  text-decoration : none;
    162162  background: transparent;
     163  border-bottom: 1px solid #fff;
    163164}
    164165
     
    168169  margin: 0 6px;
    169170  color: white;
    170   font-size: 120%;
     171  font-size: 110%;
    171172  font-weight: bold;
    172173  padding: 4px 8px;
    173174  border: 1px solid #fff;
     175  border-radius: 6px 6px 0px 0px;       /* round corners with CSS3 compliant browsers */
     176  -moz-border-radius: 6px 6px 0px 0px;  /* round corners with CSS3 compliant browsers */
     177  padding: 5px 2em 2px 2em;
    174178}
    175179
  • trunk/template/yoga/admin/history.tpl

    r1844 r1881  
    1111    </li>
    1212  </ul>
    13   <h2>{lang:History}</h2>
     13  <h2>{lang:History} {TABSHEET_TITLE}</h2>
     14  {TABSHEET}
    1415</div>
    1516
  • trunk/template/yoga/admin/stats.tpl

    r1729 r1881  
    11<!-- $Id$ -->
    2 <h2>{lang:title_history}</h2>
     2<div class="titrePage">
     3  <ul class="categoryActions">
     4    <li>
     5      <a
     6        href="{U_HELP}"
     7        onclick="popuphelp(this.href); return false;"
     8        title="{lang:Help}"
     9      >
     10        <img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)">
     11      </a>
     12    </li>
     13  </ul>
     14  <h2>{lang:History} {TABSHEET_TITLE}</h2>
     15  {TABSHEET}
     16</div>
    317
    418<h3>{L_STAT_TITLE}</h3>
  • trunk/template/yoga/theme/p0w0/theme.css

    r1878 r1881  
    278278* { outline: none; }
    279279
    280 .tabsheet { border-bottom: 1px solid #369; }
     280.tabsheet {
     281  border-bottom: 1px solid #369;
     282}
     283
    281284.tabsheet li {
    282285  background: #369;
    283286  color: white;
    284287  border: 1px solid #fff;
    285   border-radius: 6px 6px 0px 0px;       /* round corners with CSS3 compliant browsers */
    286   -moz-border-radius: 6px 6px 0px 0px;  /* round corners with CSS3 compliant browsers */
    287   padding: 5px 2em 2px 2em;
    288288}
    289289
Note: See TracChangeset for help on using the changeset viewer.