Some layout and style changes

This commit is contained in:
FractalParadigm 2025-03-15 18:01:19 -04:00
parent 578326cb03
commit 00cab61c65
7 changed files with 41 additions and 21 deletions

View File

@ -33,11 +33,12 @@ function getIDfromName($name) {
<div id="tourneyEditPanel">
<h2>TOURNEY EDITING</h2>
<p>Edit tournaments here</p>
<hr>
<hr class="regularLine">
<p></p>
<div class="tourneyListPanel">
<p class="tournamentIDCol"><b>ID</b></p>
<p class="tournamentDateCol"><b><span style="font-size: 0.78em;">YYYY-MM-DD</span></b></p>
<p class="tournamentNameCol"><b>Name</b></p>
<p class="editTournamentCol">&nbsp;</p>
<p class="deleteTournamentCol">&nbsp;</p>
@ -51,7 +52,7 @@ function getIDfromName($name) {
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// Grab the list of users from the user list
$sqlGetUserData = $conn->prepare("SELECT tournamentID,tournamentUID,tournamentName FROM " . $tournamentDataTableName . " ORDER BY tournamentID DESC");
$sqlGetUserData = $conn->prepare("SELECT tournamentID,tournamentUID,tournamentName,tournamentDate FROM " . $tournamentDataTableName . " ORDER BY tournamentID DESC");
// Execute SQL query
@ -70,8 +71,10 @@ function getIDfromName($name) {
$tournamentID = $result["tournamentID"];
$tournamentUID = $result["tournamentUID"];
$tournamentName = $result["tournamentName"];
$tournamentDate = $result["tournamentDate"];
echo "<p class=\"tournamentIDCol\">$tournamentID</p>";
echo "<p class=\"tournamentDateCol\">$tournamentDate</p>";
echo "<p class=\"tournamentNameCol\"><a href=\"/tournament/$tournamentUID\" class=\"plainLinkBlack\" onclick=\"redirect('this', '/tournament/$tournamentUID')\">$tournamentName</a></p>";
echo "<p class=\"editTournamentCol\"><a href=\"/tournament/edit?tournamentID=$tournamentID\" class=\"plainLinkBlack\" onclick=\"redirect('this', '/tournament/edit.php?tournamentID=$tournamentID')\">EDIT</a></p>";
echo "<p class=\"deleteTournamentCol\">DELETE</p>";

View File

@ -11,6 +11,7 @@ session_start();
<link rel="stylesheet" href="/styles/primary.css" />
<link rel="stylesheet" href="/styles/data_display.css" />
<link rel="stylesheet" href="/styles/tourney_results.css" />
<link rel="stylesheet" href="/styles/tourney_cards.css" />
<script src="/scripts/tools.js"></script>
<script src="/scripts/results.js"></script>
<script>verifyPageInFrame()</script>

View File

@ -239,13 +239,17 @@
.divisionResultsTableLeft {
text-align: left;
width: 80%;
width: 70%;
cursor: pointer;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.divisionResultsTableRight {
text-align: right;
width: 14%;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.divisionResultsTable {

View File

@ -182,18 +182,3 @@
visibility: hidden;
}
/*
This section affects the auto-complete menu for player names
*/
.ui-menu {
background-color: rgba(255, 255, 255, 0.6);
border: 1px solid black;
border-radius: 2px;
}
.ui-autocomplete {
max-height: 200px;
overflow-y: scroll;
overflow-x: hidden;
width: 120px;
}

View File

@ -237,6 +237,23 @@ margin-left: -90px;
}
/*
This section affects the auto-complete menu for player names
*/
.ui-menu {
background-color: rgba(255, 255, 255, 0.6);
border: 1px solid black;
border-radius: 2px;
}
.ui-autocomplete {
max-height: 200px;
overflow-y: scroll;
overflow-x: hidden;
width: 120px;
}

View File

@ -187,19 +187,29 @@
font-weight: bold;
}
/* EDITING PAGE */
.tourneyListPanel {
display: flex;
flex-direction: row;
flex-wrap: wrap;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
width: 98%;
width: 99%;
justify-content: center;
margin: auto;
border-collapse: collapse;
}
.tournamentIDCol {
width: 2.25em;
width: 2.5em;
text-align: center;
outline: 1px solid black;
margin: auto;
margin-left: 1px;
margin-top: 1px;
}
.tournamentDateCol {
width: 6em;
text-align: center;
outline: 1px solid black;
margin: auto;

View File

@ -6,7 +6,7 @@
}
#userEditPanel {
width: 500px;
min-height: 400px;
min-height: 600px;
margin: auto;
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;