Thursday 4 February 2010

Number of Displayed Pictures Limited

After all my test driving the image collection had grown to more than 900 pictures. This is not suitable to show on a single page, even through thumbnails. So I wrote some PHP code which creates several pages: based on a maximum number of pictures to be shown and a start picture index, the number of displayed thumbnails is reduces to a maximum number. In order to access all pictures I wrote a small code piece which allows access of individual pages as well as previous/next page - try it out in the "Show All Pictures" page (the page numbers are on the bottom). These pages are created dynamically, based on the GET parameters in the URL (which you see when you click on one of the bottom page numbers in the "Show All Pictures" page.

No comments:

Post a Comment