Changeset 1874 for trunk/admin


Ignore:
Timestamp:
Mar 7, 2007, 12:02:02 AM (18 years ago)
Author:
rub
Message:

Add tabsheet on administration pages.

Step 1: Refactoring tabsheet on NBM and introduce generic method to add tabsheet.tpl

On next commit, use of this new method in order to reduce # of link menu.

CSS friend don't hesitate to modify tabsheet css.

Location:
trunk/admin
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r1871 r1874  
    3737include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3838include_once(PHPWG_ROOT_PATH.'admin/include/functions_notification_by_mail.inc.php');
     39include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
    3940include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
    4041include_once(PHPWG_ROOT_PATH.'include/functions_notification.inc.php');
     
    574575  array
    575576  (
    576     'U_TABSHEET_TITLE' => l10n('nbm_'.$page['mode'].'_mode'),
    577577    'U_HELP' => add_url_params(get_root_url().'popuphelp.php', array('page' => 'notification_by_mail')),
    578578    'F_ACTION'=> $base_url.get_query_string_diff(array())
     
    582582if (is_autorize_status(ACCESS_WEBMASTER))
    583583{
    584   $template->assign_block_vars
     584  // TabSheet initialization
     585  $page['tabsheet'] = array
    585586  (
    586     'header_link',
    587     array
    588     (
    589       'PARAM_MODE' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), array('mode' => 'param')),
    590       'SUBSCRIBE_MODE' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), array('mode' => 'subscribe')),
    591       'SEND_MODE' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), array('mode' => 'send'))
    592     )
     587    'param' => array
     588     (
     589      'caption' => l10n('nbm_param_mode'),
     590      'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')),
     591        array('mode' => 'param'))
     592     ),
     593    'subscribe' => array
     594     (
     595      'caption' => l10n('nbm_subscribe_mode'),
     596      'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), array('mode' => 'subscribe')),
     597     ),
     598    'send' => array
     599     (
     600      'caption' => l10n('nbm_send_mode'),
     601      'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), array('mode' => 'send'))
     602     )
    593603  );
     604
     605  $page['tabsheet'][$page['mode']]['selected'] = true;
     606
     607  // Assign tabsheet to template
     608  template_assign_tabsheet();
    594609}
    595610
Note: See TracChangeset for help on using the changeset viewer.