-
Notifications
You must be signed in to change notification settings - Fork 1
/
php_epl.php
180 lines (134 loc) · 6.22 KB
/
php_epl.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php
session_start();
if(!isset($_SESSION['username'])){
header('location:index.php');
}
$user = $_SESSION['username'];
include_once('dbcon.php');
$command = escapeshellcmd('python soccerepl.py');
$output = shell_exec($command);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>English Premier League</title>
<meta content="" name="description">
<meta content="" name="keywords">
<link rel="icon" href="images/icon.png" type="image/x-icon" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/icofont/icofont.min.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets/vendor/venobox/venobox.css" rel="stylesheet">
<link href="assets/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
</head>
<body>
<header id="header" class="fixed-top">
<div class="container d-flex align-items-center">
<h1 style="font-family: LORA" class="logo mr-auto">
<!-- <a href="home.php"> -->
<?php
$con=mysqli_connect("127.0.0.1","root","","sportscornerdb");
$query="Select * from userstable where username='$user'";
$result= mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
echo "".$row["username"]."<br>";
}
?>
<!-- </a> -->
</h1>
<nav class="nav-menu d-none d-lg-block">
<ul>
<li><a id="navl1" href="home.php">Home</a></li>
<li><a id="navl2" href="php_laliga.php">La Liga</a></li>
<li><a id="navl3" href="php_epl.php">EPL</a></li>
<li><a id="navl4" href="php_bundesliga.php">Bundesliga</a></li>
<li><a id="navl5" href="php_ligueone.php">Ligue 1</a></li>
<li><a id="navl6" href="php_seriea.php">Serie A</a></li>
</ul>
</nav>
<a id="logout" href="logout.php" class="get-started-btn scrollto">LOG OUT</a>
</div>
</header>
<main id="individualleague2">
<section id="epl" class="epl">
<div class="container" data-aos="fade-up">
<div class="section-title">
<br>
<h2 id="leaguename2">English Premier League</h2>
<ul id="leaguedescription2" class="list-group">
<li id="lg2info1" class="list-group-item list-group-item-primary" style="text-align: justify;">
<strong>
Qualification for UEFA Champions League
</strong>
The top four teams in the Premier League qualify for the subsequent season's UEFA Champions League group stage.
The winners of the UEFA Champions League and UEFA Europa League also qualify for the subsequent season's UEFA Champions League group stage.
If this means six Premier League teams qualify, then the fourth-placed team in the Premier League instead plays in the UEFA Europa League,
for any single nation is limited to a maximum of five teams.
</li>
<li id="lg2info2" class="list-group-item list-group-item-primary" style="text-align: justify;">
<strong>
Relegation and Promotion System
</strong>
A system of promotion and relegation exists between the Premier League and the EFL Championship.
The three lowest placed teams in the Premier League are relegated to the Championship,
and the top two teams from the Championship promoted to the Premier League,
with an additional team promoted after a series of play-offs involving the third, fourth, fifth and sixth placed clubs.
</li>
</ul>
</div>
<div class="section-title">
<p id="seasontext" style="font-family: Cambria; font-size: 1.5em; font-style: bold; color: #000;">
2020-21 Season Table Standings
</p>
</div>
<?php
echo "<div class='container>'";
echo "<html><body><table id='indtabtwo' align = 'center' class=\"table table-hover\" style='max-width: 80%;'>\n";
echo "<tr>";
echo "<th> Team </th>";
echo "<th> Position </th>";
echo "<th> Points </th>";
echo "<th> Matches Played </th>";
echo "<th> Wins </th>";
echo "<th> Losses </th>";
echo "<th> Goals For </th>";
echo "<th> Goal Difference </th>";
echo "</tr>";
$f = fopen("txt_epl.txt", "r");
while (($line = fgetcsv($f)) !== false)
{
echo "<tr>";
foreach ($line as $cell) {
echo "<td>" ;
echo htmlentities($cell,ENT_QUOTES | ENT_IGNORE | ENT_SUBSTITUTE | ENT_DISALLOWED | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5, "ISO-8859-1");
echo "</td>";
}
echo "</tr>\n";
}
fclose($f);
echo "\n</table></body></html>";
echo "</div>";
?>
</div>
</section>
</main>
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/waypoints/jquery.waypoints.min.js"></script>
<script src="assets/vendor/counterup/counterup.min.js"></script>
<script src="assets/vendor/venobox/venobox.min.js"></script>
<script src="assets/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>