include 'authenticate.php'; function printSortLink($tool, $column, $orderspec, $genre, $platform) { print ''; } include 'pageheader.php'; /* Get total number of entrants */ $queryTotalEntrants = 'SELECT COUNT(DISTINCT EntrantID) FROM CompoGames'; $resultsetr = mysql_query($queryTotalEntrants, $dbconnect); $totalEntrants = 0; while($row = mysql_fetch_row($resultsetr)) { $totalEntrants = $row[0]; } /* Get total number of games */ $queryTotalCount = 'SELECT COUNT(*) FROM CompoGames'; $resultsetx = mysql_query($queryTotalCount, $dbconnect); $totalGames = 0; while($row = mysql_fetch_row($resultsetx)) { $totalGames = $row[0]; } /* Get total number of completed games */ $queryCompleteCount = 'SELECT COUNT(*) FROM CompoGames, CompoStatus WHERE CompoGames.StatusID = CompoStatus.ID AND CompoStatus.StatusPercent = "100%"'; $resultsetc = mysql_query($queryCompleteCount, $dbconnect); $totalComplete = 0; while($row = mysql_fetch_row($resultsetc)) { $totalComplete = $row[0]; } // Print page masthead print '
| ENTRIES | |||||||||
| ' . $totalEntrants . ' Entrants - ' . $totalGames . ' Games - ' . $totalComplete . ' Completed | |||||||||
| '; } } print " | |||||||||
| '; } else { print ' | ';
}
if($columnName == 'Game')
{
print '';
print ($row[$i] == '' ? ' ' : stripslashes($row[$i]));
print '';
}
else if($columnName == 'Entrant')
{
if($orderby == '' || $orderby == 'Entrant')
{
print ($row[$i] == $prevEntrant ? ' ' : stripslashes($row[$i]));
}
else
{
print $row[$i];
}
}
else if($columnName == 'Links')
{
if($row[$i] != null && $row[$i] != '')
{
print ' | ';
}
print '||||||||