Đang Thực Hiện

155170 PHP paging / pagination

Hello

This is in PHP.

A website of mine needs an improved paging / pagination system.

I currently list 20 results per page. At the moment if there are hundreds of results, the paging looks like this -

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 and on and on and on...

So as you can see I am just listing every page.

I want this improved. Below is an example of what I want -

There are 80 pages of results.

The first page would look like this -

1 2 3 4 5 6 7 8 9 ... 80 [ Next ]

If the user clicks on 80 it looks like this -

[ Previous ] 1 ... 72 73 74 75 76 77 78 79 80

If the user clicks on 72 it will look like this -

[Previous] 1 ... 68 69 70 71 72 73 74 75 ... 80 [ Next ]

If the user clicks on 69 it will look like this -

[Previous] 1 ... 66 67 68 69 70 71 72 73 ... 80 [ Next ]

So as you can see -

There are always 10 page links displayed.

You can always get to either the first or last page.

There is a next button if there is a next page. There is a previous button if there is a previous page.

If there are less than 10 pages of results, it should look like this -

For example, 7 pages of results.

1 2 3 4 5 6 7 [ Next ]

If the user clicks 7 -

[ Previous ] 1 2 3 4 5 6 7 [ Previous ]

If the user clicks 2 -

[ Previous ] 1 2 3 4 5 6 7 [ Previous ]

Hopefully this is clear.

Any questions, please ask.

Thanks.

Kỹ năng: Bất kì công việc gì, PHP

Xem thêm: php a, page pagination, php thanks button, pagination website, website pagination, mine website list, php listing paging, php pagination previous, paging php, php next previous pagination, php pagination next previous, php pagination previous next, pagination php, php paging, paging, php next page, paging button php, pagination next, php user clicks, previous page php, results pages php

Về Bên Thuê:
( 96 nhận xét ) NA, Hong Kong

Mã Dự Án: #1901354

Đã trao cho:

ezekielsl

No problem, payment through paypal once complete.

$25 USD trong 0 ngày
(1 Đánh Giá)
1.8