Messing with pagination all day and I'm almost there. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Messing with pagination all day and I'm almost there. (/showthread.php?tid=9491) |
Messing with pagination all day and I'm almost there. - El Forum - 06-26-2008 [eluser]internut[/eluser] This is probably very ugly but it seems to be working well thus far. Still have a few things to add. Its doing pagination, sorting (keeping track of sort during page changes via cookie). Any thoughts? Code: // Here we go with pagination Messing with pagination all day and I'm almost there. - El Forum - 06-26-2008 [eluser]internut[/eluser] almost there - goda throw a search field into the mix. Like to get some feed back if i'm going about things correctly in the long run. Messing with pagination all day and I'm almost there. - El Forum - 06-30-2008 [eluser]SeanJA[/eluser] Ah, thats a lot more clever than mine was... mostly because I wrote my own pagination system... Messing with pagination all day and I'm almost there. - El Forum - 07-01-2008 [eluser]internut[/eluser] Its a lot more code now. I have put in search, sorting, keeps you on the same page while sorting, drop down select option for an ENUM mysql table field to only show & search certain records (active/inactive/approve/canceled). I think I almost done! |