Forum Moderators: coopster
Code currently has check boxes by each report and it takes a lot of time.
You mean it takes a lot of time for the user to scroll through hundreds of entries to find the ones that want to print and check them. It will only get worse if the number of reports increases over time.
I'd re-think the GUI a little bit. Can these reports categorized by type, date, or some other attribute? If so, the solution would be to initially display categories and "drill down" to category specific, never forgetting to include links back to the main category index on all pages.
A second addition that should be in place, some form of basic search by keyword, date, or any other relevant field.
if (isset($_GET['category'])) {
// lookup entries as you're doing already, restrict to cat in select
}
else {
// here's all you need to add that's new, look up all
// categories, etc. and output the list.
// '<li><a href="reports.php?category='.$row['cat_id'].'">'.$row['catTitle'].'</a></li>';
}
Or you could use a select-one/select-multiple select list, or checkboxes.