Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Thu Mar 28, 2024 5:46 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Tue Aug 08, 2006 1:49 am 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
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]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 08, 2006 1:54 am 
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.


Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 08, 2006 2:00 am 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 08, 2006 11:25 pm 
Offline
Moderator

Joined: Sun Aug 06, 2006 1:13 am
Posts: 362
Location: Germany
Please take a look at here:

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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 09, 2006 12:21 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group