BuckoSoft Web Page Organization
This is how the web pages are constructed. It's become a rat's nest over the last 12.7 years, so i thought i would write this down. (Already, improvements jump out at me :))
...well, i looked at it for a week and had to somewhat clean it up.:)
- pagetop.php
A normal page would include just this file. The results of including this file is the entire html preamble leaving the page in the body.
- include bs.php
- printHead();
- printHeadCompass();
- printHeadEBody();
- printBodyCompass();
- include header.php
- printH1Titles();
- bs.php
The main BuckoSoft php include file.- include parseprefs.php
- include pagesetup.php
- include compass.php
- include buttbar.php
- function printHead()
- print the DOCTYPE
- print <html/head>
- print the title
- function printHeadEBody()
- print </HEAD><BODY>
- function printStyleSheet($stylefile)
- print the link to the stylesheet
- function printScript($scriptfile)
- print the link to the JavaScript file
- function printH1Titles()
- output <h1>title (title1)</h1> and <hr>
- pagesetup.php
- Include webLinks.php to read the database.
- set the global vars accordingly.
- compass.php
The compass comes in 2 parts:- function printHeadCompass()
- print the stylesheet.
- print the <LINK rel="blah"> links.
- function printBodyCompass()
- Print the mini-nav buttons on top in a <div id="compass">.
- function printHeadCompass()
- header.php
Print the main buttbar on top (if desired). - webLinks.php
Read the record for this page from the database. - parseprefs.php
Parse the cookies and agent headers to determine html options. - footer.php
Output the <hr> (if desired), buttbar (if desired), and page date line.
Sitemap |
Home |
Dick |
Links |
News |
Prefs |
Pinball |
XPilot |
Art |