Open-AudIT
https://www.open-audit.org/phpBB3/

More Page turning in list_all.php than items
https://www.open-audit.org/phpBB3/viewtopic.php?f=8&t=1190
Page 1 of 1

Author:  matze [ Tue Aug 08, 2006 1:49 am ]
Post subject:  More Page turning in list_all.php than items

I can do more page turning than items are shown. For Example: I had 100 Items, but can change to page 20 (Item 200-220).

I don't like the designe of an own file for each listing. Is there a reasone for this behavior? If I had time in the next days, I will beginn coding a single file for all listings.


Here's my fix for list_all.php. But ist must be implemented in all list-scripts.

include_list_buttons_css.php
[code]
3: if ($_GET['show_all'] <> 1 AND $next_page_items>0 ) {
[/code]

list_all.php
[code]
21: $page_count_next = $page_next * $count_system;
22: $sql = "SELECT * FROM system ORDER BY " . $sort . " LIMIT " . $page_count_next . "," . $count_system;
23: $result = mysql_query($sql, $db);
24: $next_page_items = mysql_num_rows($result);

[/code]

Author:  mikeyrb [ Tue Aug 08, 2006 1:54 am ]
Post subject: 

Yeah, I looked at that problem briefly this past weekend, but since one or more pages did not give a count, I was unable to quickly implement that. If you would create one file, that'd be great. We eventually want to get it pretty dynamic, so that you can modify columns and searches. This just gives the most common queries.

Author:  matze [ Tue Aug 08, 2006 2:00 am ]
Post subject: 

Hey,

I've posted a new implementation of the menu based on an Array in the feature-request forum. I will include the columns and tables for the views in this array. If someone will change a view, only the central array has to be modified.

http://www.open-audit.org/phpbb2/viewtopic.php?t=1182

Author:  matze [ Tue Aug 08, 2006 11:25 pm ]
Post subject: 

Please take a look at here:

http://www.open-audit.org/phpbb2/viewto ... =4844#4844

Author:  A_Hull [ Wed Aug 09, 2006 12:21 am ]
Post subject: 

Ok that is quite slick...

The only gripe I have is that not every box is aligned the same way.. if my user_name is too wide, the text in that field shifts slightly down the way. (Not sure why).

This does provide a pretty smooth way to add to and change views without quite so much hit and miss coding.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/