mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-30 07:51:03 +00:00
Update the web site to use more CSS (to get Mozilla cooperative), and make
the documentation page more efficient.
This commit is contained in:
parent
d71dc6bbb0
commit
286d224a22
3 changed files with 113 additions and 103 deletions
|
@ -8,111 +8,106 @@
|
||||||
<?
|
<?
|
||||||
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">
|
<UL><?
|
||||||
<TD>
|
reset ($list);
|
||||||
<UL><?
|
while (list (, $cdl) = each ($list)) {
|
||||||
|
if (is_file ('doc/' . $cdl . '-' . $type . '.txt')) {
|
||||||
reset ($list);
|
echo '<LI>';
|
||||||
while (list (, $cdl) = each ($list)) {
|
echo '<A href="' . $type . '.php?program='
|
||||||
if (is_file ('doc/' . $cdl . '-' . $type . '.txt')) {
|
. $cdl . '">' . $cdl . '</A>';
|
||||||
echo '<LI>';
|
echo '</LI>';
|
||||||
echo '<A href="' . $type . '.php?program='
|
}
|
||||||
. $cdl . '">' . $cdl . '</A>';
|
}
|
||||||
echo '</LI>';
|
?></UL>
|
||||||
}
|
</TD>
|
||||||
}
|
<?
|
||||||
|
|
||||||
?></UL>
|
|
||||||
</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"><?
|
?>
|
||||||
if (is_file ('doc/' . $notes . '-notes' . '.txt')) {
|
<TR>
|
||||||
$lines = file ('doc/' . $notes . '-notes' . '.txt');
|
<TD colSpan="2">
|
||||||
reset ($lines);
|
<?
|
||||||
while (list (, $line) = each ($lines)) {
|
if (is_file ('doc/' . $notes . '-notes' . '.txt')) {
|
||||||
print $line;
|
$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>
|
||||||
?><TR vAlign="top">
|
<TR>
|
||||||
<TD align="left" vAlign="top" width="50%"><?
|
<TD class="inside" align="left" vAlign="top" width="50%">
|
||||||
doc_list ("cvar documentation", $list, "cvar");
|
<? doc_list ("Cvar Documentation", $list, "cvar"); ?>
|
||||||
?></TD>
|
</TD>
|
||||||
<TD align="left" vAlign="top" width="50%"><?
|
<TD class="inside" align="left" vAlign="top" width="50%">
|
||||||
doc_list ("command documentation", $list, "cmd");
|
<? doc_list ("Command Documentation", $list, "cmd"); ?>
|
||||||
?></TD>
|
</TD>
|
||||||
</TR><?
|
</TR>
|
||||||
tableFooter ();
|
<?
|
||||||
?></TD><?
|
|
||||||
tableBoxFooter ();
|
tableBoxFooter ();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<TABLE width="100%" cellSpacing="2" cellPadding="0" border="0">
|
<?
|
||||||
<TR vAlign="top">
|
$program_list = array (
|
||||||
<TD><?
|
"nq-3dfx",
|
||||||
$program_list = array (
|
"nq-ggi",
|
||||||
"nq-3dfx",
|
"nq-glx",
|
||||||
"nq-ggi",
|
"nq-mgl",
|
||||||
"nq-glx",
|
"nq-sdl",
|
||||||
"nq-mgl",
|
"nq-sdl32",
|
||||||
"nq-sdl",
|
"nq-sgl",
|
||||||
"nq-sdl32",
|
"nq-svga",
|
||||||
"nq-sgl",
|
"nq-wgl",
|
||||||
"nq-svga",
|
"nq-x11",
|
||||||
"nq-wgl",
|
"nq-server",
|
||||||
"nq-x11",
|
"qw-client-3dfx",
|
||||||
"nq-server",
|
"qw-client-ggi",
|
||||||
"qw-client-3dfx",
|
"qw-client-glx",
|
||||||
"qw-client-ggi",
|
"qw-client-mgl",
|
||||||
"qw-client-glx",
|
"qw-client-sdl",
|
||||||
"qw-client-mgl",
|
"qw-client-sdl32",
|
||||||
"qw-client-sdl",
|
"qw-client-sgl",
|
||||||
"qw-client-sdl32",
|
"qw-client-svga",
|
||||||
"qw-client-sgl",
|
"qw-client-wgl",
|
||||||
"qw-client-svga",
|
"qw-client-x11",
|
||||||
"qw-client-wgl",
|
"qw-master",
|
||||||
"qw-client-x11",
|
"qw-server"
|
||||||
"qw-master",
|
);
|
||||||
"qw-server"
|
program_doc_list ("QuakeForge 0.5", $program_list, "quakeforge");
|
||||||
);
|
?>
|
||||||
program_doc_list ("QuakeForge 0.5", $program_list, "quakeforge");
|
<BR>
|
||||||
?></TD>
|
<?
|
||||||
</TR>
|
$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">
|
program_doc_list ("QuakeForge 0.3", $program_list, "");
|
||||||
<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>
|
|
||||||
|
|
||||||
|
?>
|
||||||
<?
|
<?
|
||||||
require("parts/postamble.php"); // Finish this sucker up
|
require("parts/postamble.php"); // Finish this sucker up
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
Loading…
Reference in a new issue