several fixes to cmd.php and cvar.php

rewrite documentation.php (I'll have to rethink it due to the slow rendering
in netscape)
add a link to the docs form the 0.5 section of files.php
This commit is contained in:
Bill Currie 2001-11-06 09:43:55 +00:00
parent 354eede4ee
commit 1d2c2c1726
4 changed files with 106 additions and 41 deletions

View file

@ -1,5 +1,5 @@
<? // Preamble>
$pageName = "CVAR Documentation for " . $program;
$pageName = "Command Documentation for " . $program;
$focused = "none"; // Dock icon name to gets a border
require("parts/preamble.php"); // Load most of document
?>
@ -9,7 +9,7 @@
function printRow ($name, $description)
{
echo '<TR><TD>' . $name . '</TD><TD>' . $description . '</TD></TR>';
echo '<TR vAlign="top"><TD>' . $name . '</TD><TD>' . $description . '</TD></TR>';
}
function printArray ($cmd_list, $program)

View file

@ -9,7 +9,7 @@
function printRow ($flags, $name, $description)
{
echo '<TR><TD>' . $flags . '</TD><TD>' . $name . '</TD><TD>' . $description . '</TD></TR>';
echo '<TR vAlign="top"><TD>' . $flags . '</TD><TD>' . $name . '</TD><TD>' . $description . '</TD></TR>';
}
function printArray ($cvar_list, $program)

View file

@ -6,45 +6,110 @@
?>
<?
$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"
);
?>
<P>cvar documentation</P>
<UL>
<?
reset ($program_list);
while (list (, $cdl) = each ($program_list)) {
if (is_file ('doc/' . $cdl . '-cvar.txt')) {
echo '<LI>';
echo '<A href="cvar.php?program=' . $cdl . '">' . $cdl . '</A>';
echo '</LI>';
}
function doc_list ($title, $list, $type)
{
tableBoxHeader (featureBgColor, featureHeadColor);
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><?
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;
}
}
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><?
tableBoxFooter ();
}
?>
</UL>
<P>command documentation</P>
<UL>
<?
reset ($program_list);
while (list (, $cdl) = each ($program_list)) {
if (is_file ('doc/' . $cdl . '-cmd.txt')) {
echo '<LI>';
echo '<A href="cmd.php?program=' . $cdl . '">' . $cdl . '</A>';
echo '</LI>';
}
}
?>
</UL>
<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-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-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>
<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>
<?
require("parts/postamble.php"); // Finish this sucker up

View file

@ -38,7 +38,7 @@ sometimes make revisions of the stable branch to fix known bugs.
<P>This is our new development tree (we're back to &quot;quakeforge&quot;), where we're again making an attempt to
merge Quake and QuakeWorld ... but this time, it's much better. :) It's under
heavy development <STRONG>(Wear your hard hat!)</STRONG>, and will eventually provide the 0.6 versions of
QuakeForge.
QuakeForge. Please check the <a href="documentation.php">docs</a>.
<P>QuakeForge: Newtree, Version 0.5.0
<UL>