-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpubis-symptoms1.php
111 lines (74 loc) · 3.3 KB
/
pubis-symptoms1.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
<?php
include('link/config.php');
?>
<!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="pubis-symptoms2.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(120,369,370,247,372)";
$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>
<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="teerms.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>