This commit is contained in:
Jeff Teunissen 2000-03-08 22:59:34 +00:00
parent c387611169
commit 999b190499
6 changed files with 71 additions and 57 deletions

View file

@ -34,7 +34,8 @@
'</DL></TD></TR>'; '</DL></TD></TR>';
} }
tableBoxHeader("Contestants", 1, 'white', '#737b9c', 'black'); tableBoxHeader( $tableHeadColor, 'black' );
tableTitle( 'Contestants', 1, $tableHeadColor );
Contestant( 'Mathieu Helie', 'matt@solarweb.hypermart.net', 'images/quakeforge12.png', 'To Be Announced'); Contestant( 'Mathieu Helie', 'matt@solarweb.hypermart.net', 'images/quakeforge12.png', 'To Be Announced');
Contestant( 'Nick Rusnov', 'nick@intus.net', 'images/qforgec1.png', 'To Be Announced'); Contestant( 'Nick Rusnov', 'nick@intus.net', 'images/qforgec1.png', 'To Be Announced');
Contestant( 'Nick Rusnov', 'nick@intus.net', 'images/qforgec2.png', 'To Be Announced'); Contestant( 'Nick Rusnov', 'nick@intus.net', 'images/qforgec2.png', 'To Be Announced');

View file

@ -14,11 +14,11 @@
?> ?>
<TD width="100%"> <TD width="100%">
<?php <?php
$focused = "home"; // name of focused icon $focused = "none"; // name of focused icon
include( "parts/topmain.php" ); // Display content top table include( "parts/topmain.php" ); // Display content top table
?> ?>
<P> <P>
The QuakeForge project leader, Nelson Rush, contacted lead id Software programmer, John Carmack, and asked if QuakeForge had permission to use the Quake(R) logo. John wrote back saying that id Software's CEO had said that we are not allowed to use the logo for anything related to our project. The QuakeForge project leader, Nelson Rush, contacted lead id Software programmer, John Carmack, and asked if QuakeForge had permission to use the Quake&reg; logo. John wrote back saying that id Software's CEO had said that we are not allowed to use the logo for anything related to our project.
<P> <P>
As a result, QuakeForge needs a new logo. The new logo will be used on the website, t-shirts, bumper stickers, advertisements, etc. Contest ends on Feb. 29, 2000. As a result, QuakeForge needs a new logo. The new logo will be used on the website, t-shirts, bumper stickers, advertisements, etc. Contest ends on Feb. 29, 2000.
<P> <P>

View file

