Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18222
Added Files:
theme.css theme.php
Log Message:
Added initial theme support.
--- NEW FILE: theme.php ---
<?php
/**
* This source code is distributed under the terms as layed out in the
* GNU General Public License.
*
* Purpose: To provide the HTML page header code
*
* @author Brian A Cheeseman <bch...@us...>
* @version $Id: theme.php,v 1.1 2004/10/03 11:00:21 bcheesem Exp $
* @copyright 2003-2004 Brian A Cheeseman
**/
function GetPageHeader($Title="", $Heading="") {
global $StartTime;
$StartTime = microtime();
$PageHead = "<html>";
if ($Title != "") {
$PageHead .= "<head><title>$Title</title>";
$PageHead .= "<link rel=StyleSheet href=\"Themes/Default/theme.css\" type=\"text/css\">";
$PageHead .= "</head>";
} // End of if ($Title != "")
$PageHead .= "<body>";
if ($Heading != "") {
$PageHead .= "<div class=\"title\">$Heading</div>";
} // End of if ($Header != "")
$PageHead .= "Welcome to our CVS Repository viewer. This page has been dynamically";
$PageHead .= " created with '<a href=\"http://phpcvsview.sourceforge.net/\">phpCVS";
$PageHead .= "Viewer</a>' created by <a href=\"mailto:bch...@us...";
$PageHead .= "\">Brian Cheeseman</a>. <br><br>Please feel free to browse our source code.<br><br>";
return $PageHead;
} // End of function GetPageHeader($Title="", $Heading="")
function GetPageFooter() {
global $StartTime;
$EndTime = microtime();
$PageFoot = "<div class=\"footer\">This page was created by <a href=\"http://phpcvsview.sourceforge.net/\">phpCVSView</a> in ".number_format(microtime_diff($StartTime, $EndTime), 3)." seconds.</div>";
$PageFoot .= "</body></html>";
return $PageFoot;
} // End of function GetPageFooter()
?>
--- NEW FILE: theme.css ---
body
{
margin:3px 3px 3px 3px;
padding:0px;
font-family: Tahoma, arial, sans-serif;
font-size: 12pt;
}
.footer
{
font-size: 8pt;
text-align: center;
}
.quicknav
{
font-size: 8pt;
text-align: left;
}
.title
{
text-align: center;
font-size: 18pt;
font-weight: bold;
}
table
{
margin:0px 0px 0px 0px;
font-size: 9pt;
border: 0px none;
width: 100%;
border-spacing: 0px 0px;
border-collapse: collapse;
}
td
{
padding: 3px;
}
|