-
Notifications
You must be signed in to change notification settings - Fork 2
/
fee.php
155 lines (126 loc) · 5.16 KB
/
fee.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
<?php
session_start();
include('config.php');
include('sessioncheck.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Fees</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Facebook Opengraph integration: https://developers.facebook.com/docs/sharing/opengraph -->
<meta property="og:title" content="">
<meta property="og:image" content="">
<meta property="og:url" content="">
<meta property="og:site_name" content="">
<meta property="og:description" content="">
<!-- Twitter Cards integration: https://dev.twitter.com/cards/ -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">
<!-- Place your favicon.ico and apple-touch-icon.png in the template root directory -->
<link href="img/favicon.png" rel="shortcut icon" type="image/png">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800" rel="stylesheet">
<!-- Bootstrap CSS File -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Libraries CSS Files -->
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/animate-css/animate.min.css" rel="stylesheet">
<!-- Main Stylesheet File -->
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/util.css">
</head>
<body>
<div id="preloader"></div>
<?php include('header.php'); ?>
<!-- #header -->
<div class="limiter">
<div class="container-login100" style="background-image: url('img/carbgdash.jpg');">
<div class="wrap-login100 p-l-110 p-r-110 p-t-62 p-b-33">
<?php
$uid = $_SESSION['log']['useruid'];
$qry = mysqli_query($con,"SELECT * FROM logtable WHERE useruid='$uid' ORDER BY id DESC");
$qry1 = mysqli_num_rows($qry);
if($qry1)
{
$row = mysqli_fetch_array($qry);
if($row['status']=='Left' and $row['payment']=='')
{
?>
<form class="login100-form validate-form flex-sb flex-w" method="post" action="payment.php">
<span class="login100-form-title p-b-53">
Fee Generated
</span>
<?php
$from = $row['fromtime'];
$to = $row['totime'];
$id = $row['id'];
$t1 = StrToTime ( $from );
$t2 = StrToTime ( $to );
$diff = $t2 - $t1;
$hours = $diff / ( 60 * 60 );
$fee = 60*$hours;
$fee = round($fee, 0, PHP_ROUND_HALF_UP);
?>
<div class="wrap-input100 validate-input" >
<input class="input100" type="text" name="fee" value="<?php echo $fee; ?>" readonly/>
<span class="focus-input100"></span>
</div>
<input type="hidden" name="id" value="<?php echo $id; ?>">
<div class="container-login100-form-btn m-t-17">
<button class="login100-form-btn">
Pay
</button>
</div>
</form>
<?php
}
else
{
?>
<form class="login100-form validate-form flex-sb flex-w" method="post" action="payment.php">
<span class="login100-form-title p-b-53">
Car Still Parked!<br>(Enter OTP2)
</span>
</form>
<?php
}
}
else
{
?>
<form class="login100-form validate-form flex-sb flex-w" method="post" action="payment.php">
<span class="login100-form-title p-b-53">
Car Still Parked! (Enter OTP2)
</span>
</form>
<?php
}
?>
</div>
</div>
</div>
<?php include('footer.php'); ?>
<!-- #footer -->
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
<!-- Required JavaScript Libraries -->
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/superfish/hoverIntent.js"></script>
<script src="lib/superfish/superfish.min.js"></script>
<script src="lib/morphext/morphext.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/stickyjs/sticky.js"></script>
<script src="lib/easing/easing.js"></script>
<!-- Template Specisifc Custom Javascript File -->
<script src="js/custom.js"></script>
<script src="contactform/contactform.js"></script>
</body>
</html>