Ignore:
Timestamp:
Apr 6, 2006, 4:23:54 AM (18 years ago)
Author:
rvelices
Message:

improvement: urls for tags can contain now only the tag or the id and tag

improvement: urls for category can be now id and category names (instead
of only id)

improvement: added 2 indexes (#image_tag.tag_id and #tags.url_name)

improvement: identification, register, search pages automatically set focus
on first form input

improvement: focus, nofocus css class now valid for all forms

fix: category comment is tag stripped in category_subcats.inc.php
(otherwise issues with html/scripts inside category comment)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r1121 r1131  
    6969    array($data)
    7070    );
    71  
     71
    7272  set_cat_visible(array($_GET['cat_id']), $_POST['visible']);
    7373  set_cat_status(array($_GET['cat_id']), $_POST['status']);
     
    102102    (0 == $_POST['parent'] ? null : $_POST['parent'])
    103103    );
    104  
     104
    105105  if (isset($output_create['error']))
    106106  {
     
    113113    // Add the information in the information list
    114114    array_push($page['infos'], $output_create['info']);
    115    
     115
    116116    // Link the new category to the current category
    117117    associate_categories_to_categories(
     
    185185
    186186$form_action = PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id='.$_GET['cat_id'];
    187 $status = ($category['status']=='public')?'STATUS_PUBLIC':'STATUS_PRIVATE'; 
     187$status = ($category['status']=='public')?'STATUS_PUBLIC':'STATUS_PRIVATE';
    188188$lock = ($category['visible']=='true')?'UNLOCKED':'LOCKED';
    189189
     
    209209$base_url = PHPWG_ROOT_PATH.'admin.php?page=';
    210210$cat_list_url = $base_url.'cat_list';
    211  
     211
    212212$self_url = $cat_list_url;
    213213if (!empty($category['id_uppercat']))
     
    217217
    218218$template->assign_vars(
    219   array( 
     219  array(
    220220    'CATEGORIES_NAV'     => $navigation,
    221221    'CAT_NAME'           => $category['name'],
    222222    'CAT_COMMENT'        => $category['comment'],
    223    
     223
    224224    $status              => 'checked="checked"',
    225225    $lock                => 'checked="checked"',
    226226    $commentable         => 'checked="checked"',
    227227    $uploadable          => 'checked="checked"',
    228    
     228
    229229    'L_EDIT_NAME'        => $lang['name'],
    230230    'L_STORAGE'          => $lang['storage'],
     
    245245      array(
    246246        'category' => $category['id'],
     247        'cat_name' => $category['name'],
    247248        )
    248249      ),
    249    
     250
    250251    'U_CHILDREN' => $cat_list_url.'&parent_id='.$category['id'],
    251252    'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_modify',
    252    
     253
    253254    'F_ACTION' => $form_action,
    254255    )
     
    296297    $url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify';
    297298    $url.= '&image_id='.$category['representative_picture_id'];
    298  
     299
    299300    $template->assign_block_vars(
    300301      'representant.picture',
     
    350351  // sub-category
    351352  $unmovables = get_subcat_ids(array($category['id']));
    352  
     353
    353354  $blockname = 'move.parent_option';
    354355
     
    362363      )
    363364    );
    364  
     365
    365366  $query = '
    366367SELECT id,name,uppercats,global_rank
     
    368369  WHERE id NOT IN ('.implode(',', $unmovables).')
    369370;';
    370  
     371
    371372  display_select_cat_wrapper(
    372373    $query,
Note: See TracChangeset for help on using the changeset viewer.