-
Notifications
You must be signed in to change notification settings - Fork 3
/
update.php
executable file
·279 lines (259 loc) · 9.35 KB
/
update.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
<?php
include('config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SPA Pathcare : Home</title>
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicon -->
<link rel="shortcut icon" type="image/icon" href="images/favicon.ico"/>
<!-- CSS
================================================== -->
<!-- Bootstrap css file-->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Font awesome css file-->
<link href="css/font-awesome.min.css" rel="stylesheet">
<!-- Default Theme css file -->
<link id="switcher" href="css/themes/orange-theme.css" rel="stylesheet">
<!-- Slick slider css file -->
<link href="css/slick.css" rel="stylesheet">
<!-- Photo Swipe Image Gallery -->
<link rel="stylesheet prefetch" href="css/photoswipe.css">
<link rel="stylesheet prefetch" href="css/default-skin.css">
<!-- Main structure css file -->
<link href="style.css" rel="stylesheet">
<!-- Google fonts -->
<link href="http://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Habibi" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Cinzel+Decorative:900" rel="stylesheet" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- BEGAIN PRELOADER -->
<div id="preloader">
<div id="status"> </div>
</div>
<!-- END PRELOADER -->
<!-- SCROLL TOP BUTTON -->
<a class="scrollToTop" href="#"><i class="fa fa-heartbeat"></i></a>
<!-- END SCROLL TOP BUTTON -->
<!--=========== BEGIN HEADER SECTION ================-->
<header id="header">
<!-- BEGIN MENU -->
<div class="menu_area">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<!-- FOR MOBILE VIEW COLLAPSED BUTTON -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- LOGO -->
<!-- TEXT BASED LOGO -->
<a class="navbar-brand" href="index.php"><i class="fa fa-heartbeat"></i>SPA <span>Pathcare</span></a>
<!-- IMG BASED LOGO -->
<!-- <a class="navbar-brand" href="index.php"><img src="images/logo.png" alt="logo"></a> -->
</div>
<!--/.nav-collapse -->
<?php include ('menu.php') ?>
</div>
</nav>
</div>
<!-- END MENU -->
</header>
<!--=========== END HEADER SECTION ================-->
<section id="blogArchive">
<div class="row">
<div class="col-lg-12 col-md-12">
<div class="blog-breadcrumbs-area">
<div class="container">
<div class="blog-breadcrumbs-left">
<h2>Update</h2>
</div>
<div class="blog-breadcrumbs-right">
<ol class="breadcrumb">
<li>You are here</li>
<li><a href="#">Home</a></li>
<li class="active">Update</li>
</ol>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="topFeature">
<div class="row">
<div class="col-lg-4 col-md-4">
<div class="row">
<div class="single-top-feature opening-hours">
<span class="fa fa-flask"></span>
<h3>Test Name</h3>
<?php
$sql=mysqli_query($con,"SELECT * FROM test");
while($row=mysqli_fetch_array($sql))
{
?>
<ul class="opening-table">
<li>
<?php echo $row['test_name'] ?>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4">
<div class="row">
<div class="single-top-feature opening-hours">
<span class="fa fa-clock-o"></span>
<h3>Update</h3>
<?php
$sql=mysqli_query($con,"SELECT * FROM test");
while($row=mysqli_fetch_array($sql))
{
?>
<ul class="opening-table">
<li>
<a href="edit.php?id=<?php echo $row['id']; ?>">Edit</a>
<a href="delete.php?id=<?php echo $row['id']; ?>">Delete</a>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4">
<div class="row">
<div class="single-top-feature opening-hours">
<span class="fa fa-hospital-o"></span>
<h3>Test Fees</h3>
<?php
$sql=mysqli_query($con,"SELECT * FROM test");
while($row=mysqli_fetch_array($sql))
{
?>
<ul class="opening-table">
<li>
<?php echo $row['test_cost'] ?>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
</div>
</section>
<h4 align="center"><a href="insert.php">Insert New</a></h4>
<section id="topFeature">
<div class="row">
<div class="col-lg-4 col-md-4">
<div class="row">
<div class="single-top-feature opening-hours">
<span class="fa fa-flask"></span>
<h3>Doctor Name</h3>
<?php
$sql=mysqli_query($con,"SELECT * FROM doctor");
while($row=mysqli_fetch_array($sql))
{
?>
<ul class="opening-table">
<li>
<?php echo $row['Name'] ?>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4">
<div class="row">
<div class="single-top-feature opening-hours">
<span class="fa fa-clock-o"></span>
<h3>Update</h3>
<?php
$sql=mysqli_query($con,"SELECT * FROM doctor");
while($row=mysqli_fetch_array($sql))
{
?>
<ul class="opening-table">
<li>
<a href="editdoc.php?id=<?php echo $row['Id']; ?>">Edit</a>
<a href="delete1.php?id=<?php echo $row['Id']; ?>">Delete</a>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4">
<div class="row">
<div class="single-top-feature opening-hours">
<span class="fa fa-hospital-o"></span>
<h3>Fees</h3>
<?php
$sql=mysqli_query($con,"SELECT * FROM doctor");
while($row=mysqli_fetch_array($sql))
{
?>
<ul class="opening-table">
<li>
<?php echo $row['Fees'] ?>
</li>
</ul>
<?php
}
?>
</div>
</div>
</div>
</div>
</section>
<h4 align="center"><a href="insertdoc.php">Insert New</a></h4>
<!--=========== Start Footer SECTION ================-->
<?php include('footer.php') ?>
<!--=========== End Footer SECTION ================-->
<!-- jQuery Library -->
<script src="js/jquery.js"></script>
<!-- Bootstrap default js -->
<script src="js/bootstrap.min.js"></script>
<!-- slick slider -->
<script src="js/slick.min.js"></script>
<script type="text/javascript" src="js/modernizr.custom.79639.js"></script>
<!-- counter -->
<script src="js/waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<!-- Doctors hover effect -->
<script src="js/snap.svg-min.js"></script>
<script src="js/hovers.js"></script>
<!-- Custom JS -->
<script src="js/custom.js"></script>
</body>
</html>