-
Notifications
You must be signed in to change notification settings - Fork 4
/
sports.php
executable file
·141 lines (108 loc) · 3.4 KB
/
sports.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
<!DOCTYPE html>
<html lang="en">
<!-- Head -->
<head>
<?php include 'includes/head.php'; ?>
<style>
.press-news img {
height: auto;
width: 100%;
margin-bottom: 5%;
max-height: 25rem;
transition: transform 0.2s linear, filter 0.2s linear;
}
.press-news img:hover {
transform: scale(0.96);
filter: brightness(70%);
}
.zoom-in {
cursor: zoom-in;
}
/* Clear floats after the columns */
</style>
</head>
<body>
<!-- Page Preloder -->
<?php include 'includes/preloader.php'; ?>
<!-- Header -->
<?php include 'includes/header.php'; ?>
<!-- Navbar -->
<?php include 'includes/navbar.php'; ?>
<!-- Side Nav -->
<?php include 'includes/sidenav.php'; ?>
<!-- Breadcrumb section -->
<div class="site-breadcrumb">
<div class="container">
<a href="index.php"><i class="fa fa-home"></i>Home</a> <i class="fa fa-angle-right"></i>
<span>Sports</span>
</div>
</div>
<!-- Breadcrumb section end -->
<!-- About section -->
<section class="about-section spad pt-0">
<div class="container">
<div class="section-title text-center">
<h3>Sports</h3>
<p>Champions keep playing untill they get it right</p>
</div>
<div class="mb-5">
<p class="text-reset">Sports
The school has excellent facility for sports.
It has badminton courts and table tennis within the main block.
The students share the football ground and cricket ground of Devi Ahilya University.
The school encourages participation of students in sports and athletic competitions.
Students have participated in State, Regional and National in various sports.
They have exhibited high level of performance and have won awards at all levels.
</p>
</div>
<div class="row">
<?php
$dir = "./img/sports/";
$images = scandir($dir);
array_splice($images, 0, 2);
for ($i = 0; $i < count($images); ++$i) {
echo '<div class="press-news col-md-4">
<img onclick="modalFun(this)" data-toggle="modal" data-target="#myModal" src="' . $dir . $images[$i] . '" class="imag-fluid img-thumbnail zoom-in">
</div>';
}
?>
</div>
<!-- Button to Open the Modal -->
<!-- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
Open modal
</button> -->
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<!-- <div class="modal-header">
<h4 class="modal-title">Modal Heading</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div> -->
<!-- Modal body -->
<div class="modal-body">
<img src="" id="modal-image">
</div>
<!-- Modal footer -->
<!-- <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div> -->
</div>
</div>
</div>
</div>
</section>
<!-- About section end-->
<script>
function modalFun(image) {
document.getElementById("modal-image").src = image.src;
}
</script>
<!-- Footer section -->
<?php include 'includes/footer.php'; ?>
<!-- Back 2 Top -->
<?php include 'includes/back2Top.php'; ?>
<!--====== Javascripts & Jquery ======-->
<?php include 'includes/javascripts.php'; ?>
</body>
</html>