Slight layout and style changes

This commit is contained in:
FractalParadigm 2025-03-15 07:09:55 -04:00
parent 6dc7256e92
commit 9f3306dbd6
3 changed files with 9 additions and 7 deletions

View File

@ -119,8 +119,7 @@ session_start();
<div id="generalResultsDisplayPanel" style="display:block;">
<h2>General Information</h2>
<div id="infoNav"><p class="infoLink" onclick="toggleInformationDisplay();refreshTourneyDisplay();resizeIframe(parent.document.getElementById('dataFrame'));">Recent Tourney Results</p></div>
<p class="newLine">&nbsp;</p>
<hr class="tableLine newLine">
<hr class="tableLine">
<div id="generalResultsTable">
<p class="generalResultsTableLeft">Number of registered users:</p>
<p class="generalResultsTableRight textBold"><?php echo $numUsers; ?></p>

View File

@ -20,8 +20,8 @@
.tourneyCard {
border: 2px solid rgb(0, 0, 255);
border-radius: 20px;
box-shadow: 0px 2px 4px;
width: 100%;
box-shadow: 0 0 6px;
width: 99%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
@ -38,6 +38,9 @@
padding-left: 10px;
padding-right: 10px;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.tourneyCardLeft {

View File

@ -13,9 +13,9 @@ try { // Try opening the SQL database connection
// If we want all the data, we don't need to select a division in the SQL query
if ($division == "all") {
$sqlGetTourneyInfo = $conn->prepare("SELECT tournamentName,tournamentDate,tournamentDivision,numPlayers,winningTeamName,winner1,winner2,winner3,winner4 FROM " . $tournamentDataTableName . " ORDER BY tournamentDate DESC LIMIT $tourneyCardLimit");
$sqlGetTourneyInfo = $conn->prepare("SELECT tournamentID,tournamentName,tournamentDate,tournamentDivision,numPlayers,winningTeamName,winner1,winner2,winner3,winner4 FROM " . $tournamentDataTableName . " ORDER BY tournamentDate DESC LIMIT $tourneyCardLimit");
} else {
$sqlGetTourneyInfo = $conn->prepare("SELECT tournamentName,tournamentDate,tournamentDivision,numPlayers,winningTeamName,winner1,winner2,winner3,winner4 FROM " . $tournamentDataTableName . " WHERE tournamentDivision='" . $division . "' ORDER BY tournamentDate DESC LIMIT $tourneyCardLimit");
$sqlGetTourneyInfo = $conn->prepare("SELECT tournamentID,tournamentName,tournamentDate,tournamentDivision,numPlayers,winningTeamName,winner1,winner2,winner3,winner4 FROM " . $tournamentDataTableName . " WHERE tournamentDivision='" . $division . "' ORDER BY tournamentDate DESC LIMIT $tourneyCardLimit");
}
$sqlGetTourneyInfo->execute();
@ -47,7 +47,7 @@ $tourneyResults = $sqlGetTourneyInfo->fetchAll(PDO::FETCH_ASSOC);
foreach ($tourneyResults as $result) {
$tourneyName = $result["tournamentName"];
$tourneyDate = $result["tournamentDate"];
$division = $result["tournamentDivision"];
$division = ucfirst($result["tournamentDivision"]);
$numPlayers = $result["numPlayers"];
$winningTeamName = $result["winningTeamName"];
$winner1 = $result["winner1"];