User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,490 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,707 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1534 | Replies: 12
Reply
Join Date: Aug 2007
Location: Morrisdale, PA
Posts: 52
Reputation: JeniF is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 5
JeniF's Avatar
JeniF JeniF is offline Offline
Junior Poster in Training

Question Page numbering for printing out an online manual

  #1  
Sep 23rd, 2007
Hello to all!
I have an online manual (developed in php)that my company would like to revise for printing purposes. What I need to do is have this manual setup to include page numbering on the printed version so the instructor can reference pages during training sessions.
They have expressed something similar to the way MS Word sets up up page numbering.
I know I could manually set up the page numbers, but everytime the manual gets updated, I would have to re-number the pages.
Any ideas on how to set this dynamically using php?
Your thoughts are greatly appreciated!
I keep hitting "escape", but I'm still here!!!!
:}
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Page numbering for printing out an online manual

  #2  
Sep 24th, 2007
how exactly is the manual set up. Is it a webpage; is it seperate document, what?

can you give me link to it so i can see what we're working with?
Reply With Quote  
Join Date: Aug 2007
Location: Morrisdale, PA
Posts: 52
Reputation: JeniF is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 5
JeniF's Avatar
JeniF JeniF is offline Offline
Junior Poster in Training

Re: Page numbering for printing out an online manual

  #3  
Sep 25th, 2007
Currently the manual is set up as both separate pages and a "main page" for each section that flows from one sub-section to the next. I used anchors within this page to navigate.
From the Table of Contents, you can either select the "Main Page" of the section or go directly to a sub-section page. Basically it is a "webpage(s) at this point.
I know this sounds a bit confusing, but I did not initially set this up and I would like to set this up in a fashion that would require as little maintenance as possible once completed. (i.e. the page numbering). My thoughts were to store the entire manual contents within a table and dynamically produce both content and the page numbering.
Does this sound like a reasonable way to proceed with this?
I keep hitting "escape", but I'm still here!!!!
:}
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Page numbering for printing out an online manual

  #4  
Sep 25th, 2007
what i would do is have one php page process the entire manual. Other pages that hold the data will be included base upon the varibles in the url. also, what i would do is give a link to a word document of the entire manual that could be downloaded and printed by them. this would solve the page numbering problem. if this isn't something you can do i can always think of a different way. i also can make the php page to process the manual if you need me to, its pretty easy.
Reply With Quote  
Join Date: Aug 2007
Location: Morrisdale, PA
Posts: 52
Reputation: JeniF is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 5
JeniF's Avatar
JeniF JeniF is offline Offline
Junior Poster in Training

Solution Re: Page numbering for printing out an online manual

  #5  
Sep 25th, 2007
Originally Posted by kkeith29 View Post
what i would do is have one php page process the entire manual. Other pages that hold the data will be included base upon the varibles in the url. also, what i would do is give a link to a word document of the entire manual that could be downloaded and printed by them. this would solve the page numbering problem. if this isn't something you can do i can always think of a different way. i also can make the php page to process the manual if you need me to, its pretty easy.

Hey many thanks for the thoughts...
Can you give me a bit more info on how you would process the entire manual from one php page? As in a function of some sort...maybe from the table of contents page I coud have a printing function that would either
A -> print the manual in MS Word format (which may not be an option) or
B-> loop through the URL variables for printing
Any more insight would be greatly appreciated...you at least you got the thought process rolling.
I keep hitting "escape", but I'm still here!!!!
:}
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Page numbering for printing out an online manual

  #6  
Sep 26th, 2007
how is your manual broken down. TABLE OF CONTENTS > SECTIONS > ?. After i know this information i will get to work on the code for you.
Reply With Quote  
Join Date: Sep 2007
Location: Durant, OK
Posts: 4
Reputation: jbcrawford is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jbcrawford's Avatar
jbcrawford jbcrawford is offline Offline
Newbie Poster

Solution Re: Page numbering for printing out an online manual

  #7  
Sep 26th, 2007
Maybe this will help you...I use it for generating a parts book from mysql and our employee handbook. It's pretty nice.

http://www.ros.co.nz/pdf/
Reply With Quote  
Join Date: Aug 2007
Location: Morrisdale, PA
Posts: 52
Reputation: JeniF is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 5
JeniF's Avatar
JeniF JeniF is offline Offline
Junior Poster in Training

Re: Page numbering for printing out an online manual

  #8  
Sep 26th, 2007
Originally Posted by kkeith29 View Post
how is your manual broken down. TABLE OF CONTENTS > SECTIONS > ?. After i know this information i will get to work on the code for you.

The manual is broken down as so:

Table of Contents (no page number for this)

Introduction
Physical Basics
BASIC PRINCIPLES
Balance/Defensive Stance
Pivot
The Front Lift
ASSISTS
One Person Cross Grain Hold
Two Person Cross Grain Hold
Shoulder Loop/Ankle Compression
2 on 1
GRABS
One Handed Parallel Grab - Punch Out
ect...
The bolded titles are the sections and the items below are the content pages for within that section
I appreciate your help on this one...and I am also looking at the information that jbcrawford sent.
For now I am busy typing the darn thing up again..
I keep hitting "escape", but I'm still here!!!!
:}
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Page numbering for printing out an online manual

  #9  
Sep 27th, 2007
i have almost finished the code. you can view it on my server; http://68.103.192.2:8080/man/manual.php. please tell me what you need me to fix or what you want differently. all of the text formatting can be changed by you. the code works by using txt files in certain folders. all you have to do is name the file as the title ex. (One Person Cross Grain Hold.txt), type some information into the file and the code will do the rest. i am still working on the printing part.
Reply With Quote  
Join Date: Aug 2007
Location: Morrisdale, PA
Posts: 52
Reputation: JeniF is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 5
JeniF's Avatar
JeniF JeniF is offline Offline
Junior Poster in Training

Re: Page numbering for printing out an online manual

  #10  
Sep 27th, 2007
Originally Posted by kkeith29 View Post
i have almost finished the code. you can view it on my server; http://68.103.192.2:8080/man/manual.php. please tell me what you need me to fix or what you want differently. all of the text formatting can be changed by you. the code works by using txt files in certain folders. all you have to do is name the file as the title ex. (One Person Cross Grain Hold.txt), type some information into the file and the code will do the rest. i am still working on the printing part.

Thanks!
No changes thus far..just a quick question...can the text file contain images and html code?
nice job so far though
Last edited by JeniF : Sep 27th, 2007 at 9:22 am. Reason: typo
I keep hitting "escape", but I'm still here!!!!
:}
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:18 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC