- Changed relative HTML file paths to absolute
- Renamed 'trojan.js' to 'tools.js' for future compatibility - Added placeholder team names to the game-adding screen
This commit is contained in:
parent
acfaf48742
commit
db06888ecb
@ -4,10 +4,9 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../styles/primary.css" />
|
||||
<link rel="stylesheet" href="../styles/admin.css" />
|
||||
<link rel="stylesheet" href="../styles/admin_nav.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/admin.css" />
|
||||
<link rel="stylesheet" href="/styles/admin_nav.css" />
|
||||
<title>TROJAN'S GENERAL DATA SHIT</title>
|
||||
</head>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles//db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<title>no title</title>
|
||||
</head>
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles/db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<title>no title</title>
|
||||
</head>
|
||||
|
||||
|
@ -59,14 +59,13 @@ try { // Try opening the SQL database connection
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<?php include ("../db_config.php");?> <!-- Our password-length variable is stored here -->
|
||||
<link rel="stylesheet" href="../../styles/primary.css" />
|
||||
<link rel="stylesheet" href="../../styles/admin.css" />
|
||||
<link rel="stylesheet" href="../../styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="../../styles/game_management.css" />
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/admin.css" />
|
||||
<link rel="stylesheet" href="/styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="/styles/game_management.css" />
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.14.1/themes/base/jquery-ui.css">
|
||||
<script src="../../scripts/game_management.js"></script>
|
||||
<script src="../../scripts/trojan.js"></script>
|
||||
<script src="/scripts/game_management.js"></script>
|
||||
<script src="/scripts/tools.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
||||
<script src="https://code.jquery.com/ui/1.14.1/jquery-ui.js"></script>
|
||||
<title>GAME ADDING FORM</title>
|
||||
@ -79,14 +78,14 @@ try { // Try opening the SQL database connection
|
||||
});
|
||||
} );
|
||||
$( function() {
|
||||
var countries = ["Afghanistan","Albania","Algeria","Andorra","Angola","Anguilla","Antigua & Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia & Herzegovina","Botswana","Brazil","British Virgin Islands","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central Arfrican Republic","Chad","Chile","China","Colombia","Congo","Cook Islands","Costa Rica","Cote D Ivoire","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Polynesia","French West Indies","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guam","Guatemala","Guernsey","Guinea","Guinea Bissau","Guyana","Haiti","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauro","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","North Korea","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romania","Russia","Rwanda","Saint Pierre & Miquelon","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","St Kitts & Nevis","St Lucia","St Vincent","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor L'Este","Togo","Tonga","Trinidad & Tobago","Tunisia","Turkey","Turkmenistan","Turks & Caicos","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Virgin Islands (US)","Yemen","Zambia","Zimbabwe"];
|
||||
var tournamentList = <?php echo json_encode($tourneyList); ?>;
|
||||
$("#tourneyName").autocomplete({
|
||||
source: tournamentList,
|
||||
// Change the direction of the autoselector if it's gonna hit the bottom
|
||||
position: {
|
||||
collision: "flip"
|
||||
},
|
||||
// This change is supposed to only allow listed items to be chosen
|
||||
// This only allows listed items to be chosen
|
||||
change: function (event, ui) {
|
||||
if(!ui.item) {
|
||||
$("#tourneyName").val("");
|
||||
|
@ -56,14 +56,13 @@ try { // Try opening the SQL database connection
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<?php include ("../db_config.php");?> <!-- Our password-length variable is stored here -->
|
||||
<link rel="stylesheet" href="../../styles/primary.css" />
|
||||
<link rel="stylesheet" href="../../styles/admin.css" />
|
||||
<link rel="stylesheet" href="../../styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="../../styles/tourney_management.css" />
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/admin.css" />
|
||||
<link rel="stylesheet" href="/styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="/styles/tourney_management.css" />
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.14.1/themes/base/jquery-ui.css">
|
||||
<script src="../../scripts/tourney_management.js"></script>
|
||||
<script src="../../scripts/trojan.js"></script>
|
||||
<script src="/scripts/tourney_management.js"></script>
|
||||
<script src="/scripts/tools.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
||||
<script src="https://code.jquery.com/ui/1.14.1/jquery-ui.js"></script>
|
||||
<title>TOURNAMENT ADDING FORM</title>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles/db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<title>TROJAN'S GENERAL DATA SHIT</title>
|
||||
</head>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles/db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<title>no title</title>
|
||||
</head>
|
||||
|
@ -4,9 +4,9 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles/admin.css" />
|
||||
<link rel="stylesheet" href="../../styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="../../styles/db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/admin.css" />
|
||||
<link rel="stylesheet" href="/styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<title>TROJAN'S GENERAL DATA SHIT</title>
|
||||
</head>
|
||||
|
@ -8,9 +8,9 @@ session_start();
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../styles/primary.css" />
|
||||
<link rel="stylesheet" href="../styles/admin.css" />
|
||||
<script src="../scripts/trojan.js"></script>
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/admin.css" />
|
||||
<script src="/scripts/tools.js"></script>
|
||||
<title>ADMIN PANEL - Trojan's Trophy Room</title>
|
||||
</head>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles/db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<title>no title</title>
|
||||
</head>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<title>no title</title>
|
||||
</head>
|
||||
|
||||
|
@ -4,11 +4,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles/admin.css" />
|
||||
<link rel="stylesheet" href="../../styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="../../styles/user_management.css" />
|
||||
<link rel="stylesheet" href="/styles/admin.css" />
|
||||
<link rel="stylesheet" href="/styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="/styles/user_management.css" />
|
||||
<?php include ("../db_config.php");?> <!-- Our password-length variable is stored here -->
|
||||
<script src="../../scripts/user_management.js"></script>
|
||||
<script src="/scripts/user_management.js"></script>
|
||||
<title>ADMIN CREATION FORM</title>
|
||||
</head>
|
||||
|
||||
|
@ -4,11 +4,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="../../styles/admin.css" />
|
||||
<link rel="stylesheet" href="../../styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="../../styles/user_management.css" />
|
||||
<link rel="stylesheet" href="/styles/admin.css" />
|
||||
<link rel="stylesheet" href="/styles/admin_nav.css" />
|
||||
<link rel="stylesheet" href="/styles/user_management.css" />
|
||||
<?php include ("../db_config.php");?> <!-- Our password-length variable is stored here -->
|
||||
<script src="../../scripts/user_management.js"></script>
|
||||
<script src="/scripts/user_management.js"></script>
|
||||
<title>USER CREATION FORM</title>
|
||||
</head>
|
||||
|
||||
|
@ -7,8 +7,8 @@ session_start();
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="styles/primary.css" />
|
||||
<link rel="stylesheet" href="styles/data.css" />
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/data.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<title>TROJAN'S GENERAL DATA SHIT</title>
|
||||
</head>
|
||||
|
@ -7,8 +7,8 @@ session_start();
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="styles/primary.css" />
|
||||
<script src="scripts/trojan.js"></script>
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<script src="scripts/tools.js"></script>
|
||||
<title>Trojan's Trophy Room</title>
|
||||
</head>
|
||||
|
||||
@ -36,6 +36,7 @@ session_start();
|
||||
echo "<a href=\"admin/data_management/game_form.php \" target=\"dataFrame\" class=\"subNavLink\">ADD GAME DETAILS</a>";
|
||||
// Anything we need to show to logged in admins will be below
|
||||
if (isset($_SESSION["isAdmin"]) && $_SESSION["isAdmin"] == 1){
|
||||
echo "<a href=\"admin/data_management/tourney_form.php \" target=\"dataFrame\" class=\"subNavLink\">ADD A TOURNEY</a>";
|
||||
echo "<a href=\"admin \" class=\"subNavLink\">ADMIN PANEL</a>";
|
||||
}
|
||||
} else {
|
||||
|
@ -4,9 +4,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="styles/primary.css" />
|
||||
<link rel="stylesheet" href="styles/data.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/data.css" />
|
||||
<title>INTERMEDIATE DIVISION DATA</title>
|
||||
</head>
|
||||
|
||||
|
@ -9,9 +9,8 @@ session_start();
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="db_management.css" />
|
||||
<link rel="stylesheet" href="login.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<link rel="stylesheet" href="/styles/db_management.css" />
|
||||
<link rel="stylesheet" href="/styles/login.css" />
|
||||
<title>no title</title>
|
||||
</head>
|
||||
|
||||
|
@ -8,9 +8,9 @@ $redirect = $_GET["redirect"];
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="styles/primary.css" />
|
||||
<link rel="stylesheet" href="styles/login.css" />
|
||||
<script src="admin/user_management/user_management.js"></script>
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/login.css" />
|
||||
<script src="/scripts/user_management.js"></script>
|
||||
<title>ADMIN PANEL - Trojan's Trophy Room</title>
|
||||
</head>
|
||||
|
||||
|
@ -4,9 +4,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="styles/primary.css" />
|
||||
<link rel="stylesheet" href="styles/data.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/data.css" />
|
||||
<title>MAIN DIVISION DATA</title>
|
||||
</head>
|
||||
|
||||
|
@ -4,9 +4,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="styles/primary.css" />
|
||||
<link rel="stylesheet" href="styles/data.css" />
|
||||
<!-- <script src="trojan.js"></script>-->
|
||||
<link rel="stylesheet" href="/styles/primary.css" />
|
||||
<link rel="stylesheet" href="/styles/data.css" />
|
||||
<title>OPEN DIVISION DATA</title>
|
||||
</head>
|
||||
|
||||
|
@ -37,9 +37,9 @@ function addPlayers(){
|
||||
awayteamName = teamNames.insertCell(2);
|
||||
|
||||
|
||||
hometeamName.innerHTML = "<input type=\"text\" name=\"blueTeamName\" class=\"teamInput\" maxlength=\"35\" tabindex=\"1\">";
|
||||
hometeamName.innerHTML = "<input type=\"text\" name=\"blueTeamName\" class=\"teamInput\" maxlength=\"35\" placeholder=\"Blue\" tabindex=\"1\">";
|
||||
teamNameHeader.innerHTML = "<p id=\"teamNameHeader\"><pre>TEAM\nNAME</pre></p>";
|
||||
awayteamName.innerHTML = "<input type=\"text\" name=\"orangeTeamName\" class=\"teamInput\" maxlength=\"35\" tabindex=\"1\">";
|
||||
awayteamName.innerHTML = "<input type=\"text\" name=\"orangeTeamName\" class=\"teamInput\" maxlength=\"35\" placeholder=\"Orange\" tabindex=\"1\">";
|
||||
|
||||
|
||||
// Create the subheader
|
||||
@ -59,7 +59,7 @@ function addPlayers(){
|
||||
var bluePlayer = row.insertCell(0);
|
||||
var playerNum = row.insertCell(1);
|
||||
var orangePlayer = row.insertCell(2);
|
||||
bluePlayer.innerHTML = "<input type=\"text\" name=\"bluePlayer" + i + "\" id=\"" + i + "\" class=\"playerInput\" maxlength=\"30\" tabindex=\"2\">";
|
||||
bluePlayer.innerHTML = "<input type=\"text\" name=\"bluePlayer" + i + "\" id=\"" + i + "\" class=\"playerInput\" maxlength=\"30\" tabindex=\"2\">";
|
||||
playerNum.innerHTML = "- " + i + " -";
|
||||
orangePlayer.innerHTML = "<input type=\"text\" name=\"orangePlayer" + i + "\" id=\"" + i + "\" class=\"playerInput\" maxlength=\"30\" tabindex=\"3\">";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user