The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
how to pagination grid - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: how to pagination grid (/showthread.php?tid=601)



how to pagination grid - marceloatmartins - 06-19-2017

Hi Dan,
I would like to know if is possible do pagination in a grip using UserSpice resources.
Thanks



how to pagination grid - mudmin - 06-20-2017

I don't have anything, but I'd be interested in adding that feature.


how to pagination grid - Brandin - 06-20-2017

Look at my most recent post where I talk about my System Logs section, that has pagnation, if you want I can post the code? Maybe it can be integrated in the future? Not sure if this is what you are looking for or not.


how to pagination grid - marceloatmartins - 06-20-2017

Hi Brandin,
Of course, if you can, so, post the code, please.
Everything is welcome.

Thanks



how to pagination grid - Brandin - 06-20-2017

Here is your PHP:
https://hastebin.com/axifofequb.sm

Define $countCount by doing your query or whatever your heart desires.

You can also remove the $total_pages = $countCount and define $total_pages directly from your query.

Then echo $pagnation:
Code:
<?php echo $pagination; ?>



how to pagination grid - marceloatmartins - 06-20-2017

Hi,
I will study this today and adapt it to my case, really good.
Thank you very much Brandin.



how to pagination grid - Brandin - 06-20-2017

You're most welcome! Happy to help!


how to pagination grid - karsen - 07-02-2017

A couple weeks late, but I use a jQuery plugin that does this exact thing and easily allows Ajax calls to update the content. If you're interested you can look at the documentation on this page: http://botmonster.com/jquery-bootpag/