-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcancelled_movers_cost.php
More file actions
271 lines (250 loc) · 18.9 KB
/
Copy pathcancelled_movers_cost.php
File metadata and controls
271 lines (250 loc) · 18.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
<?php session_start();
if(!isset($_SESSION["username"]))
{
header("Location:userlogin.php");
}
else
{
$username=$_SESSION['username'];
@$id=$_REQUEST['id'];
@$booking_date=$_REQUEST['booking_date'];
@$origin=$_REQUEST['origin'];
@$destination=$_REQUEST['destination'];
@$user_card_no=$_REQUEST['user_card_no'];
@$basis=$_REQUEST['basis'];
@$w_name=$_REQUEST['w_name'];
@$web_cost=$_REQUEST['web_cost'];
@$total=$_REQUEST['total'];
@$w_username=$_REQUEST['w_username'];
@$phone=$_REQUEST['phone'];
@$email=$_REQUEST['email'];
@$address=$_REQUEST['address'];
@$pin=$_REQUEST['pin'];
@$city=$_REQUEST['city'];
@$sub=$_REQUEST['sub'];
@$age=$_REQUEST['age'];
@$gender=$_REQUEST['gender'];
@$doc=$_REQUEST['doc'];
@$certified_level=$_REQUEST['certified_level'];
@$experience=$_REQUEST['experience'];
@$service=$_REQUEST['service'];
@$from_date=$_REQUEST['from_date'];
@$time=$_REQUEST['time'];
@$worker_rate=$_REQUEST['worker_rate'];
@$pay_method=$_REQUEST['pay_method'];
$a=mysqli_connect("localhost","root","","Mahika") or die("unable to connect");
@$query="select booking_request from movers_bookings where id='$id'";
@$result = mysqli_query($a, $query);
if ($result)
{
while ($row = mysqli_fetch_array($result))
{
$booking_request = $row['booking_request'];
}
if ($phone!=null)
{
if ($booking_request=="Cancelled by user" or $booking_request="Cancelled due to insufficient balance" or $booking_request="Cancelled by worker")
{
if ($origin!=null)
{
?>
<!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">
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mahika | Home Service</title>
<link rel="shortcut icon" href="img/favicon.ico" />
<!-- Icons font CSS-->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Catamaran:100,200,300,400,500,600,700,800,900" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet">
<link href="vendor/mdi-font/css/material-design-iconic-font.min.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-4.7/css/font-awesome.min.css" rel="stylesheet" media="all">
<!-- Font special for pages-->
<link href="https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Vendor CSS-->
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="all">
<link href="css/hover-min.css" rel="stylesheet">
<!-- Main CSS-->
<link href="css/style.css" rel="stylesheet" media="all">
<link href="css/main.css" rel="stylesheet" media="all">
<link href="css/date_time_picker.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery2.js"></script>
<script language="javascript">
$(document).ready(function () {
$("#txtdate").datepicker({
minDate: 0
});
});
</script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light fixed-top" style="background:-webkit-gradient(linear, right top, left top, from(#1da1f2), to(#005f7f));" id="mainNav">
<div class="container">
<div class="navbar-header">
<a class=" nav-link js-scroll-trigger" href="#top">
<img class="img-rounded" src="img/logo.png" />
</a>
</div>
<a class="navbar-brand " href="#page-top"><h2><small style="font-family: Arial;border-bottom: 2px solid gainsboro"><?php echo $_SESSION['name'];?></small></h2></a>
<button class="navbar-toggler navbar-toggler-right ml-auto" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger hvr-glow" href="user_profile.php">User-Profile</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger hvr-glow " href="find_service.php">Find-Service</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger hvr-glow " href="user_service.php">Record-Book</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger hvr-glow " href="user_help.php">Help</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger hvr-glow " href="u_logout.php">Log Out</a>
</li>
</ul>
</div>
</div>
</nav>
<section class="features" id="features" style="background: url(img/bg-pattern.png), -webkit-linear-gradient(left, #6f42c1, #e4606d);">
<form action="user_movers_cancelled.php" method="post">
<input type="submit" class="cont_button2 btn-dark" value="<< Back">
</form>
<div class="container">
<div style="text-align: center;margin-top: 60px;">
</div>
<div class="row">
<div class="col-sm-12 col-md-12 my-auto">
<div class="container-fluid">
<div class="row">
<div class="col-md-4">
<div class="feature-item" style="text-align:left;padding-left:15px;padding-right:15px;margin-top: 10px;border-radius: 10px;background: rgba(0,0,0,.6);">
<div class="loginBox2">
<img src="img/kk.png" class="user1">
<center><h3 class="text-white">Home Service Details</h3><br></center>
<p style="color: #f1b0b7;">Service : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $service; ?></b></p>
<p style="color: #f1b0b7;">Origin : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $origin; ?></b></p>
<p style="color: #f1b0b7;">Destination : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $destination; ?></b></p>
<p style="color: #f1b0b7;">Date from : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $from_date; ?></b></p>
<p style="color: #f1b0b7;">Work start time : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $time; ?></b></p>
<p style="color: #f1b0b7;">Booking date : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $booking_date; ?></b></p>
</div>
</div><br>
</div>
<div class="col-md-4">
<div class="feature-item" style="text-align:left;padding-left:15px;padding-right:15px;margin-top: 10px;border-radius: 10px;background: rgba(0,0,0,.6);">
<div class="loginBox2">
<img src="img/truck2.png" class="user1">
<center><h3 class="text-white">Packers & Movers Professional</h3><br></center>
<?php
if ($basis=="Company")
{
?>
<p style="color: #f1b0b7;">Company : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $w_name; ?></b></p>
<p style="color: #f1b0b7;">Phone No : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo "+91 ".$phone; ?></b></p>
<p style="color: #f1b0b7;">Email : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $email; ?></b></p>
<p style="color: #f1b0b7;">Address : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $address." , ".$sub ." , ".$pin." , ".$city; ?></b></p>
<p style="color: #f1b0b7;">Certification : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $doc; ?></b></p>
<?php
}
else
{
?>
<p style="color: #f1b0b7;">Name : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $w_name; ?></b></p>
<p style="color: #f1b0b7;">Phone No : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo "+91 ".$phone; ?></b></p>
<p style="color: #f1b0b7;">Email : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $email; ?></b></p>
<p style="color: #f1b0b7;">Address : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $address." , ".$sub ." , ".$pin." , ".$city; ?></b></p>
<p style="color: #f1b0b7;">Gender : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $gender; ?></b></p>
<p style="color: #f1b0b7;">Age : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $age; ?></b></p>
<p style="color: #f1b0b7;">Education : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $certified_level; ?></b></p>
<?php
}
?>
<p style="color: #f1b0b7;">Experience : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $experience." years"; ?></b></p>
</div>
</div><br>
</div>
<div class="col-md-4">
<div class="feature-item" style="text-align:left;padding-left:15px;padding-right:15px;margin-top: 10px;border-radius:10px;background: rgba(0,0,0,.6);">
<div class="loginBox2">
<img src="img/pay.png" class="user1">
<center><h3 class="text-white">Payment Info</h3><br></center>
<p style="color: #f1b0b7;">Status : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $booking_request; ?></b></p>
<p style="color: #f1b0b7;">Mode : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $pay_method; ?></b></p>
<?php
if ($pay_method=='Card Payment')
{
?>
<p style="color: #f1b0b7;">Card No : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo $user_card_no." "; ?></b></p>
<?php
}
?>
<p style="color: #f1b0b7;;border-bottom: 2px solid deeppink">Rate : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo "Rs. ".$worker_rate." / service"; ?></b></p>
<p style="color: #f1b0b7;">Charge : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo "Rs. ".$worker_rate; ?></b></p>
<p style="color: #f1b0b7;border-bottom: 2px solid deeppink">Web cost : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo "Rs. ".$web_cost; ?></b></p>
<p style="color: lawngreen;">Total Payment : <b style="color: white;font-family: 'Muli', 'Helvetica', 'Arial', 'sans-serif'"><?php echo "Rs. ".$total; ?></b></p>
</div>
</div>
</div>
</div>
<br>
</section>
<!-- Jquery JS-->
<script src="vendor/jquery1/jquery.min.js"></script>
<!-- Vendor JS-->
<script src="vendor/select2/select2.min.js"></script>
<script src="vendor/jquery-validate/jquery.validate.min.js"></script>
<script src="vendor/bootstrap-wizard/bootstrap.min.js"></script>
<script src="vendor/bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="js/jquery_date_time_picker.js"></script>
<script src="js/jquery_date_time_picker1.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="js/new-age.min.js"></script>
<!-- Main JS-->
<script src="js/global.js"></script>
<footer>
<div class="container">
<p>© Mahika Home Service. All Rights Reserved.</p>
<ul class="list-inline">
<li class="list-inline-item">
<a href="#">Privacy</a>
</li>
<li class="list-inline-item">
<a href="#">Terms</a>
</li>
</ul>
</div>
</footer>
</body>
</html>
<!-- end document-->
<?php
}
}
}
else
{
header("Location:user_movers_cancelled.php");
}
}
}
?>