mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 07:11:43 +00:00
9e6f75ccbd
PHP 7 doesn't like the old short tags we were using (it's possible to re-enable them, but won't be for version 8, so we might as well switch now), and the old MySQL APIs are now gone entirely, replaced with something different. This should make everything work at least as well as it used to. Also, one file used to be checked in with CRLF line endings. ??
44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php // Preamble
|
|
$pageName = "Progress";
|
|
$currPage = "progress"; // Name of the page, for the menu
|
|
require "parts/preamble.php"; // Load most of document
|
|
?>
|
|
<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0">
|
|
<TR vAlign=top>
|
|
<TD colSpan="2">
|
|
<?php
|
|
need ('graph table');
|
|
|
|
function progressKey() // Display key for progress bar
|
|
{
|
|
echo '<TR><TD> </TD><TD> </TD><TD align="center">' .
|
|
'<IMG src="/img/graph/ProgressBar.desc.png" ALT="0-33% Hackers, 34-67% Developers, 68-100% Users">' .
|
|
'</TD><TD> </TD><TD align="left" ></TD></TR>';
|
|
}
|
|
|
|
function progressMeter( $name, $pct, $comments )
|
|
{
|
|
$result = '';
|
|
$result .= '<TR><TD noWrap class="progress" align="right">' . $name . '</TD><TH> </TH>';
|
|
$result .= '<TD noWrap align="center" vAlign="middle"><IMG src="/img/blank.gif" height="1" width="1" alt="' . $pct . '% Complete">';
|
|
$result .= barGraph( $pct );
|
|
$result .= '</TD><TH> </TH><TD class="progress" align="left">' . $comments . '</TD></TR>';
|
|
echo $result;
|
|
}
|
|
|
|
tableHeader("100%", 'black');
|
|
progressKey();
|
|
// Software targets
|
|
progressMeter ('SDL', 96, 'Cross-platform software standard');
|
|
progressMeter ('SVGAlib', 98, 'Working properly');
|
|
progressMeter ('X11', 98, 'Working properly');
|
|
// OpenGL targets
|
|
progressMeter ('3Dfx', 85, 'Working properly');
|
|
progressMeter ('GLX', 98, 'Working well');
|
|
progressMeter ('SDL-GL', 96, 'New cross-platform OpenGL standard');
|
|
progressKey ();
|
|
tableFooter ();
|
|
?>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|