-
Notifications
You must be signed in to change notification settings - Fork 1
/
tournament.php
120 lines (113 loc) · 3.85 KB
/
tournament.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
require_once __DIR__ . "/sportsData.php";
session_start();
$sports = findAllSport();
?>
<!DOCTYPE html>
<html>
<head>
<title>Tournament</title>
<link rel="stylesheet" type="text/css" href="./public/css/tCSS.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<!-- Slideshow container -->
<div class="slideshow-container">
<!-- Full-width images with number and caption text -->
<div class="mySlides fade">
<div class="numbertext">1 / 7</div>
<img src="./public/images/photo11.jpg" />
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 7</div>
<img src="./public/images/photo22.jpg" />
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 7</div>
<img src="./public/images/photo33.jpg" />
</div>
<div class="mySlides fade">
<div class="numbertext">4 / 7</div>
<img src="./public/images/photo44.jpg" />
</div>
<div class="mySlides fade">
<div class="numbertext">5 / 7</div>
<img src="./public/images/photo55.jpg" />
</div>
<div class="mySlides fade">
<div class="numbertext">6 / 7</div>
<img src="./public/images/photo66.jpg" />
</div>
<div class="mySlides fade">
<div class="numbertext">7 / 7</div>
<img src="./public/images/photo77.jpg" />
</div>
<div class="blurshow">
<div class="content">
<h1>TOURNAMENTS</h1>
<p>
We have lots of sports categories available. You can apply for
multiple sports and register them. Create an account or Login to
view for various tournaments.
</p>
<br />
<a href="register_tournament.php">REGISTER</a>
</div>
<div class="content2">
<p>
S <br />
P <br />
O <br />
R <br />
T <br />
S <br />
<br />
2 <br />
0 <br />
2 <br />
0
</p>
</div>
</div>
</div>
<!-- The dots/circles -->
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<div class="tournaments">
<?php if (count($sports) == 0) {
echo "<h1>No Sports Available</h1>";
} else {
foreach ($sports as $sport) {
echo "<div class='flip-card'>";
echo "<div class='flip-card-inner'>";
echo "<div class='flip-card-front'>";
echo "<img src=." . $sport["imgPath"] . " alt='Avatar' />";
echo "</div>";
echo "<div class='flip-card-back'>";
echo "<h1>" . $sport["nameVal"] . "</h1>";
echo "<p>Start Date: " . $sport["startDate"] . "</p>";
echo "<p>End Date: " . $sport["endDate"] . "</p>";
echo "<p>Venue: " . $sport["venue"] . "</p>";
echo "<br />";
echo "<a href=" . $sport["sportName"] . ".php" . ">View Details</a>";
echo "<br /><br />";
echo "<form action='register_sport.php' method='POST'>";
echo "<input type='hidden' name='sport' value=" . $sport["sportName"] . " />";
echo "<button type='submit'>Register Now</button>";
echo "</form>";
echo "</div>";
echo "</div>";
echo "</div>";
}
}?>
</div>
<script src="./public/javascript/myScript.js"></script>
</body>
</html>