-
Notifications
You must be signed in to change notification settings - Fork 30
/
scores.php
218 lines (206 loc) · 8.52 KB
/
scores.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en">
<?php
require('./templates/header.php');
?>
<body>
<!--
=============================================
Theme Header
==============================================
-->
<div class="bac">
<div class="container" style="padding:10px 0">
<a href="index.php" class="logo float-left tran4s"><img src="images/logo/logo.png" alt="Logo" style="border-radius:100%" /></a>
<!-- ========================= Theme Feature Page Menu ======================= -->
<nav class="navbar float-right theme-main-menu one-page-menu">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
Menu
<i class="fa fa-bars" aria-hidden="true"></i>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#home">Home</a></li>
<li><a href="./team.php">Team</a></li>
<li><a href="./gallery.php">Gallery</a></li>
<li><a href="./registration.php">Register</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</nav>
<!-- /.theme-feature-menu -->
</div>
</div>
<!-- /.theme-main-header -->
<div class="container">
<div id="content">
<div class="theme-title">
<h2>Scores</h2>
</div>
<div class="score-container">
<?php
require('./pullScores.php');
while ($data = $stmt->fetch()) { ?>
<div class="col-lg-4 offset-lg-2 col-md-4 col-sm-2 sol-xs-1">
<div class=" score-box">
<h4 ><?php echo $data['Game'] ?></h4>
<div>
<span><?php echo $data['Team_1'] ?> Vs <?php echo $data['Team_2'] ?></span>
</div>
<div>
<span><?php echo $data['Score'] ?></span>
</div>
<div>
<span><?php echo $data['Winner'] ?></span>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div id="content">
<div class="theme-title">
<h2>Athletics</h2>
</div>
<div class="score-container">
<?php
$stmt = $pdo->query("SELECT * FROM athletics ORDER BY date");
while ($data = $stmt->fetch()) { ?>
<div class="col-lg-4 offset-lg-2 col-md-4 col-sm-2 sol-xs-1">
<div class=" score-box">
<h4 >Race: <?php echo $data['RaceName'] ?></h4>
<div>
<h4>Winners</h4>
<ul class="winnersList">
<li> <span style="color:#d63e4d">1st Place:-</span> <?php echo $data['Winner'] ?></li>
<li> <span style="color:#d63e4d"> 2nd Place:-</span> <?php echo $data['FirstRunnerUp'] ?></li>
<li> <span style="color:#d63e4d"> 3rd Place:-</span> <?php echo $data['SecondRunnerUp'] ?></li>
</ul>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!--
=====================================================
Footer
=====================================================
-->
<footer id="footer" class="footer">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-4 col-first">
<a href="index.php" class="logo"><img src="images/logo/logo.png" alt="Logo" class="footer-logo"/></a>
<div class="footer-about">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt</p>
</div>
<div class="section-heading">
<h3>Follow us</h3>
</div>
<ul>
<li>
<a href="https://www.facebook.com/InfinitoIITPatna/">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://twitter.com/infinito_iitp">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.linkedin.com/company/infinito-iit-patna">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://www.instagram.com/infinito_iitp/">
<i class="fa fa-instagram"></i>
</a>
</li>
</ul>
</div>
<div class="col-md-12 col-lg-4 col-second">
<div class="contact-us">
<div class="contact-icon">
<i class="fa fa-map-o" aria-hidden="true"></i>
</div>
<div class="contact-info">
<h3>Bihta, Patna, Bihar</h3>
<p>IIT Patna</p>
</div>
</div>
<div class="contact-us">
<div class="contact-icon">
<i class="fa fa-phone" aria-hidden="true"></i>
</div>
<div class="contact-info">
<h3>+91 98018 84535</h3>
<p>Give us a call</p>
</div>
</div>
<div class="contact-us">
<div class="contact-icon">
<i class="fa fa-envelope" aria-hidden="true"></i>
</div>
<div class="contact-info">
<h3>[email protected]</h3>
<p>Mail us here</p>
</div>
</div>
</div>
<div class="col-md-12 col-lg-4 col-last">
<div class="section-heading">
<h3>Useful Links</h3>
</div>
<ul>
<li>
<a href="#">About us</a>
</li>
<li>
<a href="#">Events</a>
</li>
<li>
<a href="#">Sponsors</a>
</li>
<li>
<a href="#">Our Team</a>
</li>
</ul>
</div>
</div>
</div>
<div class="copyright">
<p>Copyright © 2021 Infinito</p>
</div>
</footer>
<!--
=============================================
Loading Transition
==============================================
-->
<div id="loader-wrapper">
<div id="preloader_1">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
<!-- Scroll Top Button -->
<button class="scroll-top tran3s p-color-bg">
<i class="fas fa-long-arrow-alt-up" aria-hidden="true"></i>
</button>
<?php
require('./templates/footer.php')
?>
</body>
</html>