Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Irritating problem with some admin pages


Guest

Recommended Posts

Posted

I was wondering if someone knew how to stop certain admin pages from scrolling to the bottom of the page on load or refresh?

 

On page load or refresh, it will automatically scroll to the bottom of the page near "<< Page [pulldown] of 13 >>"

 

manufacturers_admin_page.gif

 

It does it on:

 

countries.php

manufacturers.php

zones.php

 

But not on:

 

customers.php

orders.php

categories.php

file_manager.php

All report .php's

 

If I remove the page prev/next code on the affected pages, it goes away.

 

The only difference I can see is the parameters in the links are different. But I've tried them in every possible configuration I can think of to no avail.

 

 

This page will shoot right to the bottom on load: manufacturers.php

 

<td class="smallText" align="right"><?php echo $manufacturers_split->display_links($manufacturers_query_numrows, ADMIN_ITEM_DISPLAY_NUMBER, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?></td>

 

This page hase no problems: orders.php

 

<td class="smallText" align="right"><?php echo $orders_split->display_links($orders_query_numrows, ADMIN_ITEM_DISPLAY_NUMBER, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'oID', 'action'))); ?></td>

 

The ones with the "tep_get_all_get_params(array(...some stuff in here...))" have no problem. All the ones without it, load like the above pic. The page loads and then it scrolls down to where ever the pulldown is located. It's driving me nuts...

 

I've tried:

tep_get_all_get_params(array('page', 'info', 'x', 'y'))

tep_get_all_get_params(array('page', 'mID'))

tep_get_all_get_params(array('page', 'info', 'mID'))

tep_get_all_get_params(array('x', 'y'))

etc...

 

I don't know what else to try... :(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...