-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathprevious-result.php
344 lines (249 loc) · 9.93 KB
/
previous-result.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<?php
session_start();
error_reporting(0);
include('link/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: user_login.php");
}
else{
$username=$_SESSION["username"];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>User Result</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" type="text/css" href="js/DataTables/datatables.min.css"/>
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
<style>
body{
background-color:white;
width:auto;
height:auto;
}
.intro-page{
margin-left: 203px;
margin-right: 203px;
}
.intro-page h2{
font-size: 20px;
font-weight: 900;
color: black;
}
.intro-page p
{
color: #02050c;
font-size: 16px;
font-weight: 800;
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#87e0fd+41,53cbf1+57,05abe0+78 */
background: #87e0fd; /* Old browsers */
background: -moz-linear-gradient(top, #87e0fd 41%, #53cbf1 57%, #05abe0 78%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #87e0fd 41%,#53cbf1 57%,#05abe0 78%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #87e0fd 41%,#53cbf1 57%,#05abe0 78%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#87e0fd', endColorstr='#05abe0',GradientType=0 ); /* IE6-9 */
color:black;
border-radius: 10px;
}
.flex-p {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.flex-p .image-p{
flex-basis: 30%;
max-width: 30%;
padding: 10px;
}
.flex-p .content-p {
flex-basis: 100%;
max-width: 100%;
padding: 21px;
}
.flex-p .content-p li{
}
.intro-page a{
color: white;
}
.intro-page button{
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#499bea+33,207ce5+67 */
background: #499bea; /* Old browsers */
background: -moz-linear-gradient(top, #499bea 33%, #207ce5 67%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #499bea 33%,#207ce5 67%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #499bea 33%,#207ce5 67%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#499bea', endColorstr='#207ce5',GradientType=0 ); /* IE6-9 */
float: right;
border-radius: 25px;
transition:0.5s;
color:white;
}
.intro-page button:hover{
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#29b8e5+50,bce0ee+90 */
background: #29b8e5; /* Old browsers */
background: -moz-linear-gradient(top, #29b8e5 50%, #bce0ee 90%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #29b8e5 50%,#bce0ee 90%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #29b8e5 50%,#bce0ee 90%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#29b8e5', endColorstr='#bce0ee',GradientType=0 ); /* IE6-9 */
color:white;
border-radius: 25px;
}
.flex-p-inside{
display:flex;
flex-wrap:wrap;
align-items:center;
position:relative;
}
.flex-p-1{
flex-basis: 29%;
max-width: 29%;
position: absolute;
top: -20px;
}
.flex-p-2{
flex-basis: 100%;
max-width: 100%;
}
li{
list-style-type:none;
display:block;
}
.result-color
{
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#a90329+40,8f0222+53,6d0019+84 */
background: #a90329; /* Old browsers */
background: -moz-linear-gradient(top, #a90329 40%, #8f0222 53%, #6d0019 84%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #a90329 40%,#8f0222 53%,#6d0019 84%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #a90329 40%,#8f0222 53%,#6d0019 84%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a90329', endColorstr='#6d0019',GradientType=0 ); /* IE6-9 */
border-radius:20px;
font-weight:900;
color:white;
}
.result-color1{
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#eeeeee+43,cccccc+72 */
background: #eeeeee; /* Old browsers */
background: -moz-linear-gradient(top, #eeeeee 43%, #cccccc 72%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #eeeeee 43%,#cccccc 72%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #eeeeee 43%,#cccccc 72%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
border-radius:20px;
font-weight:900;
color:black;
}
.flex-p-1 i{
color:white;
}
</style>
</head>
<body >
<!-- ========== TOP NAVBAR ========== -->
<?php include('link/user-topber.php'); ?>
</div>
<div class="intro-page" >
<div class="flex-p">
<div class="content-p">
<table id="example" cellspacing="0" width="100%">
<tbody>
<?php $sql = "SELECT *from user where user_name='$username'";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<!-- <td><?php echo htmlentities($cnt);?></td> -->
<?php $resultname=$result->result ;
?>
</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
<?php
if($resultname==NULL)
{
?>
<form class="form-horizontal" method="post">
<table id="example" >
<tbody>
<tr>
<h3 class="result-color">   You Didn't Check Yet.Maybe you are new user.To see your Result you have to check first</h3><br>
</tr>
</tbody>
</table>
</div>
</div>
</form>
<?php }
else
{
?>
<form class="form-horizontal" method="post">
<table id="example" >
<h2>Previous Result</h2>
<p class="form-horizontal">  This result is based on your symptoms.If you want to know better check again.</p>
<tbody>
<?php $sql = "SELECT *from disease_tb where id=$resultname";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<!-- <?php echo htmlentities($cnt);?> -->
<h2>Previously Checked Result </h2>
<h3 class="result-color">   <?php echo htmlentities($result->disease_name);?></h3><br>
<h2>Disease Cause </h2>
<h2 > <td class="result-color1"><?php echo htmlentities($result->cause);?></td><h2>
<!-- <input type="hidden" name="var1" value="<?php echo htmlentities($mainresult);?>"/> -->
</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
<!-- <input type="hidden" name="var1" value="<?php echo htmlentities($mainresult);?>"/> -->
<p>   
Disclaimer :
Please note that the information provided by this tool is provided solely for educational purposes
and is not a  qualified medical opinion. This information should not be considered advice or an opinion
of a doctor or other health  professional about your actual medical state, and you should see a doctor
for any symptoms you may have. If you are  experiencing a health emergency, you should call your local
 emergency number immediately to request emergency medical  assistance.</p>
<div class="flex-p-inside">
<div class="flex-p-2">
</div>
</div>
</form>
<?php } ?>
<div class="flex-p-inside">
<div class="flex-p-1">
<button ><a href="user_interface.php"><b style="color:white"><<</b></a> </button>
</div>
</div>
</div>
<!-- /.main-wrapper -->
<script src="js/jquery-2.2.4.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$(".js-states").select2();
$(".js-states-limit").select2({
maximumSelectionLength: 2
});
$(".js-states-hide").select2({
minimumResultsForSearch: Infinity
});
});
</script>
</body>
</html>
<?php } ?>