Update the web site to use more CSS (to get Mozilla cooperative), and make

the documentation page more efficient.
This commit is contained in:
Jeff Teunissen 2002-04-09 20:16:29 +00:00
parent d71dc6bbb0
commit 286d224a22
3 changed files with 113 additions and 103 deletions

View file

@ -8,111 +8,106 @@
<?
function doc_list ($title, $list, $type)
{
tableBoxHeader (featureBgColor, featureHeadColor);
?>
<TABLE class="inside" width="100%">
<?
tableTitle ($title, 1, featureHeadColor);
?><TD align="center"><?
tableHeader("100%", featureBgColor);
?><TR vAlign="top">
<TD>
<UL><?
reset ($list);
while (list (, $cdl) = each ($list)) {
if (is_file ('doc/' . $cdl . '-' . $type . '.txt')) {
echo '<LI>';
echo '<A href="' . $type . '.php?program='
. $cdl . '">' . $cdl . '</A>';
echo '</LI>';
}
}
?></UL>
</TD>
</TR><?
tableFooter ();
?></TD><?
?>
<TD class="inside">
<UL><?
reset ($list);
while (list (, $cdl) = each ($list)) {
if (is_file ('doc/' . $cdl . '-' . $type . '.txt')) {
echo '<LI>';
echo '<A href="' . $type . '.php?program='
. $cdl . '">' . $cdl . '</A>';
echo '</LI>';
}
}
?></UL>
</TD>
<?
tableBoxFooter ();
}
function program_doc_list ($title, $list, $notes)
{
tableBoxHeader (featureBgColor, featureHeadColor);
tableTitle ($title, 1, featureHeadColor);
?><TD align="left"><?
if (is_file ('doc/' . $notes . '-notes' . '.txt')) {
$lines = file ('doc/' . $notes . '-notes' . '.txt');
reset ($lines);
while (list (, $line) = each ($lines)) {
print $line;
tableTitle ($title, 2, featureHeadColor);
?>
<TR>
<TD colSpan="2">
<?
if (is_file ('doc/' . $notes . '-notes' . '.txt')) {
$lines = file ('doc/' . $notes . '-notes' . '.txt');
reset ($lines);
while (list (, $line) = each ($lines)) {
print $line;
}
} else {
echo "<P>There are no errata for this release.";
}
}
tableHeader("100%", featureBgColor);
?><TR vAlign="top">
<TD align="left" vAlign="top" width="50%"><?
doc_list ("cvar documentation", $list, "cvar");
?></TD>
<TD align="left" vAlign="top" width="50%"><?
doc_list ("command documentation", $list, "cmd");
?></TD>
</TR><?
tableFooter ();
?></TD><?
?>
</TR>
<TR>
<TD class="inside" align="left" vAlign="top" width="50%">
<? doc_list ("Cvar Documentation", $list, "cvar"); ?>
</TD>
<TD class="inside" align="left" vAlign="top" width="50%">
<? doc_list ("Command Documentation", $list, "cmd"); ?>
</TD>
</TR>
<?
tableBoxFooter ();
}
?>
<TABLE width="100%" cellSpacing="2" cellPadding="0" border="0">
<TR vAlign="top">
<TD><?
$program_list = array (
"nq-3dfx",
"nq-ggi",
"nq-glx",
"nq-mgl",
"nq-sdl",
"nq-sdl32",
"nq-sgl",
"nq-svga",
"nq-wgl",
"nq-x11",
"nq-server",
"qw-client-3dfx",
"qw-client-ggi",
"qw-client-glx",
"qw-client-mgl",
"qw-client-sdl",
"qw-client-sdl32",
"qw-client-sgl",
"qw-client-svga",
"qw-client-wgl",
"qw-client-x11",
"qw-master",
"qw-server"
);
program_doc_list ("QuakeForge 0.5", $program_list, "quakeforge");
?></TD>
</TR>
<?
$program_list = array (
"nq-3dfx",
"nq-ggi",
"nq-glx",
"nq-mgl",
"nq-sdl",
"nq-sdl32",
"nq-sgl",
"nq-svga",
"nq-wgl",
"nq-x11",
"nq-server",
"qw-client-3dfx",
"qw-client-ggi",
"qw-client-glx",
"qw-client-mgl",
"qw-client-sdl",
"qw-client-sdl32",
"qw-client-sgl",
"qw-client-svga",
"qw-client-wgl",
"qw-client-x11",
"qw-master",
"qw-server"
);
program_doc_list ("QuakeForge 0.5", $program_list, "quakeforge");
?>
<BR>
<?
$program_list = array (
"qf-client-3dfx",
"qf-client-ggi",
"qf-client-glx",
"qf-client-mgl",
"qf-client-sdl",
"qf-client-sgl",
"qf-client-svga",
"qf-client-wgl",
"qf-client-x11",
"qf-server"
);
<TR vAlign="top">
<TD><?
$program_list = array (
"qf-client-3dfx",
"qf-client-ggi",
"qf-client-glx",
"qf-client-mgl",
"qf-client-sdl",
"qf-client-sgl",
"qf-client-svga",
"qf-client-wgl",
"qf-client-x11",
"qf-server"
);
program_doc_list ("QuakeForge 0.3", $program_list, "");
?></TD>
</TR>
</TABLE>
program_doc_list ("QuakeForge 0.3", $program_list, "");
?>
<?
require("parts/postamble.php"); // Finish this sucker up
?>

View file

@ -34,10 +34,7 @@
*/
function tableBoxHeader ($bgColor, $borderColor)
{
echo '<TABLE cellSpacing="0" cellPadding="1" width="100%" border="0" bgColor="' . $borderColor . '">' .
' <TR>' .
' <TD>' .
' <TABLE cellSpacing="1" cellPadding="2" width="100%" border="0" bgColor="' . $bgColor . '">';
echo '<TABLE width="100%" border="0" cellPadding="2" class="featureBox">';
}
/*
@ -47,10 +44,7 @@
*/
function tableBoxFooter ()
{
echo ' </TABLE>' .
' </TD>' .
' </TR>' .
'</TABLE>';
echo '</TABLE>';
}
/*

View file

@ -1,6 +1,5 @@
BODY {
background: black;
background-image: none;
color: white;
}
@ -21,9 +20,31 @@ P.centered {
text-align: center;
}
TD.featureBox {
font-size: small;
background: rgb(38,40,51);
TABLE.featureBox {
background: #737b9c;
border: solid #737b9c 1px;
margin: 0px;
padding: 0px;
}
TABLE.featureBox TH {
border: none;
margin: 0px;
padding: 0px;
}
TABLE.featureBox TD {
background: #262633;
border: solid #737b9c 1px;
margin: 0px;
padding: 6pt;
}
TABLE.featureBox TD.inside {
background: #262633;
border: none;
margin: 1px;
padding: 1pt;
}
H1,H2,H3,H4,H5,H6 { font-family: Arial, Helvetica, sans-serif; }