PHP For Displaying 500 pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
abrogard
Forum Newbie
Posts: 11
Joined: Sun Apr 04, 2004 6:02 am

PHP For Displaying 500 pages

Post by abrogard »

I want to put a Manual up on my site. More than 500 pages. The pages exist in .jpg form.

The user will want to reference individual pages in the Manual. Hence I need them to easily be able to select any one of the 500 pages and once they are there to be able to go forward and backwards with equal ease.

There's only 22 chapters to the Manual. But each chapter has sections - a different number of them for each chapter.

We finish up with maybe 50 sections. And then, as I say, about 500 pages.

I'm thinking a menu choice for the 22 chapter in the beginning, right there on the screen with the short name for each chapter which is quite sufficient for the reader to know where he's going.

After clicking chapter a dropdown list of sections for that chapter, each with a similarly very short but sufficiently descriptive name/title.

Click the choice of section and get pages - generally without any description but using a code method that allows me to add descriptions of page contents later (how long will it take me to describe 500 pages? forever.... )

Now here's the point - I don't write 500 page names. I don't write 500 commands to display pages (.jpg's).

I list the chapters in a text file - even write the front menu.
I list the sections in a text file which the code reads.
I list how many pages for each section and the code reads this.

The code that puts up the dropdowns reads this file and knows what dropdown list to make

The dropdown selection then goes into the page (jpg) calling code line and it is done.

Nearly. the last bit is how to give the 'next page' and 'last page' options to the displayed .jpg?

All of that is my vague idea of how it might be done.

Anyone got any good ideas?
User avatar
spedula
Forum Commoner
Posts: 81
Joined: Mon Mar 29, 2010 5:24 pm

Re: PHP For Displaying 500 pages

Post by spedula »

Create a PDF instead?
thecodewall
Forum Commoner
Posts: 33
Joined: Sun Dec 26, 2010 8:37 am

Re: PHP For Displaying 500 pages

Post by thecodewall »

create database for this that have filename or id, this id will be the reference of your images, so that it will manage properly.
Last edited by thecodewall on Tue Jan 04, 2011 11:14 pm, edited 1 time in total.
eskio
Forum Commoner
Posts: 66
Joined: Tue Apr 01, 2008 1:00 am

Re: PHP For Displaying 500 pages

Post by eskio »

Hi,
another option is to create your manual using framesets.
Post Reply