-
Notifications
You must be signed in to change notification settings - Fork 3
/
form1.php
executable file
·141 lines (133 loc) · 4.35 KB
/
form1.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>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body{
background-image: url("Yoga-Wallpaper-13.jpg");
background-repeat: no-repeat;
background-size: 1550px;
top-margin: 0;
}
img {
width: 90px;
height: 90px;
vertical-align: sup;
}
.header{
background-color: #333;
overflow: hidden;
height: 120px;
box-shadow: 10px 10px 5px grey;
}
.header #p2{
color: white;
font-family: Verdana;
font-size: 18px;
letter-spacing: 2px;
line-height: 45px;
padding-left: 1.8em;
}
.heading{
padding-top: 14px;
line-height: 10px;
}
.heading h1{
text-align: center;
font-family: Arial;
font-size: 50px;
font-variant: small-caps;
font-weight: bold;
text-shadow: 4px 2px gray;
}
.heading p{
text-align: center;
font-family: 'Courier New';
font-weight: bold;
}
.form{
background-image: linear-gradient(to bottom, #fdcf94, #4c677c);
position: relative;
left: 800px;
border: 2px solid #15365f;
border-radius: 15px;
text-align: left;
padding-bottom: 10px;
padding-top: 10px;
padding-left: 8px;
padding-right: 2px;
margin-top: 60px;
margin-right: 50px;
line-height: 25px;
height: 730px;
width: 600px;
}
#btn{
position:relative;
left: 280px;
cursor: pointer;
border-radius: 4px;
}
#btn:hover{
background-color: grey;
border-color: grey;
}
h3{
font-family: 'Verdana';
font-style: italic;
}
label{
color: black;
font-weight: bold;
font-size: 19px;
}
input{
background-color: #f1f1f1;
border: none;
}
</style>
<title> Keeping Health </title>
</head>
<body>
<div class="header">
<p id="p1"><img src="53570953_1687522978014200_8443716218568835072_n.jpg" alt="Logo" style="float: left;">
<img src="computer-brain.jpg" style="float: right;">
<p id="p2"> ProSang,                                                     Team Temporal<br>
MNNIT Allahabad                      and                        Brain Sensing</p>
</div>
<div class="heading">
<p> brings to you...</p>
<h1> Digital Health Advisor </h1>
</div>
<div class="form">
<h2> Welcome... </h2>
<?php
if($_POST['gender'] == "female")
$sal="Ms.";
else $sal="Mr.";
echo "<h3><i>", "Hello ", $sal ," ",$_POST['name'], "!","</i></h3>";
echo "<strong>The recommended Yogasans are listed below against the respective ailments:</strong><br>";
extract($_POST);
foreach($ailment as $val)
{echo "<ul>";
if($val == "dep")
echo "<li> <b>Depression</b> - <br><ol> <li><a>Baddha Konasana/Bound Angle Pose</a>", "<li><a>Sukhasana/Easy Pose</a></ol>";
if($val == "ind")
echo "<li> <b>Indigestion</b> - <br><ol> <li><a>Apanasana/Knees to Chest Pose</a>", "<li><a>Paschimottanasana/ Posterior Stretch Pose</a></ol>";
if($val == "dia")
echo "<li> <b>Diabetes</b> - <br><ol> <li><a>Ardha Matsyendrasana/ Half Spinal Twist</a>", "<li><a>Chakrasana/ Wheel pose</a></ol>";
if($val == "mig")
echo "<li> <b>Migraine</b> - <br><ol> <li><a>Padmasana/ Lotus Pose</a>", " and ", "<li><a>Sirsasana</a></ol>";
if($val == "hyp")
echo "<li> <b>Hypertension</b> - <br><ol> <li><a>Uttanasana/Standing Forward Bend Pose</a>", "<li><a>Halasana/Plow Pose</a></ol>";
if($val == "bjm")
echo "<li> <b>Bone, Joint & Muscle Pains</b> - <br><ol> <li><a>Tadasana/Tree Pose</a></ol>";
if($val == "hbp")
echo "<li> <b>High Blood Pressure</b> - <br><ol> <li><a>Baddha Konasana/Bound Angle Pose</a>", "<li><a>Shavasana/Corpse Pose</a></ol>";
if($val == "ins")
echo "<li> <b>Insomnia</b> - <br><ol> <li><a>Padangusthasana/Big Toe Pose</a>", " and ", "<li><a>Chandra Bhedana/Moon Breath</a></ol>";
echo "</ul>";}
?>
</div>
</body>
</html>