-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathneck-symptoms2.php
170 lines (125 loc) · 4.43 KB
/
neck-symptoms2.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
<?php
include('link/config.php');
$ed1=0;
$ed2=0;
$ed3=0;
$ed4=0;
$ed5=0;
$ed6=0;
$ed7=0;
$ed8=0;
$ed9=0;
$ed10=0;
if(($_POST[1])=="Yes")
{
$ed1++;
$ed2++;
$ed3++;
}
if(($_POST[2])=="Yes")
{
$ed1++;
}
if(($_POST[3])=="Yes")
{
$ed1++;
$ed2++;
}
if(($_POST[4])=="Yes")
{
$ed2++;
}
if(($_POST[5])=="Yes")
{
$ed3++;
}
if(($_POST[6])=="Yes")
{
$ed5++;
}
if(($_POST[7])=="Yes")
{
$ed5++;
}
?>
<!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>Disease Prediction System</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" >
<link rel="stylesheet" href="css/form-content.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body >
<!-- ========== TOP NAVBAR ========== -->
<?php include('link/user-topber.php'); ?>
</div>
<div class="intro-page" >
<div class="flex-p">
<div class="content-p">
<form class="form-horizontal" action="neck-symptoms3.php" method="post">
<h2> Please check all the symptoms below that apply to you </h2>
<p>Select one answer in each row. </p>
<table id="example" cellspacing="2" width="100%">
<tbody>
<?php $sql = "SELECT symptoms_tb.symptoms_id,symptoms_tb.symptoms_name from symptoms_tb where id IN (389,69,391,298,392,396)";
$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);?> -->
<td class="result-color1">Do you have  "<?php echo htmlentities($result->symptoms_name);?>"?</td>
<td class="result-color1"><input type="radio" name="<?php echo htmlentities($cnt);?>" value="Yes" required>Yes     <input type="radio" name="<?php echo htmlentities($cnt);?>" value="No" required>No </td>
</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
<input type="hidden" name="var1" value="<?php echo htmlentities($ed1);?>"/>
<input type="hidden" name="var2" value="<?php echo htmlentities($ed2);?>"/>
<input type="hidden" name="var3" value="<?php echo htmlentities($ed3);?>"/>
<input type="hidden" name="var4" value="<?php echo htmlentities($ed4);?>"/>
<input type="hidden" name="var5" value="<?php echo htmlentities($ed5);?>"/>
<input type="hidden" name="var6" value="<?php echo htmlentities($ed6);?>"/>
<input type="hidden" name="var7" value="<?php echo htmlentities($ed7);?>"/>
<input type="hidden" name="var8" value="<?php echo htmlentities($ed8);?>"/>
<input type="hidden" name="var9" value="<?php echo htmlentities($ed9);?>"/>
<input type="hidden" name="var10" value="<?php echo htmlentities($ed10);?>"/>
<div class="flex-p-inside">
<div class="flex-p-2">
<li><button type="submit" name="submit" >SUBMIT</button></li>
</div>
</div>
</form>
<div class="flex-p-inside">
<div class="flex-p-1">
<li><a href="neck-symptoms1.php" ><button><<</button></li>
</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>