Ignore:
Timestamp:
Aug 17, 2005, 4:25:38 PM (19 years ago)
Author:
plg
Message:
  • modification : major simplification of admin.php. Titles are managed by included page, localized items are managed directly in the template.
  • new : sub template admin/double_select is included in templates admin/cat_options, admin/user_perm and admin/group_perm. I haven't been able to use it in admin/picture_modify because it seems impossible to have two instance of the same sub-template without interfering.
  • modification : bug 99, in profile manager, no auto submit when changing language (useless and generate accessibility problem).
  • improvement : HTML semantically correct for administration menu, simpler syntax, less tags, correct tags (dl/dt/dd instead of div/div).
  • modification : number of waiting elements and unvalidated comments are displayed in admin/intro instead of administration menu (with a link to the dedicated pages).
  • deletion : no link to profile from admin/user_list anymore (no need).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/group_perm.php

    r815 r817  
    121121// +-----------------------------------------------------------------------+
    122122
    123 $template->set_filenames(array('group_perm'=>'admin/cat_options.tpl'));
     123$template->set_filenames(
     124  array(
     125    'group_perm' => 'admin/group_perm.tpl',
     126    'double_select' => 'admin/double_select.tpl'
     127    )
     128  );
    124129
    125130$template->assign_vars(
    126131  array(
    127     'L_RESET'=>$lang['reset'],
     132    'TITLE' =>
     133      sprintf(
     134        l10n('Manage permissions for group "%s"'),
     135        get_groupname($page['group']
     136          )
     137        ),
    128138    'L_CAT_OPTIONS_TRUE'=>$lang['authorized'],
    129139    'L_CAT_OPTIONS_FALSE'=>$lang['forbidden'],
     
    131141   
    132142    'F_ACTION' =>
    133     add_session_id(
    134       PHPWG_ROOT_PATH.
    135       'admin.php?page=group_perm&group_id='.
    136       $page['group']
    137       )
     143      add_session_id(
     144        PHPWG_ROOT_PATH.
     145        'admin.php?page=group_perm&group_id='.
     146        $page['group']
     147        )
    138148    )
    139149  );
     
    172182// +-----------------------------------------------------------------------+
    173183
     184$template->assign_var_from_handle('DOUBLE_SELECT', 'double_select');
    174185$template->assign_var_from_handle('ADMIN_CONTENT', 'group_perm');
    175186
Note: See TracChangeset for help on using the changeset viewer.