Changeset 1131 for trunk/admin/cat_modify.php
- Timestamp:
- Apr 6, 2006, 4:23:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_modify.php
r1121 r1131 69 69 array($data) 70 70 ); 71 71 72 72 set_cat_visible(array($_GET['cat_id']), $_POST['visible']); 73 73 set_cat_status(array($_GET['cat_id']), $_POST['status']); … … 102 102 (0 == $_POST['parent'] ? null : $_POST['parent']) 103 103 ); 104 104 105 105 if (isset($output_create['error'])) 106 106 { … … 113 113 // Add the information in the information list 114 114 array_push($page['infos'], $output_create['info']); 115 115 116 116 // Link the new category to the current category 117 117 associate_categories_to_categories( … … 185 185 186 186 $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'; 188 188 $lock = ($category['visible']=='true')?'UNLOCKED':'LOCKED'; 189 189 … … 209 209 $base_url = PHPWG_ROOT_PATH.'admin.php?page='; 210 210 $cat_list_url = $base_url.'cat_list'; 211 211 212 212 $self_url = $cat_list_url; 213 213 if (!empty($category['id_uppercat'])) … … 217 217 218 218 $template->assign_vars( 219 array( 219 array( 220 220 'CATEGORIES_NAV' => $navigation, 221 221 'CAT_NAME' => $category['name'], 222 222 'CAT_COMMENT' => $category['comment'], 223 223 224 224 $status => 'checked="checked"', 225 225 $lock => 'checked="checked"', 226 226 $commentable => 'checked="checked"', 227 227 $uploadable => 'checked="checked"', 228 228 229 229 'L_EDIT_NAME' => $lang['name'], 230 230 'L_STORAGE' => $lang['storage'], … … 245 245 array( 246 246 'category' => $category['id'], 247 'cat_name' => $category['name'], 247 248 ) 248 249 ), 249 250 250 251 'U_CHILDREN' => $cat_list_url.'&parent_id='.$category['id'], 251 252 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_modify', 252 253 253 254 'F_ACTION' => $form_action, 254 255 ) … … 296 297 $url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify'; 297 298 $url.= '&image_id='.$category['representative_picture_id']; 298 299 299 300 $template->assign_block_vars( 300 301 'representant.picture', … … 350 351 // sub-category 351 352 $unmovables = get_subcat_ids(array($category['id'])); 352 353 353 354 $blockname = 'move.parent_option'; 354 355 … … 362 363 ) 363 364 ); 364 365 365 366 $query = ' 366 367 SELECT id,name,uppercats,global_rank … … 368 369 WHERE id NOT IN ('.implode(',', $unmovables).') 369 370 ;'; 370 371 371 372 display_select_cat_wrapper( 372 373 $query,
Note: See TracChangeset
for help on using the changeset viewer.