1 |
<?php
|
2 |
//********************************************************************************
|
3 |
//Copyright (C) 2003 David T. Ashley
|
4 |
//********************************************************************************
|
5 |
//This program or source file is free software; you can redistribute it and/or
|
6 |
//modify it under the terms of the GNU General Public License as published by
|
7 |
//the Free Software Foundation; either version 2 of the License, or (at your
|
8 |
//option) any later version.
|
9 |
//
|
10 |
//This program or source file is distributed in the hope that it will
|
11 |
//be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
//GNU General Public License for more details.
|
14 |
//
|
15 |
//You may have received a copy of the GNU General Public License
|
16 |
//along with this program; if not, write to the Free Software
|
17 |
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18 |
//********************************************************************************
|
19 |
//
|
20 |
//Dave Ashley, 07/05
|
21 |
//
|
22 |
//This class defines standard styles (HTML styles, ways of doing things)
|
23 |
//for the E3FT web pages. Standard style includes the appearance of the pages,
|
24 |
//the CPU usage clock at the bottom, etc.
|
25 |
//
|
26 |
//--------------------------------------------------------------------------------
|
27 |
//Outputs the standard horizontal rule for the page. This is typically used to
|
28 |
//separate sections of content within the page.
|
29 |
//
|
30 |
function STDSTYLE_hrule_std()
|
31 |
{
|
32 |
echo "<hr>\n";
|
33 |
}
|
34 |
//
|
35 |
//--------------------------------------------------------------------------------
|
36 |
//Dumps out the standard header. The page title is what is displayed by the
|
37 |
//browser, while the HTML title is what goes in big letters at the top of the
|
38 |
//page. Size and alignment should be set here, italics if necessary can be
|
39 |
//put in the passed string. The description is text below the header to
|
40 |
//say a little bit more about the page.
|
41 |
//
|
42 |
function STDSTYLE_header_title($Pagetitle, $Htmltitle, $Desc)
|
43 |
{
|
44 |
echo "<html>\n";
|
45 |
echo "<head>\n";
|
46 |
echo "<title>" . $Pagetitle . "</title>\n";
|
47 |
echo "</head>\n";
|
48 |
echo "<body background=\"/bkgnds/bk10.gif\">\n";
|
49 |
echo "<p align=\"center\"><b><font size=\"6\">" . $Htmltitle . "</font></b></p>\n";
|
50 |
if (strlen($Desc))
|
51 |
{
|
52 |
echo "<p align=\"center\"><b><font size=\"5\">(" . $Desc . ")</font></b></p>\n";
|
53 |
}
|
54 |
STDSTYLE_hrule_std();
|
55 |
}
|
56 |
//
|
57 |
//--------------------------------------------------------------------------------
|
58 |
//This function tallies up the used CPU time and prints out the standard footer which
|
59 |
//includes this information.
|
60 |
//
|
61 |
function STDSTYLE_footer_std()
|
62 |
{
|
63 |
STDSTYLE_hrule_std();
|
64 |
echo "<p align=\"center\" style=\"margin-top: -2; margin-bottom: 0\"><font size=\"2\">This web page is maintained by <a href=\"mailto:webmaster@e3ft.com\">webmaster@e3ft.com</a>.<br>\n";
|
65 |
echo "</font></p>\n";
|
66 |
echo "<hr noshade size=\"5\">\n";
|
67 |
echo "</body>\n";
|
68 |
echo "</html>\n";
|
69 |
}
|
70 |
//--------------------------------------------------------------------------------
|
71 |
?>
|