About the calendar page
File names are in red
The main page, calendar.html includes (via
server-side include)
3 other files:
- cal_form.inc (the orange fill-out form)
- cal_strip.inc (the strip-chart calendar
display)
- cal_data_inverse.inc (the reservations in
inverse order of receipt)
cal_form.inc is the green fill-out form. When you
press 'submit', it calls cal_process.php. This php
script does the following:
- Checks the input data for validity: Name non-blank, end date not before
start date etc.
- The input data are written (appended) to a 'data base', which currently
is just an ascii file in html form:
cal_data.inc.
- The data base is read, and the 'stripchart calendar'
cal_strip.inc is produced.
The 'visible' reservations (+- 2 months from present) are ordered by
start time
- For display on the cal page, an inverted copy of this file is written
to cal_data_inverted.inc
- email is sent to Hubert and Pat
How to make corrections:
If you edit the 'data base file' cal_data.inc, and
'run the page' by typing 'refresh' in the name field and pressing 'submit', all
derived files are re-calculated, and no email is sent.
For example here is a record from cal_data.inc:
Ming <!---->: 1 Dec 2004 - 10 Dec 2004 no <br> <!-- Submitted on 24 Nov 04 at 11:08 -->
Note the html comment fields <!--...--> are not displayed by html. The
first comment field holds the last name if it was typed in. The last comment
field holds the submit date.
You could change the dates, or delete the whole line, or change 'no' to 'yes',
or add comments to the comment fields. Comments are not displayed on the cal
page, but are visible to the outside world with the browser's 'View ->
Page Source' command.
Last update 11 September 2005 - Hubert van Hecke
back