@ -18,32 +18,31 @@
include( "parts/topmain.php" ); // Display content top table include( "parts/topmain.php" ); // Display content top table
?> ?>
<P> <P>
QuakeForge's aim is to create a long lasting project to work on developing and extending the Quake&reg; source release (and any future releases) while maintaining backwards compatibility with the original Quake and QuakeWorld&reg;. Our international team of developers is working hard to reach this goal, and we believe we are succeeding. QuakeForge's aim is to create a long-lasting project to work on developing and extending the Quake&reg; source release (and any future releases) while maintaining backwards compatibility with the original Quake and QuakeWorld&reg;. Our international team of developers is working hard to reach this goal, and we believe we are succeeding.
<P> <P>
<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0"> <TABLE width="100%" cellSpacing="0" cellPadding="0" border="0">
<TR vAlign=top> <TR vAlign=top>
<TD colSpan="2"> <TD colSpan="2">
<?php <?php
// $conn = pg_connect("dbname=www user=deek"); tableBoxHeader( $tableHeadColor, 'black' );
tableTitle( 'Latest News', 1, $tableHeadColor );
// $conn = mysql_pconnect( localhost, "quake", "password" );
if ( $conn ) { if ( $conn ) {
$result = pg_exec( $conn, "SET DateStyle to 'ISO'" );
$query = 'SELECT n_date, n_user, n_news FROM news_main ' . $query = 'SELECT n_date, n_user, n_news FROM news_main ' .
'WHERE n_date > ( \'now\' + \'1 month ago\'::reltime )::date ' . 'WHERE n_date > ( \'now\' + \'1 month ago\'::reltime )::date ' .
'ORDER BY n_date USING >'; 'ORDER BY n_date USING >';
$result = pg_exec( $conn, $query ); $result = mysql_query( $query, $conn );
$numrows = pg_numrows( $result ); $numRows = mysql_num_rows( $result );
tableBoxHeader("Latest News", 1, 'white', '#737b9c', 'black'); if ( $numRows > 0 ) {
if ($numrows >= 1) { for ( $i = 0 ; $i < $numRows ; $i++ ) {
for ( $i = 0 ; $i < $numrows ; $i++ ) {
list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i ); list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i );
tableNewsItem( $n_date, $n_user, $n_news ); tableNewsItem( $n_date, $n_user, $n_news );
} }
} else { } else {
tableNewsItem( 'Now', 'nobody', 'No current news!' ); tableNewsItem( 'Now', 'nobody', 'No current news!' );
} }
$result = pg_close($conn); $result = mysql_close( $conn );
} else { } else {
tableBoxHeader("Latest News", 1, 'white', '#737b9c', 'black');
$newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' . $newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' .
'<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.'; '<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.';
tableNewsItem( '06 Mar 2000', 'Mercury', $newsItem ); tableNewsItem( '06 Mar 2000', 'Mercury', $newsItem );

View file

@ -22,25 +22,23 @@
<TR vAlign=top> <TR vAlign=top>
<TD colSpan="2"> <TD colSpan="2">
<?php <?php
// $conn = pg_connect("dbname=www user=deek"); tableBoxHeader( $tableHeadColor, 'black' );
tableTitle( 'All News', 1, $tableHeadColor );
// $conn = mysql_pconnect( localhost, "quake", "password" );
if ( $conn ) { if ( $conn ) {
$result = pg_exec( $conn, "SET DateStyle to 'ISO'" );
$query = 'SELECT n_date, n_user, n_news FROM news_main ORDER BY n_date USING >'; $query = 'SELECT n_date, n_user, n_news FROM news_main ORDER BY n_date USING >';
$result = pg_exec( $conn, $query ); $result = mysql_query( $query, $conn );
$numrows = pg_numrows( $result ); $numRows = mysql_num_rows( $result );
tableBoxHeader("All News", 1, 'white', '#737b9c', 'black'); if ( $numRows > 0 ) {
if ($numrows >= 1) { for ( $i = 0 ; $i < $numRows ; $i++ ) {
for ( $i = 0 ; $i < $numrows ; $i++ ) {
list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i ); list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i );
tableNewsItem( $n_date, $n_user, $n_news ); tableNewsItem( $n_date, $n_user, $n_news );
} }
} else { } else {
tableNewsItem( 'Now', 'nobody', 'No news!' ); tableNewsItem( 'Now', 'nobody', 'No news!' );
} }
$result = pg_close($conn); $result = mysql_close( $conn );
} else { } else {
tableBoxHeader("All News", 1, 'white', '#737b9c', 'black');
$newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' . $newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' .
'<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.'; '<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.';
tableNewsItem('06 Mar 2000', 'Mercury', $newsItem); tableNewsItem('06 Mar 2000', 'Mercury', $newsItem);
@ -212,7 +210,7 @@
?> ?>
</TR> </TR>
<TR> <TR>
<TD COLSPAN="4"> <TD colSpan="4">
<?php <?php
include("parts/copyright.php"); include("parts/copyright.php");
?> ?>

View file

@ -1,4 +1,8 @@
<?php <?php
/* Helpful constants */
$tableHeadColor = '#737b9c';
$menuHeadColor = '#737b9c';
$menuBgColor = '#4b4f66';
/* Array functions */ /* Array functions */
// Search array for data // Search array for data
function inArray( $needle, $haystack ) function inArray( $needle, $haystack )
@ -68,18 +72,18 @@
echo '<A CLASS="menus" HREF="' . $url . '">' . $desc . '</A><BR>'; echo '<A CLASS="menus" HREF="' . $url . '">' . $desc . '</A><BR>';
} }
// Create a Menu Section header // Create a Menu Section header
function menuSectionHeader( $name, $fgColor , $bgColor ) function menuSectionHeader( $name, $fgColor , $bgColor, $intBgColor )
{ {
echo "\n<!-- menuSectionHeader(" . $name . ') -->'; echo "\n<!-- menuSectionHeader(" . $name . ') -->' .
echo '<TABLE cellSpacing="0" cellPadding="3" width="100%" border=0 bgColor="' . $bgColor . '">'; '<TABLE cellSpacing="0" cellPadding="3" width="100%" border=0 bgColor="' . $bgColor . '">' .
echo ' <TR bgColor="' . $color . '">'; ' <TR bgColor="' . $bgColor . '">' .
echo ' <TD align="center">'; ' <TD align="center">' .
echo ' <IMG src="/img/blank.gif" height="1" width="135" alt="" border="0"><BR>'; ' <IMG src="/img/blank.gif" height="1" width="135" alt="" border="0"><BR>' .
echo ' <SPAN class="titlebar"><FONT color="' . $fgColor . '">' . $name . '</FONT></SPAN>'; ' <SPAN class="titlebar">' . $name . '</SPAN>' .
echo ' </TD>'; ' </TD>' .
echo ' </TR>'; ' </TR>' .
echo ' <TR align="right" bgColor="#4b4f66">'; ' <TR align="right" bgColor="' . $intBgColor . '">' .
echo ' <TD>'; ' <TD>';
} }
// Create a Menu Section footer // Create a Menu Section footer
function menuSectionFooter() function menuSectionFooter()
@ -90,17 +94,12 @@
} }
/* Table functions */ /* Table functions */
// //
function tableBoxHeader( $name, $cols, $fgColor, $bgColor, $intBgColor ) function tableBoxHeader( $bgColor, $intBgColor )
{ {
echo '<TABLE cellSpacing="0" cellPadding="1" width="100%" border="0" bgColor="' . $bgColor . '">' . echo '<TABLE cellSpacing="0" cellPadding="1" width="100%" border="0" bgColor="' . $bgColor . '">' .
' <TR>' . ' <TR>' .
' <TD>' . ' <TD>' .
' <TABLE cellspacing="1" cellpadding="2" width="100%" border="0" bgcolor="' . $intBgColor . '">' . ' <TABLE cellspacing="1" cellpadding="2" width="100%" border="0" bgcolor="' . $intBgColor . '">';
' <TR bgColor="' . $bgColor . '" align="center">' .
' <TD colspan="' . $cols . '">' .
' <SPAN class="titlebar">' . $name . '</SPAN>' .
' </TD>' .
' </TR>';
} }
function tableBoxFooter() function tableBoxFooter()
@ -111,6 +110,15 @@
'</TABLE>'; '</TABLE>';
} }
function tableTitle($name, $cols, $bgColor)
{
echo ' <TR bgColor="' . $bgColor . '" align="center">' .
' <TD colspan="' . $cols . '">' .
' <SPAN class="titlebar">' . $name . '</SPAN>' .
' </TD>' .
' </TR>';
}
function tableHeader( $cols, $fgColor, $bgColor ) function tableHeader( $cols, $fgColor, $bgColor )
{ {
echo '<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0" bgColor="' . $bgColor . '">'; echo '<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0" bgColor="' . $bgColor . '">';
@ -130,8 +138,8 @@
function tableSpacer( $height, $width, $cols, $bgColor ) function tableSpacer( $height, $width, $cols, $bgColor )
{ {
echo '<TD colSpan="' . $cols . '" width="' . $width . '" bgColor="' . $bgColor . '">'; echo '<TD colSpan="' . $cols . '" width="' . $width . '" bgColor="' . $bgColor . '">' .
echo ' <IMG src="/img/misc/blank.gif" height="' . $height . '" width="' . $width . '" border="0" alt="">'; ' <IMG src="/img/misc/blank.gif" height="' . $height . '" width="' . $width . '" border="0" alt="">' .
echo '</TD>'; '</TD>';
} }
?> ?>

View file

@ -3,7 +3,9 @@
<?php <?php
function qfMenu() { function qfMenu() {
menuSectionHeader( "QuakeForge", 'white', '#737B9C'); global $menuHeadColor, $menuBgColor;
menuSectionHeader( "QuakeForge", 'white', $menuHeadColor, $menuBgColor );
menuItemLink( "/", "Homepage" ); menuItemLink( "/", "Homepage" );
menuItemLink( "/news.php", "News Archive" ); menuItemLink( "/news.php", "News Archive" );
menuItemLink( "http://sourceforge.net/project/filelist.php?group_id=882", "Downloads" ); menuItemLink( "http://sourceforge.net/project/filelist.php?group_id=882", "Downloads" );
@ -13,7 +15,9 @@
} }
function develMenu() { function develMenu() {
menuSectionHeader( "Developers", 'white', '#737B9C'); global $menuHeadColor, $menuBgColor;
menuSectionHeader( "Developers", 'white', $menuHeadColor, $menuBgColor );
menuItemLink( "http://sourceforge.net/cvs/?group_id=882", "CVS Access" ); menuItemLink( "http://sourceforge.net/cvs/?group_id=882", "CVS Access" );
menuItemLink( "/devtools.php", "Developer Tools" ); menuItemLink( "/devtools.php", "Developer Tools" );
menuItemLink( "/progress.php", "State of the Code" ); menuItemLink( "/progress.php", "State of the Code" );
@ -24,7 +28,9 @@
} }
function sfMenu() { function sfMenu() {
menuSectionHeader( "SourceForge", 'white', '#737B9C'); global $menuHeadColor, $menuBgColor;
menuSectionHeader( "SourceForge", 'white', $menuHeadColor, $menuBgColor );
menuItemLink( "http://sourceforge.net/", "Homepage" ); menuItemLink( "http://sourceforge.net/", "Homepage" );
menuItemLink( "http://sourceforge.net/snippet/", "Code Snippet Library" ); menuItemLink( "http://sourceforge.net/snippet/", "Code Snippet Library" );
menuItemLink( "http://sourceforge.net/softwaremap/", "Software Map" ); menuItemLink( "http://sourceforge.net/softwaremap/", "Software Map" );
@ -36,7 +42,9 @@
} }
function searchMenu() { function searchMenu() {
menuSectionHeader( "Search", 'white', '#737B9C'); global $menuHeadColor, $menuBgColor;
menuSectionHeader( "Search", 'white', $menuHeadColor, $menuBgColor );
echo '<CENTER><FONT size="-2">' . echo '<CENTER><FONT size="-2">' .
'<FORM action="/search/" method="POST">' . '<FORM action="/search/" method="POST">' .
' <SELECT name="type_of_search">' . ' <SELECT name="type_of_search">' .