Pagination

Hi everyone,

I have been looking about to use Pagination for my pilots pirep pages as some are now getting quite long, i have come across a few but does anyone have experience with integrating in to phpvms, your ideas and thoughts would be welcome

Cheers.

I had my pilots page paginated. Since I updated phpVMS it got all screwy. If I can fix it, I will share the code and configuration with you. You will need to have a single list instead of it being broken up by hubs.

Yep, that happened to me and it was a mess so i had to take it down and the hours system is working now.

Be sure you know what you are doing.

If people want, I can update some of these pages so they’re paginated the same way it’s done in the admin panel (using jqgrid). The problem with that is then there isn’t much flexibility

That would be great!

That would be a rather large change for the next version. The problem is keeping it flexible as the one is now. I’ll look into it

Excellent Nabeel, i have some code i can implement where i want it but on an update it will be messed up, it would be much better if it comes from your end like the admin currently is then its fully supported on future releases.

Just on the schedules page? It’s gonna be tricky to do with the search that’s there. I’ll look into it

If people want, I can update some of these pages so they’re paginated the same way it’s done in the admin panel (using jqgrid). The problem with that is then there isn’t much flexibility

I would like that! Thanks Nabeel!!! YOu Rock!

No not the schedules, that can be limited already but its the pilots pireps, pilot_public_profile.tpl and pireps_viewall.tpl that would be excellent if that could be implemented as some of my pilots have loads of reports and the page is getting longer and longer .

Got it

Got it

I must say…

It would be great to have that feature for both, pireps and schedules.

lists are getting Big!

Very nice! If you want to see an example you can see it on my site.

http://www.flyaka.com/index.php/AllPIREPS

Can you make this for the roster page?

That sure is a neat little trick. Where can a guy get those files from? I must have missed something somewhere I guess.

Where are the files?? I see none

How do you make a drop down menu that lets you pick to show 5, 10, 15 ect.. per page?

thanks,

james

Hey James, Right there!!!

But I’m not sure how you have done it though,

<select class="pagesize">
                       <option value="5">5 per page</option>
                       <option value="10">10 per page</option>
                       <option value="20">20 per page</option>

               </select>

Just add an line below all of the option values,

<option value="20">20 per page</option>

And edit the Value to how much you want it to show.

Hey James, Right there!!!

But I’m not sure how you have done it though,

Just add an line below all of the option values,

20 per page

And edit the Value to how much you want it to show.

Thanks Vansers