-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathregistration.php
144 lines (107 loc) · 6.18 KB
/
registration.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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- CSS FILES -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-icons.css" rel="stylesheet">
<link href="css/owl.carousel.min.css" rel="stylesheet">
<link href="css/owl.theme.default.min.css" rel="stylesheet">
<link href="css/templatemo-medic-care.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg bg-light fixed-top shadow-lg">
<div class="container">
<a class="navbar-brand mx-auto d-lg-none" href="MedikitHealthCare.php">
Medikit
<strong class="d-block">Health Care</strong>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mx-auto">
<li class="nav-item" onClick="location.href='MedikitHealthCare.php'"></Button>
<a class="nav-link" href="#home">Home</a>
</li>
<li class="nav-item" onClick="location.href='MedikitHealthCare.php'"></Button>
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item" onClick="location.href='MedikitHealthCare.php'"></Button>
<a class="nav-link" href="#timeline">Timeline</a>
</li>
<li class="nav-item" onClick="location.href='Map.php'"></Button>
<a class="nav-link" href="#booking">Hospital-Map</a>
</li>
<a class="navbar-brand d-none d-lg-block" href="MedikitHealthCare.php">
Medikit
<strong class="d-block">Health Care</strong>
</a>
<li class="nav-item" onClick="location.href='MedikitHealthCare.php'"></Button>
<a class="nav-link" href="#reviews">Testimonials</a>
</li>
<li class="nav-item" onClick="location.href='MedikitHealthCare.php'"></Button>
<a class="nav-link" href="#contact">Contact</a>
</li>
<?php
session_start();
if(isset($_SESSION['flag'])) {
if($_SESSION['flag'] == 'Login'){
?>
<li class="nav-item"onClick="location.href='appoint.php'"> <a class="nav-link" href="#Book">Book Appointment</a>
</li>
<li class="nav-item"onClick="location.href='shopping-cart/index.php'"> <a class="nav-link" href="#Book">Medicare</a>
</li>
<li class="nav-item"onClick="location.href='logout.php'"> <a class="nav-link" href="#logout">Logout</a>
</li>
<?php
}
}
?>
</ul>
</div>
</div>
</nav>
<section class="section-padding" id="booking">
<div class="container">
<div class="row">
<div class="col-lg-8 col-12 mx-auto">
<div class="booking-form">
<h2 class="text-center mb-lg-3 mb-2">Registration</h2>
<h6 class="text-center mb-lg-3 mb-2">Already Signed Up? Click <a href="Login.php " >Sign In</span></a> to login your account.</h6>
<form onsubmit="showMsg(0);return false;" method="post" action="register.php" >
<div class="row">
<div class="col-lg-6 col-12">
<input type="text" name="name" id="name" class="form-control" placeholder="Full name" required>
</div>
<div class="col-lg-6 col-12">
<input type="email" name="email" id="email" pattern="[^ @]*@[^ @]*" class="form-control" placeholder="Email address" required>
</div>
<div class="col-lg-6 col-12">
<input type="password" name="password" id="password" class="form-control" placeholder="password" >
</div>
<div class="col-lg-6 col-12">
<input type="password" name="cpassword" id="cpassword" class="form-control" placeholder="renter-password" >
</div>
<div class="col-lg-3 col-md-4 col-6 mx-auto">
<button type="submit" class="form-control" id="submit-button">Register Now</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- JAVASCRIPT FILES -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>