cpu_time_clock = new Cpuusagestatclock; $this->cpu_time_clock->start(); } //Dumps out the standard header for a static page where browser or proxy //caching is acceptable. //The page title is what is displayed by the //browser, while the HTML title is what goes in big letters at the top of the //page. Size and alignment should be set here, italics if necessary can be //put in the passed string. The description is text below the header to //say a little bit more about the page. function static_page_header_title_std($Pagetitle, $Htmltitle, $Desc) { echo "\n"; echo "\n"; echo "" . $Pagetitle . "\n"; echo "\n"; echo "\n"; echo "

" . $Htmltitle . "

\n"; if (strlen($Desc)) { echo "

(" . $Desc . ")

\n"; } $this->static_page_hrule_std(); } //Prints the message about clicking on thumbnails, plus optionally the horizontal rule. //$multiple_pics dictates whether the message is in the singular or plural. function static_page_photo_thumbnail_explanation($b_multiple_pics, $b_horizontal_rule) { if ($b_multiple_pics) { echo "

\n"; echo " (Click on any of the thumbnails below to view the full-sized photo.)\n"; echo "

\n"; } else { echo "

\n"; echo " (Click on the thumbnail below to view the full-sized photo.)\n"; echo "

\n"; } if ($b_horizontal_rule) { $this->static_page_hrule_std(); } } //This function tallies up the used CPU time and prints out the standard footer which //includes this information for a static page. function static_page_footer_std() { $this->static_page_hrule_std(); //Stop the cpu clock. $this->cpu_time_clock->stop(); //Record a time string. $today = date("g:i:s a (e) \o\\n F j, Y."); echo "

\n"; echo " \n"; echo " Local time on the server (at the time this page was served) is " . $today . " \n"; echo " " . $this->cpu_time_clock->std_web_page_cpu_time_usage_footer() . " \n"; echo " This page is maintained by David T. Ashley.\n"; echo " \n"; echo "

\n"; echo "
\n"; echo "\n"; echo "\n"; } //Dumps out the standard horizontal rule for separating sections for a static page. The rule for //hacking up functionality is that the page application is responsible to use these //rules except first after the header and last before the footer. function static_page_hrule_std() { echo "
\n"; } } ?>