$(document).ready(function(){ $(".tablestripe tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");}); $(".tablestripe tr:even").addClass("alt"); $(".tablestripe tr:odd").addClass("alto"); }); '; private $title = ''; // Title of page private $scripts = ''; // Scripts to include on page public function __construct($ntitle, $nscripts = ''){ $this->title = $ntitle; $this->scripts .= $nscripts; if($ntitle != "NOHEAD") $this->head(); } private function top(){ echo '
'; } // Public functions/vars public function head(){ session_start(); // @TODO: Add capability to load additional javascripts and stylesheets in array form $this->pageGenTime = round(microtime(), 3); echo 'doctype . '> htmlargs . '> ' . $this->title . ' :: ' . $this->base_title . ' '; echo $this->scripts; echo ' bodyargs.' >'; echo $this->top(); // Write out top } public function foot(){ echo '
'; $this->pageGenTime = round(microtime(), 3); echo ''; echo $this->trackingcode; echo ''; } public function secondsToCompound($seconds) { $ret = ""; $hours = intval(intval($seconds) / 3600); $ret .= "$hours:"; $minutes = bcmod((intval($seconds) / 60),60); $ret .= "$minutes:"; $seconds = bcmod(intval($seconds),60); $ret .= "$seconds"; return $ret; } } ?>