-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscoreboard.php
More file actions
190 lines (160 loc) · 5.6 KB
/
scoreboard.php
File metadata and controls
190 lines (160 loc) · 5.6 KB
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
181
182
183
184
185
186
187
188
189
190
<?php
include "connect.php";
$sql = "SELECT player_name, points FROM users ORDER BY points DESC, stamp DESC";
// Execute the query
$result = mysqli_query($conn, $sql);
?>
<!DOCTYPE html>
<html class="sidebar-light fixed sidebar-left-collapsed">
<head>
<style>
body{
background-size: 150%;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}
/* Large screens (desktops) */
@media (min-width: 769px) {
body {
background: url('https://getwallpapers.com/wallpaper/full/e/4/6/570852.jpg') center center fixed;
}
}
/* Small screens (mobile devices) */
@media (max-width: 768px) {
body {
background: url('https://getwallpapers.com/wallpaper/full/e/4/6/570852.jpg') center center fixed;
background-size: cover;
/* Adjust other background properties as needed for mobile view */
}
}
td {
color: lightblue;
}
.ui-pnotify.red .ui-pnotify-container {
background-color: #DC143C !important;
color: #ffffff;
border: 0px;
}
.ui-pnotify.blue .ui-pnotify-container {
background-color: #0088cc !important;
color: #ffffff;
border: 0px;
}
.code {
display: inline-block;
overflow-wrap: break-word;
word-wrap: break-word;
text-align: left;
}
/* Add your CSS styles here */
.card {
margin: 20px;
padding: 20px;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
table {
width: 72%;
border-collapse: collapse;
margin: 20px auto;
/* Center the table horizontally */
}
/* Media query for mobile view */
@media (max-width: 768px) {
table {
width: 100%;
/* Make the table full width on smaller screens */
margin: 20px 0;
/* Remove left and right margin on smaller screens */
}
}
th,
td {
border: 1px solid black;
padding: 8px;
text-align: left;
color: whitesmoke;
/* Set the text color */
font-weight: bold;
/* Set the text weight to bold */
}
th {
background-color: purple;
color: whitesmoke;
/* Set the text color to black */
/* Increase the thickness of the text */
}
h2 {
text-align: center;
margin-top: 20px;
}
/* Add this CSS style to remove black cursor on hover */
.user-responses-section table {
cursor: default;
}
/* Add this style if you want to change the cursor color */
.user-responses-section table tr:hover {
background-color: transparent;
/* Change the background color on hover if needed */
cursor: default;
}
</style>
<?php include "head.php"; ?>
</head>
<body>
<section class="body">
<div class="inner-wrapper">
<section role="main" class="content-body">
<header class="page-header">
<h2 >Kaun Banega Codepathi</h2>
</header>
<h2>Points Table</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Points</th>
</tr>
</thead>
<tbody>
<?php
// Fetch data from the result set
while ($row = mysqli_fetch_assoc($result)) {
echo "<tr>";
echo "<td>" . $row['player_name'] . "</td>";
echo "<td>" . $row['points'] . "</td>";
echo "</tr>";
}
?>
</tbody>
</table>
</section>
</div>
</section>
<script src="vendor/jquery/jquery.js"></script>
<script src="vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
<script src="vendor/popper/umd/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.js"></script>
<script src="vendor/common/common.js"></script>
<script src="vendor/nanoscroller/nanoscroller.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.js"></script>
<script src="vendor/jquery-placeholder/jquery-placeholder.js"></script>
<!-- Specific Page Vendor -->
<script src="vendor/jquery-ui/jquery-ui.js"></script>
<script src="vendor/jqueryui-touch-punch/jqueryui-touch-punch.js"></script>
<script src="vendor/jquery-appear/jquery-appear.js"></script>
<script src="vendor/owl.carousel/owl.carousel.js"></script>
<!-- Theme Base, Components and Settings -->
<script src="js/theme.js"></script>
<script src="js/examples/examples.modals.js"></script>
<script src="vendor/pnotify/pnotify.custom.js"></script>
<!-- Theme Custom -->
<!--<script src="js/custom.js"></script>-->
<!--<script src="js/housie.js"></script> -->
<!-- Theme Initialization Files -->
<script src="js/theme.init.js"></script>
<?php include "footer.php"; ?>
</body>
</html>