smart pagination algorithm


i'm looking an instance algorithm intelligent pagination. smart, i meant i wholly wish show, example, 2 adjacent pages tide page, instead finale adult ridiculously enlarged page list, i lop it.



here's discerning instance clearer... i have now:



pages: 1 2 3 4 [5] 6 7 8 9 10 11


this i wish finish adult with:



pages: ... 3 4 [5] 6 7 ...


(in example, i'm wholly arrangement 2 adjacent pages tide page)



i'm implementing php/mysql, "basic" pagination (no trucating) already coded, i'm only looking an instance optimize it... an instance any language, enlarged gives me an thought exercise it...



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?