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,14 +8,13 @@
<? <?
function doc_list ($title, $list, $type) function doc_list ($title, $list, $type)
{ {
tableBoxHeader (featureBgColor, featureHeadColor); ?>
<TABLE class="inside" width="100%">
<?
tableTitle ($title, 1, featureHeadColor); tableTitle ($title, 1, featureHeadColor);
?><TD align="center"><? ?>
tableHeader("100%", featureBgColor); <TD class="inside">
?><TR vAlign="top">
<TD>
<UL><? <UL><?
reset ($list); reset ($list);
while (list (, $cdl) = each ($list)) { while (list (, $cdl) = each ($list)) {
if (is_file ('doc/' . $cdl . '-' . $type . '.txt')) { if (is_file ('doc/' . $cdl . '-' . $type . '.txt')) {
@ -25,45 +24,45 @@
echo '</LI>'; echo '</LI>';
} }
} }
?></UL> ?></UL>
</TD> </TD>
</TR><? <?
tableFooter ();
?></TD><?
tableBoxFooter (); tableBoxFooter ();
} }
function program_doc_list ($title, $list, $notes) function program_doc_list ($title, $list, $notes)
{ {
tableBoxHeader (featureBgColor, featureHeadColor); tableBoxHeader (featureBgColor, featureHeadColor);
tableTitle ($title, 1, featureHeadColor); tableTitle ($title, 2, featureHeadColor);
?><TD align="left"><? ?>
<TR>
<TD colSpan="2">
<?
if (is_file ('doc/' . $notes . '-notes' . '.txt')) { if (is_file ('doc/' . $notes . '-notes' . '.txt')) {
$lines = file ('doc/' . $notes . '-notes' . '.txt'); $lines = file ('doc/' . $notes . '-notes' . '.txt');
reset ($lines); reset ($lines);
while (list (, $line) = each ($lines)) { while (list (, $line) = each ($lines)) {
print $line; print $line;
} }
} else {
echo "<P>There are no errata for this release.";
} }
tableHeader("100%", featureBgColor); ?>
?><TR vAlign="top"> </TR>
<TD align="left" vAlign="top" width="50%"><? <TR>
doc_list ("cvar documentation", $list, "cvar"); <TD class="inside" align="left" vAlign="top" width="50%">
?></TD> <? doc_list ("Cvar Documentation", $list, "cvar"); ?>
<TD align="left" vAlign="top" width="50%"><? </TD>
doc_list ("command documentation", $list, "cmd"); <TD class="inside" align="left" vAlign="top" width="50%">
?></TD> <? doc_list ("Command Documentation", $list, "cmd"); ?>
</TR><? </TD>
tableFooter (); </TR>
?></TD><? <?
tableBoxFooter (); tableBoxFooter ();
} }
?> ?>
<TABLE width="100%" cellSpacing="2" cellPadding="0" border="0"> <?
<TR vAlign="top">
<TD><?
$program_list = array ( $program_list = array (
"nq-3dfx", "nq-3dfx",
"nq-ggi", "nq-ggi",
@ -90,11 +89,9 @@
"qw-server" "qw-server"
); );
program_doc_list ("QuakeForge 0.5", $program_list, "quakeforge"); program_doc_list ("QuakeForge 0.5", $program_list, "quakeforge");
?></TD> ?>
</TR> <BR>
<?
<TR vAlign="top">
<TD><?
$program_list = array ( $program_list = array (
"qf-client-3dfx", "qf-client-3dfx",
"qf-client-ggi", "qf-client-ggi",
@ -109,10 +106,8 @@
); );
program_doc_list ("QuakeForge 0.3", $program_list, ""); program_doc_list ("QuakeForge 0.3", $program_list, "");
?></TD>
</TR>
</TABLE>
?>
<? <?
require("parts/postamble.php"); // Finish this sucker up require("parts/postamble.php"); // Finish this sucker up
?> ?>

View file

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

View file

@ -1,6 +1,5 @@
BODY { BODY {
background: black; background: black;
background-image: none;
color: white; color: white;
} }
@ -21,9 +20,31 @@ P.centered {
text-align: center; text-align: center;
} }
TD.featureBox { TABLE.featureBox {
font-size: small; background: #737b9c;
background: rgb(38,40,51); 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; } H1,H2,H3,H4,H5,H6 { font-family: Arial, Helvetica, sans-serif; }