Changeset 9068
- Timestamp:
- Feb 2, 2011, 9:55:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/batch_manager.php
r8728 r9068 51 51 { 52 52 // echo '<pre>'; print_r($_POST); echo '</pre>'; 53 53 54 54 $_SESSION['bulk_manager_filter'] = array(); 55 55 … … 60 60 { 61 61 $_SESSION['bulk_manager_filter']['prefilter'] = $_POST['filter_prefilter']; 62 } 62 } 63 63 } 64 64 … … 162 162 ;'; 163 163 $all_elements = array_from_query($query, 'id'); 164 164 165 165 $query = ' 166 166 SELECT id … … 221 221 // image_ids but it would not be compatible with PostgreSQL, so let's 222 222 // perform 2 queries instead. We hope there are not too many duplicates. 223 223 224 224 $query = ' 225 225 SELECT file … … 229 229 ;'; 230 230 $duplicate_files = array_from_query($query, 'file'); 231 231 232 232 $query = ' 233 233 SELECT id … … 246 246 { 247 247 $categories = array(); 248 248 249 249 if (isset($_SESSION['bulk_manager_filter']['category_recursive'])) 250 250 { … … 255 255 $categories = array($_SESSION['bulk_manager_filter']['category']); 256 256 } 257 257 258 258 $query = ' 259 259 SELECT DISTINCT(image_id) … … 327 327 ); 328 328 329 if (isset($_GET['mode']) and in_array($_GET['mode'], $tab_codes))329 if (isset($_GET['mode'])) 330 330 { 331 331 $page['tab'] = $_GET['mode']; … … 336 336 } 337 337 338 $tabsheet = new tabsheet(); 339 foreach ($tabs as $tab) 340 { 341 $tabsheet->add( 342 $tab['code'], 343 $tab['label'], 344 get_root_url().'admin.php?page='.$_GET['page'].'&mode='.$tab['code'] 345 ); 346 } 347 $tabsheet->select($page['tab']); 348 $tabsheet->assign(); 338 if (in_array($page['tab'], $tab_codes)) 339 { 340 $tabsheet = new tabsheet(); 341 foreach ($tabs as $tab) 342 { 343 $tabsheet->add( 344 $tab['code'], 345 $tab['label'], 346 get_root_url().'admin.php?page='.$_GET['page'].'&mode='.$tab['code'] 347 ); 348 } 349 $tabsheet->select($page['tab']); 350 $tabsheet->assign(); 349 351 350 352 // +-----------------------------------------------------------------------+ … … 352 354 // +-----------------------------------------------------------------------+ 353 355 354 include(PHPWG_ROOT_PATH.'admin/batch_manager_'.$page['tab'].'.php'); 356 include(PHPWG_ROOT_PATH.'admin/batch_manager_'.$page['tab'].'.php'); 357 } 355 358 ?>
Note: See TracChangeset
for help on using the changeset viewer.