-
Notifications
You must be signed in to change notification settings - Fork 0
/
msearch.php
172 lines (144 loc) · 5.21 KB
/
msearch.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Medicine Search</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="CareMed demo project">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="styles/bootstrap4/bootstrap.min.css">
<link href="plugins/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="plugins/OwlCarousel2-2.2.1/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="plugins/OwlCarousel2-2.2.1/owl.theme.default.css">
<link rel="stylesheet" type="text/css" href="plugins/OwlCarousel2-2.2.1/animate.css">
<link rel="stylesheet" type="text/css" href="styles/main_styles.css">
<link rel="stylesheet" type="text/css" href="styles/responsive.css">
<link rel="stylesheet" type="text/css" href="styles/news.css">
<link rel="stylesheet" type="text/css" href="styles/news_responsive.css">
</head>
<body>
<div class="super_container">
<!-- Header -->
<header class="header trans_200">
<!-- Top Bar -->
<div class="top_bar">
<div class="container">
<div class="row">
<div class="col">
<div class="top_bar_content d-flex flex-row align-items-center justify-content-start">
<div class="emergencies d-flex flex-row align-items-center justify-content-start ml-auto">For Emergencies: 102</div>
</div>
</div>
</div>
</div>
</div>
<!-- Header Content -->
<div class="header_container">
<div class="container">
<div class="row">
<div class="col">
<div class="header_content d-flex flex-row align-items-center justify-content-start">
<nav class="main_nav ml-auto">
<ul>
<li class="menu_item menu_mm"><a href="home.html">Home</a></li>
<li class="menu_item menu_mm"><a href="bmi.html">BMI & BMR Analysis</a></li>
<li class="menu_item menu_mm"><a href="disease.php">Malaria Analysis </a></li>
<li class="menu_item menu_mm"><a href="dsearch.php">Disease Search</a></li>
<li class="menu_item menu_mm"><a href="msearch.php">Medicine Search</a></li>
<li class="menu_item menu_mm"><a href="logout.html">Log Out</a></li>
</ul>
</nav>
<div class="hamburger ml-auto"><i class="fa fa-bars" aria-hidden="true"></i></div>
</div>
</div>
</div>
</div>
</div>
<!-- Logo -->
<div class="logo_container_outer">
<div class="container">
<div class="row">
<div class="col">
<div class="col-lg-5">
<div class="logo_container">
<a href="#">
<div class="about_image"><img src="imagehac.png" alt=""></div>
</a>
</div>
</div>
</div>
</div>
</header>
<!-- Menu -->
<div class="menu_container menu_mm">
<!-- Menu Close Button -->
<div class="menu_close_container">
<div class="menu_close"></div>
</div>
<!-- Menu Items -->
<div class="menu_inner menu_mm">
<div class="menu menu_mm">
<ul class="menu_list menu_mm">
<li class="menu_item menu_mm"><a href="home.html">Home</a></li>
<li class="menu_item menu_mm"><a href="bmi.html">BMI &BMR Analysis</a></li>
<li class="menu_item menu_mm"><a href="disease.php">Malaria Analysis </a></li>
<li class="menu_item menu_mm"><a href="dsearch.php">Disease Search</a></li>
<li class="menu_item menu_mm"><a href="msearch.php">Medicine Search</a></li>
<li class="menu_item menu_mm"><a href="javascript:myFunction();">Log Out</a></li>
</ul>
</div>
<div class="menu_extra">
<div class="menu_emergencies">For Emergencies: 102</div>
</div>
</div>
</div>
<!-- Home -->
<div class="home">
<div class="home_background parallax-window" data-parallax="scroll" data-image-src="images/news.jpg" data-speed="0.8"></div>
<div class="home_container">
<div class="container">
<div class="row">
<div class="col">
<div class="home_content">
<div class="home_title">
<form acton="#" method="POST">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="text">
<div class="input-group-btn">
<input class="btn btn-default" type="submit" name="Search" value="Search">
<i class="glyphicon glyphicon-search"></i>
</div>
</div>
</form>
</div>
<div class="breadcrumbs">
<ul>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<?php
$text1="";
if(isset($_POST['Search']))
$text1=$_POST["text"];
#echo $text;
$text2='python webscrapper1.py '.$text1;
#echo $text1;
$command = escapeshellcmd($text2);
$output = shell_exec($command);
echo $output;
?>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="styles/bootstrap4/popper.js"></script>
<script src="styles/bootstrap4/bootstrap.min.js"></script>
<script src="plugins/easing/easing.js"></script>
<script src="plugins/parallax-js-master/parallax.min.js"></script>
<script src="js/news.js"></script>
</body>
</html>