Changeset 1308 for trunk/admin
- Timestamp:
- May 15, 2006, 10:53:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_global.php
r1121 r1308 206 206 'L_SUBMIT'=>$lang['submit'], 207 207 208 'U_COLS'=>$base_url.get_query_string_diff(array('cols')),209 208 'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')), 210 209 … … 340 339 // +-----------------------------------------------------------------------+ 341 340 342 $page['cols'] = !empty($_GET['cols']) ? intval($_GET['cols']) : 5;343 344 341 // how many items to display on this page 345 342 if (!empty($_GET['display'])) … … 383 380 { 384 381 $template->assign_block_vars('thumbnails', array()); 385 // first line386 $template->assign_block_vars('thumbnails.line', array());387 // current row displayed388 $row_number = 0;389 382 } 390 383 … … 394 387 395 388 $template->assign_block_vars( 396 'thumbnails. line.thumbnail',389 'thumbnails.thumbnail', 397 390 array( 398 391 'ID' => $row['id'], … … 402 395 ) 403 396 ); 404 405 // create a new line ?406 if (++$row_number == $page['cols'])407 {408 $template->assign_block_vars('thumbnails.line', array());409 $row_number = 0;410 }411 397 } 412 398 }
Note: See TracChangeset
for help on using the changeset viewer.