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

    r809 r817  
    168168                                               false);
    169169//----------------------------------------------------- template initialization
    170 $template->set_filenames(array('picture_modify'=>'admin/picture_modify.tpl'));
     170$template->set_filenames(
     171  array(
     172    'picture_modify' => 'admin/picture_modify.tpl'
     173    )
     174  );
     175
    171176$template->assign_vars(array(
    172177  'TITLE_IMG'=>$title,
     
    221226    AND id != '.$storage_category_id.'
    222227;';
    223 display_select_cat_wrapper($query,array(),'associated_option');
     228display_select_cat_wrapper($query, array(), 'associated_option');
    224229
    225230$result = pwg_query($query);
     
    234239  WHERE id NOT IN ('.implode(',', $associateds).')
    235240;';
    236 display_select_cat_wrapper($query,array(),'dissociated_option');
     241display_select_cat_wrapper($query, array(), 'dissociated_option');
    237242
    238243// representing
     
    242247  WHERE representative_picture_id = '.$_GET['image_id'].'
    243248;';
    244 display_select_cat_wrapper($query,array(),'elected_option');
     249display_select_cat_wrapper($query, array(), 'elected_option');
    245250
    246251$query = '
     
    250255    OR representative_picture_id IS NULL
    251256;';
    252 display_select_cat_wrapper($query,array(),'dismissed_option');
     257display_select_cat_wrapper($query, array(), 'dismissed_option');
     258
    253259//----------------------------------------------------------- sending html code
     260
     261
    254262$template->assign_var_from_handle('ADMIN_CONTENT', 'picture_modify');
    255263?>
Note: See TracChangeset for help on using the changeset viewer.