-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
246 lines (210 loc) · 7.18 KB
/
index.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<?php
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Blood Bank Donar Management System | Home Page</title>
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<!--// Meta tag Keywords -->
<!-- Custom-Files -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Bootstrap-Core-CSS -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<!-- Style-CSS -->
<link rel="stylesheet" href="css/fontawesome-all.css">
<!-- Font-Awesome-Icons-CSS -->
<!-- //Custom-Files -->
<!-- Web-Fonts -->
<link href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese"
rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700,700i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese"
rel="stylesheet">
<!-- //Web-Fonts -->
</head>
<body>
<?php include('includes/header.php');?>
<!-- banner -->
<div class="slider">
<div class="callbacks_container">
<ul class="rslides callbacks callbacks1" id="slider4">
<li>
<div class="banner-top1">
<div class="banner-info_agile_w3ls">
<div class="container">
<h3>Blood bank services that you
<span>can trust</span>
</h3>
</div>
</div>
</div>
</li>
<li>
<div class="banner-top2">
<div class="banner-info_agile_w3ls">
<div class="container">
<h3>One Blood Donation Save three Lives
<span>every day</span>
</h3>
</div>
</div>
</div>
</li>
<li>
<div class="banner-top3">
<div class="banner-info_agile_w3ls">
<div class="container">
<!-- <h3>"Sometimes money cannot save life
<span>but donated blood can</span>
</h3> -->
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<!-- //banner -->
<div class="clearfix"></div>
<!-- banner bottom -->
<div class="banner-bottom py-5">
<div class="d-flex container py-xl-3 py-lg-3">
<div class="banner-left-bottom-w3ls offset-lg-2 offset-md-1">
<h3 class="text-white my-3">High professional doctors</h3>
<p>all specialists have extensive practical experience and regularly training courses in educational centers of the
world</p>
</div>
<div class="button">
<a href="about.php" class="w3ls-button-agile">Read More
<i class="fas fa-hand-point-right"></i>
</a>
</div>
</div>
</div>
<!-- //banner bottom -->
<!-- blog -->
<div class="blog-w3ls py-5" id="blog">
<div class="container py-xl-5 py-lg-3">
<div class="w3ls-titles text-center mb-5">
<h3 class="title text-white">Some of the Donar</h3>
<span>
<i class="fas fa-user-md text-white"></i>
</span>
</div>
<div class="row package-grids mt-5">
<?php
$status=1;
$sql = "SELECT * from tblblooddonars where status=:status order by rand() limit 6";
$query = $dbh -> prepare($sql);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<div class="col-md-4 pricing" style="margin-top:2%;">
<div class="price-top">
<img src="images/blood-donor.jpg" alt="" class="img-fluid" />
<h3><?php echo htmlentities($result->FullName);?>
</h3>
</div>
<div class="price-bottom p-4">
<h4 class="text-dark mb-3">Gender: <?php echo htmlentities($result->Gender);?></h4>
<p class="card-text"><b>Blood Group :</b> <?php echo htmlentities($result->BloodGroup);?></p>
<a class="btn btn-primary" style="color:#fff" href="contact-blood.php?cid=<?php echo $result->id;?>">Request</a>
</div>
</div><?php }} ?>
</div>
</div>
</div>
<!-- //blog -->
<!-- treatments -->
<div class="screen-w3ls py-5">
<div class="container py-xl-5 py-lg-3">
<div class="w3ls-titles text-center mb-5">
<h3 class="title">BLOOD GROUPS</h3>
<span>
<i class="fas fa-user-md"></i>
</span>
<p class="mt-2">blood group of any human being will mainly fall in any one of the following groups..</p>
</div>
<div class="row">
<div class="col-lg-6">
<ul>
<li>A positive or A negative</li>
<li>B positive or B negative</li>
<li>O positive or O negative</li>
<li>AB positive or AB negative.</li>
</ul>
<p>A healthy diet helps ensure a successful blood donation, and also makes you feel better! Check out the following recommended foods to eat prior to your donation.</p>
</div>
<div class="col-lg-6">
<img class="img-fluid rounded" src="images/blood-donor (1).jpg" alt="">
</div>
</div>
<div class="row mb-4">
<div class="col-md-8">
<h4 style="padding-top: 30px;">UNIVERSAL DONORS AND RECIPIENTS</h4>
<p>
The most common blood type is O, followed by type A.
Type O individuals are often called "universal donors" since their blood can be transfused into persons with any blood type. Those with type AB blood are called "universal recipients" because they can receive blood of any type.</p>
</div>
<div class="col-md-4" style="padding-top: 30px;">
<a class="btn btn-lg btn-secondary btn-block login-button ml-lg-5 mt-lg-0 mt-4 mb-lg-0 mb-3" data-toggle="modal" data-target="#exampleModalCenter1" href="#" data-toggle="modal" data-target="#exampleModalCenter1"> Become a Donar</a>
</div>
</div>
</div>
</div>
<!-- //treatments -->
<!-- footer -->
<?php include('includes/footer.php');?>
<!-- Js files -->
<!-- JavaScript -->
<script src="js/jquery-2.2.3.min.js"></script>
<!-- Default-JavaScript-File -->
<!-- banner slider -->
<script src="js/responsiveslides.min.js"></script>
<script>
$(function () {
$("#slider4").responsiveSlides({
auto: true,
pager: true,
nav: true,
speed: 1000,
namespace: "callbacks",
before: function () {
$('.events').append("<li>before event fired.</li>");
},
after: function () {
$('.events').append("<li>after event fired.</li>");
}
});
});
</script>
<!-- //banner slider -->
<!-- fixed navigation -->
<script src="js/fixed-nav.js"></script>
<!-- //fixed navigation -->
<!-- smooth scrolling -->
<script src="js/SmoothScroll.min.js"></script>
<!-- move-top -->
<script src="js/move-top.js"></script>
<!-- easing -->
<script src="js/easing.js"></script>
<!-- necessary snippets for few javascript files -->
<script src="js/medic.js"></script>
<script src="js/bootstrap.js"></script>
<!-- Necessary-JavaScript-File-For-Bootstrap -->
<!-- //Js files -->
</body>
</html>