-
Notifications
You must be signed in to change notification settings - Fork 1
/
php_bundesliga.php
176 lines (131 loc) · 6.04 KB
/
php_bundesliga.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
<?php
session_start();
if(!isset($_SESSION['username'])){
header('location:index.php');
}
$user = $_SESSION['username'];
include_once('dbcon.php');
$command = escapeshellcmd('python soccerbundesliga.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>Bundesliga</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="individualleague3">
<section id="bundesliga" class="bundesliga">
<div class="container" data-aos="fade-up">
<div class="section-title">
<br>
<h2 id="leaguename3">Bundesliga</h2>
<ul id="leaguedescription3" class="list-group">
<li id="lg3info1" class="list-group-item list-group-item-primary" style="text-align: justify;">
<strong>
Qualification for UEFA Champions League
</strong>
1st, 2nd, 3rd, and 4th place holders of Bundesliga qualify for the group stages of UEFA Champions League.
The number of German clubs which may participate in UEFA competitions is determined by UEFA coefficients,
which take into account the results of a particular nation's clubs in UEFA competitions over the preceding five years.
</li>
<li id="lg3info2" class="list-group-item list-group-item-primary" style="text-align: justify;">
<strong>
Relegation and Promotion System
</strong>
The bottom two finishers in the Bundesliga are automatically relegated to the 2. Bundesliga, with the top two finishers in the 2. Bundesliga taking their places.
The third-from-bottom club in the Bundesliga will play a two-legged tie with the third-place team from the 2. Bundesliga,
with the winner taking up the final place in the following season's Bundesliga.
</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='indtabthree' 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_bundesliga.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>