Changeset 614 for trunk/search.php
- Timestamp:
- Nov 23, 2004, 11:31:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/search.php
r607 r614 339 339 } 340 340 //------------------------------------------------------------- categories form 341 // this is a trick : normally, get_user_plain_structure is used to create 342 // the categories structure for menu (in category.php) display, but here, we 343 // want all categories to be shown... 344 $user['expand'] = true; 345 $structure = create_user_structure(''); 346 341 $query = ' 342 SELECT name,id,date_last,nb_images,global_rank,uppercats 343 FROM '.CATEGORIES_TABLE; 344 if ($user['forbidden_categories'] != '') 345 { 346 $query.= ' 347 WHERE id NOT IN ('.$user['forbidden_categories'].')'; 348 } 349 $query.= ' 350 ;'; 347 351 $selecteds = array(); 348 352 if (isset($_POST['submit'])) … … 350 354 $selecteds = $_POST['cat']; 351 355 } 352 display_select_categories($structure, 353 ' ', 354 $selecteds, 355 'category_option', 356 array()); 356 display_select_cat_wrapper($query, $selecteds, 'category_option', false); 357 357 358 358 $categories_selected = '';
Note: See TracChangeset
for help on using the changeset viewer.