Changeset 614 for trunk/admin.php


Ignore:
Timestamp:
Nov 23, 2004, 11:31:24 PM (20 years ago)
Author:
plg
Message:
  • global categories' options : instead of N horizontal tabs on a single page, N options in the left menu (but the same backend)
  • categories.global_rank : new calculated field. It gives a global rank of the category among all others (updated during ordering)
  • category.php page : menu is generated faster thanks to categories.global_rank, recursivity becomes useless :-)
  • new function to display select box with a set of categories : display_select_cat_wrapper
  • cat_options : instead of using 1 multiselect for true/false items, using 1 multiselect for true, and another one for false. The form provides buttons with arrows to switch categories from one multiselect to another
  • deletion of obsolete function display_categories (working with the old template system)
  • deletion of obsolete functions get_user_plain_structure, create_user_structure, get_user_subcat_ids, update_structure, count_images : useless thanks to global_rank
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r607 r614  
    167167$link_start = PHPWG_ROOT_PATH.'admin.php?page=';
    168168$conf_link = $link_start.'configuration&section=';
     169$opt_link = $link_start.'cat_options&section=';
    169170//----------------------------------------------------- template initialization
    170171include(PHPWG_ROOT_PATH.'include/page_header.php');
     
    190191  'L_CATEGORIES'=>$lang['categories'],
    191192  'L_MANAGE'=>$lang['manage'],
    192   'L_UPLOAD'=>$lang['upload'],
    193193  'L_IMAGES'=>$lang['pictures'],
    194194  'L_WAITING'=>$lang['waiting'].$nb_waiting,
     
    200200  'L_AUTH'=>$lang['permissions'],
    201201  'L_UPDATE'=>$lang['update'],
    202   'L_CAT_OPTIONS'=>$lang['cat_options_menu'],
    203  
     202  'L_UPLOAD'=>$lang['cat_options_upload_menu'],
     203  'L_COMMENTS'=>$lang['cat_options_comments_menu'],
     204  'L_VISIBLE'=>$lang['cat_options_visible_menu'],
     205  'L_STATUS'=>$lang['cat_options_status_menu'],
     206
    204207  'U_CONFIG_GENERAL'=>add_session_id($conf_link.'general' ),
    205208  'U_CONFIG_COMMENTS'=>add_session_id($conf_link.'comments' ),
     
    213216  'U_GROUPS'=>add_session_id($link_start.'group_list' ),
    214217  'U_CATEGORIES'=>add_session_id($link_start.'cat_list' ),
    215   'U_UPLOAD'=>add_session_id($link_start.'admin_upload' ),
     218  'U_UPLOAD'=>add_session_id($opt_link.'upload'),
     219  'U_COMMENTS'=>add_session_id($opt_link.'comments'),
     220  'U_VISIBLE'=>add_session_id($opt_link.'visible'),
     221  'U_STATUS'=>add_session_id($opt_link.'status'),
    216222  'U_WAITING'=>add_session_id($link_start.'waiting' ),
    217223  'U_COMMENTS'=>add_session_id($link_start.'comments' ),
Note: See TracChangeset for help on using the changeset viewer.