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/user_perm.php

    r815 r817  
    110110  mass_inserts(USER_ACCESS_TABLE, array('user_id','cat_id'), $inserts);
    111111}
    112 //----------------------------------------------------- template initialization
    113 $template->set_filenames(array('user_perm'=>'admin/cat_options.tpl'));
     112
     113// +-----------------------------------------------------------------------+
     114// |                             template init                             |
     115// +-----------------------------------------------------------------------+
     116
     117$template->set_filenames(
     118  array(
     119    'user_perm' => 'admin/user_perm.tpl',
     120    'double_select' => 'admin/double_select.tpl'
     121    )
     122  );
    114123
    115124$template->assign_vars(
    116125  array(
    117     'L_RESET'=>$lang['reset'],
     126    'TITLE' =>
     127      sprintf(
     128        l10n('Manage permissions for user "%s"'),
     129        get_username($page['user']
     130          )
     131        ),
    118132    'L_CAT_OPTIONS_TRUE'=>$lang['authorized'],
    119133    'L_CAT_OPTIONS_FALSE'=>$lang['forbidden'],
    120     'L_CAT_OPTIONS_INFO'=>$lang['permuser_info'],
    121134   
    122135    'F_ACTION' =>
     
    158171display_select_cat_wrapper($query_false,array(),'category_option_false');
    159172
    160 //----------------------------------------------------------- sending html code
     173// +-----------------------------------------------------------------------+
     174// |                           sending html code                           |
     175// +-----------------------------------------------------------------------+
    161176
     177$template->assign_var_from_handle('DOUBLE_SELECT', 'double_select');
    162178$template->assign_var_from_handle('ADMIN_CONTENT', 'user_perm');
    163179?>
Note: See TracChangeset for help on using the changeset viewer.