-
Notifications
You must be signed in to change notification settings - Fork 1
/
register.php
148 lines (137 loc) · 7.53 KB
/
register.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
<!-- signin.php -->
<?php include 'template/header.php'; ?>
<body>
<?php include 'template/nav-bar.php'; ?>
<!-- END nav -->
<section class="home-slider owl-carousel" style="height: 400px;">
<div class="slider-item" style="background-image: url('images/bg_1.jpg');" data-stellar-background-ratio="0.5">
<div class="overlay"></div>
<div class="container">
<div class="row slider-text align-items-center justify-content-center">
<div class="col-md-10 col-sm-12 ftco-animate text-center" style="padding-bottom: 25%;">
<p class="breadcrumbs"><span class="mr-2"><a href="index.php">Home</a></span> <span>Register</span></p>
<h1 class="mb-3">Register</h1>
</div>
</div>
</div>
</div>
</section>
<section class="ftco-section bg-light">
<div class="container">
<div class="row justify-content-center mb-5 pb-5">
<div class="col-md-7 text-center heading-section ftco-animate">
<span class="subheading">Register</span>
<h2>Register In Our Site</h2>
</div>
</div>
<div class="row">
<div class="col-md-12 dish-menu">
<div class="nav nav-pills justify-content-center ftco-animate" id="v-pills-tab" role="tablist" aria-orientation="vertical">
<a class="nav-link py-3 px-4 active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true"><span class="flaticon-meat"></span> As Customer</a>
<a class="nav-link py-3 px-4" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false"><span class="flaticon-cutlery"></span> As Restaurant</a>
</div>
<!--register as customer-->
<div class="tab-content py-5" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
<div class="row">
<div class="col-lg-2"></div>
<div class="col-lg-8">
<div class="menus d-flex ftco-animate" style="background: white;">
<div class="row" style="width: 100%">
<div class="col-md-12">
<!-- register as customer -->
<form action="manage-insert.php" method="POST" enctype="multipart/form-data">
<div class="form-group">
<input type="text" name="fullname" class="form-control" required="" placeholder="Your Name">
</div>
<div class="form-group">
<input type="email" name="email" class="form-control" required="" placeholder="Your Email">
</div>
<div class="form-group">
<input type="text" name="phone" class="form-control" required="" placeholder="Your Phone">
</div>
<div class="form-group">
<textarea name="address" id="" cols="30" rows="2" class="form-control" placeholder="Address"></textarea>
</div>
<div class="form-group">
<input type="password" name="password" class="form-control" required="" placeholder="Your Password">
</div>
<div class="form-group">
<input type="file" name="image" class="form-control" required="" >
</div>
<div class="form-group">
<input type="submit" value="Register" name="regascus" class="btn btn-primary py-3 px-5">
</div>
</form>
<p class="text-center">For Login <a href="login.php">Click Here</a> </p>
</div>
</div>
</div>
</div>
</div>
</div><!-- END -->
<!--register as restaurant-->
<div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab">
<div class="row">
<div class="col-lg-2"></div>
<div class="col-lg-8">
<div class="menus d-flex ftco-animate" style="background: white;">
<div class="row" style="width: 100%">
<div class="col-md-12">
<form action="manage-insert.php" method="POST" enctype="multipart/form-data">
<div class="form-group">
<input type="text" name="fullname" class="form-control" required="" placeholder="Restaurant Name">
</div>
<div class="form-group">
<input type="email" name="email" class="form-control" required="" placeholder="Restaurant Email">
</div>
<div class="form-group">
<input type="text" name="phone" class="form-control" required="" placeholder="Restaurant Phone">
</div>
<div class="form-group">
<input type="text" name="bkashnumber" class="form-control" required="" placeholder="Restaurant Bkash Number">
</div>
<div class="form-group">
<select class="form-control " name="area" required="">
<option value=""> -Select Restaurant Area- </option>
<?php
include 'dbCon.php';
$con = connect();
$sql = "SELECT * FROM `locations`;";
$result = $con->query($sql);
foreach ($result as $r) {
?>
<option value="<?php echo $r['id']; ?>"><?php echo $r['location_name']; ?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<textarea name="address" id="" cols="30" rows="2" class="form-control" placeholder="Restaurant Address"></textarea>
</div>
<div class="form-group">
<input type="password" name="password" class="form-control" required="" placeholder="Password">
</div>
<div class="form-group">
<input type="file" name="image" class="form-control" required="" >
</div>
<div class="form-group">
<input type="submit" value="Register" name="regasres" class="btn btn-primary py-3 px-5">
</div>
</form>
<p class="text-center">For Login <a href="login.php">Click Here</a> </p>
</div>
</div>
</div>
</div>
</div>
</div><!-- END -->
</div>
</div>
</div>
</div>
</section>
<?php include 'template/instagram.php'; ?>
<?php include 'template/footer.php'; ?>
<?php include 'template/script.php'; ?>
</body>
</html>