-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaid-hiring.php
231 lines (208 loc) · 11.1 KB
/
maid-hiring.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
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['submit']))
{
$catid=$_POST['catid'];
$name=$_POST['name'];
$contno=$_POST['contno'];
$email=$_POST['email'];
$address=$_POST['address'];
$gender=$_POST['gender'];
$wsf=$_POST['wsf'];
$wst=$_POST['wst'];
$startdate=$_POST['startdate'];
$notes=$_POST['notes'];
$bookingid=mt_rand(100000000, 999999999);
$sql="insert into tblmaidbooking(BookingID,CatID,Name,ContactNumber,Email,Address,Gender,WorkingShiftFrom,WorkingShiftTo,StartDate,Notes)values(:bookingid,:catid,:name,:contno,:email,:address,:gender,:wsf,:wst,:startdate,:notes)";
$query=$dbh->prepare($sql);
$query->bindParam(':bookingid',$bookingid,PDO::PARAM_STR);
$query->bindParam(':catid',$catid,PDO::PARAM_STR);
$query->bindParam(':name',$name,PDO::PARAM_STR);
$query->bindParam(':contno',$contno,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':address',$address,PDO::PARAM_STR);
$query->bindParam(':gender',$gender,PDO::PARAM_STR);
$query->bindParam(':wsf',$wsf,PDO::PARAM_STR);
$query->bindParam(':wst',$wst,PDO::PARAM_STR);
$query->bindParam(':startdate',$startdate,PDO::PARAM_STR);
$query->bindParam(':notes',$notes,PDO::PARAM_STR);
$query->execute();
$LastInsertId=$dbh->lastInsertId();
if ($LastInsertId>0) {
echo '<script>alert("Your Booking Request Has Been Send. We Will Contact You Soon")</script>';
echo "<script>window.location.href ='maid-hiring.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}
}
?>
<!doctype html>
<html class="no-js" lang="zxx">
<head>
<title>Maid Hiring Management System || Hiring Form</title>
<!-- CSS here -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="assets/css/slicknav.css">
<link rel="stylesheet" href="assets/css/price_rangs.css">
<link rel="stylesheet" href="assets/css/animate.min.css">
<link rel="stylesheet" href="assets/css/magnific-popup.css">
<link rel="stylesheet" href="assets/css/fontawesome-all.min.css">
<link rel="stylesheet" href="assets/css/themify-icons.css">
<link rel="stylesheet" href="assets/css/themify-icons.css">
<link rel="stylesheet" href="assets/css/slick.css">
<link rel="stylesheet" href="assets/css/nice-select.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/responsive.css">
</head>
<body>
<?php include_once('includes/header.php');?>
<!-- Hero Area Start-->
<div class="slider-area ">
<div class="single-slider section-overly slider-height2 d-flex align-items-center" data-background="assets/img/hero/about.jpg">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="hero-cap text-center">
<h2>Hiring Form</h2>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Hero Area End -->
<!-- ================ contact section start ================= -->
<section class="contact-section">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="contact-title" style="text-align: center;color: blue;">Looking To Hire A Maid?</h2>
<p class="contact-title" style="text-left: center;color: green;">Post Requirement Here ></p>
</div>
<div class="col-lg-8" style="padding-top=20px">
<form class="form-contact contact_form" action="" method="post">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Name:</label>
<input class="form-control" name="name" id="name" type="text" placeholder="Enter your name">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Contact Number:</label>
<input type="text" name="contno" id="contno" pattern="[0-9]{10}" maxlength="10" class="form-control" required>
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Address(to be hired):</label>
<textarea class="form-control" name="address" id="address" placeholder="Enter Your Addresss"></textarea>
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px; padding-left: 20px;">Gender:</label>
<select name="gender" class="form-control" required='true'>
<option value="">Select Gender</option>
<option value="Female">Female</option>
<option value="Male">Male</option>
</select>
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Email:</label>
<input class="form-control" name="email" id="email" type="email" placeholder="Email">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;padding-left: 20px;">Select Service:</label>
<select name="catid" class="form-control" required='true'>
<option value="">Select Service</option>
<?php
$sql2 = "SELECT * from tblcategory ";
$query2 = $dbh -> prepare($sql2);
$query2->execute();
$result2=$query2->fetchAll(PDO::FETCH_OBJ);
foreach($result2 as $row2)
{
?>
<option value="<?php echo htmlentities($row2->ID);?>"><?php echo htmlentities($row2->CategoryName
);?></option>
<?php } ?></select>
</div>
</div>
<div class="col-sm-12" style="padding-top: 20px;">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Work Shift From:</label>
<input class="form-control" name="wsf" id="wsf" type="time">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Work Shift To:</label>
<input class="form-control" name="wst" id="wst" type="time">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Start Date:</label>
<input class="form-control" name="startdate" id="startdate" type="date">
</div>
</div>
<div class="col-12">
<div class="form-group">
<label style="color: red;font-weight: bold;font-size: 20px;">Notes:</label>
<textarea class="form-control" name="notes" id="notes" type="text" placeholder="Enter Some Notes"></textarea>
</div>
</div>
</div>
<div class="form-group mt-3">
<button type="submit" class="button button-contactForm boxed-btn" name="submit">Send</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- ================ contact section end ================= -->
<?php include_once('includes/footer.php');?>
<!-- JS here -->
<!-- All JS Custom Plugins Link Here here -->
<script src="./assets/js/vendor/modernizr-3.5.0.min.js"></script>
<!-- Jquery, Popper, Bootstrap -->
<script src="./assets/js/vendor/jquery-1.12.4.min.js"></script>
<script src="./assets/js/popper.min.js"></script>
<script src="./assets/js/bootstrap.min.js"></script>
<!-- Jquery Mobile Menu -->
<script src="./assets/js/jquery.slicknav.min.js"></script>
<!-- Jquery Slick , Owl-Carousel Plugins -->
<script src="./assets/js/owl.carousel.min.js"></script>
<script src="./assets/js/slick.min.js"></script>
<script src="./assets/js/price_rangs.js"></script>
<!-- One Page, Animated-HeadLin -->
<script src="./assets/js/wow.min.js"></script>
<script src="./assets/js/animated.headline.js"></script>
<!-- Scrollup, nice-select, sticky -->
<script src="./assets/js/jquery.scrollUp.min.js"></script>
<script src="./assets/js/jquery.nice-select.min.js"></script>
<script src="./assets/js/jquery.sticky.js"></script>
<script src="./assets/js/jquery.magnific-popup.js"></script>
<!-- contact js -->
<script src="./assets/js/contact.js"></script>
<script src="./assets/js/jquery.form.js"></script>
<script src="./assets/js/jquery.validate.min.js"></script>
<script src="./assets/js/mail-script.js"></script>
<script src="./assets/js/jquery.ajaxchimp.min.js"></script>
<!-- Jquery Plugins, main Jquery -->
<script src="./assets/js/plugins.js"></script>
<script src="./assets/js/main.js"></script>
</body>
</html>