-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompanyreg.php
More file actions
335 lines (290 loc) · 15.9 KB
/
companyreg.php
File metadata and controls
335 lines (290 loc) · 15.9 KB
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
<!--Copyrights author: Frankline Bwire-->
<!--insurance management system-->
<!--theme copyrights Colorlib-->
<?php
include 'connect.php';
//Declare Variables
$cname='';
$cmail='';
$caddress='';
$cocity='';
$cocountry='';
$cid='';
$coumail='';
$cphone='';
//get form values
if(isset($_POST['cosubmit'])){
$cname=mysqli_real_escape_string($conn,$_POST['cname']);
$cmail=mysqli_real_escape_string($conn,$_POST['cmail']);
$caddress=mysqli_real_escape_string($conn,$_POST['caddress']);
$cocity=mysqli_real_escape_string($conn,$_POST['cocity']);
$cocountry=mysqli_real_escape_string($conn,$_POST['cocountry']);
$cid=mysqli_real_escape_string($conn,$_POST['cid']);
$coumail=mysqli_real_escape_string($conn,$_POST['coumail']);
$cphone=mysqli_real_escape_string($conn,$_POST['cphone']);
//insert values into database
$csql="insert into company_details(co_name,co_email,co_address,co_city,co_country,co_id,co_umail,co_phone) values ('$cname','$cmail','$caddress','$cocity','$cocountry','$cid','$coumail','$cphone')";
$cquery=mysqli_query($conn,$csql);
if(!$cquery){
die ('Data Entry Unsuccessful'. mysqli_error($conn));
}
}
//$cname,$cmail,$caddress,$cocity,$cocountry,$cid,$coumail,$cphone
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Narok Online Insurance System</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/themify-icons.css">
<link rel="stylesheet" href="vendors/fontawesome/css/all.min.css">
<link rel="stylesheet" href="vendors/owl-carousel/owl.carousel.min.css">
<link rel="stylesheet" href="vendors/animate-css/animate.css">
<!-- main css -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/responsive.css">
</head>
<body>
<!--================Header Menu Area =================-->
<header class="header_area" style="background-color: black">
<div class="main_menu">
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand logo_h" href="home.php">Narok Insurance </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse offset" id="navbarSupportedContent">
<ul class="nav navbar-nav menu_nav ml-auto">
<li class="nav-item"><a class="nav-link" href="home.php">Home</a></li>
<li class="nav-item submenu dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Registration</a>
<ul class="dropdown-menu">
<li class="nav-item"><a class="nav-link" href="policyreg.php">Personal</a></li>
<li class="nav-item"><a class="nav-link" href="companyreg.php">Company</a></li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="price.html">Pricing</a></li>
<li class="nav-item submenu dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Policies</a>
<ul class="dropdown-menu">
<li class="nav-item"><a class="nav-link" href="auto.php">Auto/Vehicle</a></li>
<li class="nav-item"><a class="nav-link" href="health.php">Health</a></li>
<li class="nav-item"><a class="nav-link" href="life.php">Life</a></li>
<li class="nav-item"><a class="nav-link" href="realestate.php">Real Estate</a></li>
<li class="nav-item"><a class="nav-link" href="cargo.php">Cargo</a></li>
<li class="nav-item"><a class="nav-link" href="incomeprotection.php">Income Protection</a></li>
</ul>
</li>
</ul>
</div>
<div class="right-button">
<ul>
<li><a class="sign_up" href="index.php">Sign Out</a></li>
</ul>
</div>
</div>
</nav>
</div>
</header>
<!--================Header Menu Area =================-->
<!--================Policy Registration =================-->
<section class="blog_area single-post-area area-padding">
<div class="container">
<div class="row">
<div class="col-lg-8 posts-list">
<form action="companyreg.php" method="post">
<h1 style="color: black">Update Company Details
<hr style="color: black">
</h1>
<p style="color: black">Fill form below to apply your employer's details.</p>
<div class="mt-10">
<input type="text" name="cname" placeholder="Company Name" onfocus="this.placeholder = ''" onblur="this.placeholder = 'First Name'" required class="single-input">
</div>
<div class="mt-10">
<input type="email" name="cmail" placeholder="Company Email address" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Email address'" required class="single-input">
</div>
<div class="input-group-icon mt-10">
<input type="text" name="caddress" placeholder="Company Address" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Company Address'" required class="single-input">
</div>
<div class="input-group-icon mt-10">
<div class="form-select" id="default-select" align="center">
<select name="cocity">
<option value="1">* City</option>
<option>Nairobi</option>
<option>Nakuru</option>
<option>Mombasa</option>
<option>Eldoret</option>
<option>Naivasha</option>
</select>
<select style="margin-left: 20px" name="cocountry">
<option value="1">* Country</option>
<option>Kenya</option>
<option>Uganda</option>
<option>Tanzania</option>
<option>Somalia</option>
</select>
</div>
</div>
<div class="mt-10">
<input type="text" name="cid" placeholder="Company ID Number" required class="single-input-primary">
</div>
<div class="mt-10">
<input type="email" name="coumail" placeholder="User Email Address" required class="single-input-primary">
</div>
<div class="mt-10">
<input type="text" name="cphone" placeholder="Company Phone Number" required class="single-input-accent" maxlength="20">
</div>
<br>
<div class="mt-10" align="center">
<button type="submit" name="cosubmit" class="genric-btn success-border">Update Details
</button>
<button style="margin-left: 50px" type="reset" name="submitreg" class="genric-btn danger-border"><a href="home.html">Cancel Update</a>
</button>
</div>
</form>
</div>
<!--==End policy Registration==-->
<!--category section-->
<div class="col-lg-4">
<div class="blog_right_sidebar">
<!--Category Section-->
<aside class="single_sidebar_widget post_category_widget">
<h4 class="widget_title">Category</h4>
<ul class="list cat-list">
<li>
<a href="auto.php" class="d-flex">
<p>Auto Insurance</p>
</a>
</li>
<li>
<a href="cargo.php" class="d-flex">
<p>Cargo Insurance</p>
</a>
</li>
<li>
<a href="life.php" class="d-flex">
<p>Life Insurance </p>
</a>
</li>
<li>
<a href="health.php" class="d-flex">
<p>Health Insurance</p>
</a>
</li>
<li>
<a href="realestate.php" class="d-flex">
<p>Real Estate Insurance</p>
</a>
</li>
<li>
<a href="incomeprotection.php" class="d-flex">
<p>Income Protection Insurance</p>
</a>
</li>
</ul>
</aside>
<aside class="single_sidebar_widget post_category_widget">
<h4 class="widget_title">Quick Links</h4>
<ul class="list cat-list">
<li>
<a href="#" class="d-flex">
<p style="color: #f84b67">Update Company Details</p>
</a>
</li>
<li>
<a href="policyreg.php" class="d-flex">
<p>User Policy Registration</p>
</a>
</li>
</ul>
</aside>
</div>
</div>
<!--End category section-->
</div>
</div>
</section>
<!--================Blog Area end =================-->
<!-- ================ start footer Area ================= -->
<footer class="footer-area">
<div class="container">
<div class="row">
<div class="col-lg-3 col-sm-6 mb-4 mb-xl-0 single-footer-widget">
<h4>Theme:</h4>
<p>Assuring you a hopeful future</p>
<div class="footer-logo">
<h3 style="color: white; font-weight: bolder">Narok Online Insurance System</h3>
</div>
</div>
<div class="col-lg-3 col-sm-6 mb-4 mb-xl-0 single-footer-widget">
<h4>Contact Info</h4>
<div class="footer-address">
<p>Address : 6789 Street <br> Narok</p>
<span>Phone : +123 456789</span>
<span>Email : narokims@gmail.com</span>
</div>
</div>
<div class="col-lg-3 col-md-8 mb-4 mb-xl-0 single-footer-widget">
<h4>Newsletter</h4>
<p>Subscribe to receive our lates news letters</p>
<div class="form-wrap" id="mc_embed_signup">
<form target="_blank" action="https://spondonit.us12.list-manage.com/subscribe/post?u=1462626880ade1ac87bd9c93a&id=92a4423d01" method="get">
<div class="input-group">
<input type="email" class="form-control" name="EMAIL" placeholder="Your Email Address" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Your Email Address '">
<div class="input-group-append">
<button class="btn click-btn" type="submit">
<i class="fab fa-telegram-plane"></i>
</button>
</div>
</div>
<div style="position: absolute; left: -5000px;">
<input name="b_36c4fd991d266f23781ded980_aefe40901a" tabindex="-1" value="" type="text">
</div>
<div class="info"></div>
</form>
</div>
</div>
</div>
<div class="footer-bottom row align-items-center text-center text-lg-left no-gutters">
<p class="footer-text m-0 col-lg-8 col-md-12">
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>
document.write(new Date().getFullYear());
</script> All rights reserved
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</p>
<div class="col-lg-4 col-md-12 text-center text-lg-right footer-social">
<a href="#"><i class="ti-facebook"></i></a>
<a href="#"><i class="ti-twitter-alt"></i></a>
<a href="#"><i class="ti-dribbble"></i></a>
<a href="#"><i class="ti-linkedin"></i></a>
</div>
</div>
</div>
</footer>
<!-- ================ End footer Area ================= -->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-2.2.4.min.js"></script>
<script src="js/popper.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="vendors/owl-carousel/owl.carousel.min.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<script src="js/waypoints.min.js"></script>
<script src="js/mail-script.js"></script>
<script src="js/contact.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/mail-script.js"></script>
<script src="js/theme.js"></script>
</body>
</html>