-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmaincopy.php
More file actions
executable file
·244 lines (225 loc) · 9.47 KB
/
maincopy.php
File metadata and controls
executable file
·244 lines (225 loc) · 9.47 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
<?php
SESSION_start();
if(!isset($_SESSION['userData']))
{
header("location:login/index.php");
}
?>
<!DOCTYPE html>
<html>
<title>carlelo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Raleway", Arial, Helvetica, sans-serif}
.mySlides {display:none}
body{
background: url(images/back.jpg) no-repeat center center fixed;
background-size: cover;
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
</style>
<body class="w3-content w3-border-left w3-border-right">
<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-light-grey w3-collapse w3-top" style="z-index:3;width:260px" id="mySidebar">
<div class="w3-container w3-display-container w3-padding-16">
<i onclick="w3_close()" class="fa fa-remove w3-hide-large w3-button w3-transparent w3-display-topright"></i>
<h2 class="w3-text-blue">CARLELO.COM</h2>
<h3>Rent cars from</h3>
<h6>Rs 299 per hour</h6>
<hr>
<form action="action_page.php" method="post">
<p><label><i class="fa fa-car"></i> CAR ID</label></p>
<input class="w3-input w3-border" id="car_id_input" type="text" placeholder="Enter ID" name="car_id" pattern="[0-9]{3}" title="3 digit ID" value="" required>
<p><label><i class="fa fa-calendar-check-o"></i> PICK UP</label></p>
<input class="w3-input w3-border" type="date" name="pick_date" required>
<p><label><i class="fa fa-star"></i> PICK UP TIME</label></p>
<input class="w3-input w3-border" type="time" name="pick_time" required>
<p><label><i class="fa fa-calendar-o"></i> DROP OFF</label></p>
<input class="w3-input w3-border" type="date" name="drop_date" required>
<p><label><i class="fa fa-star"></i> DROP OFF TIME</label></p>
<input class="w3-input w3-border" type="time" name="drop_time" required>
<p><button class="w3-button w3-block w3-blue w3-left-align" type="submit"><i class="fa fa-search w3-margin-right"></i> BOOK</button></p>
</form>
</div>
<div class="w3-bar-block">
<a href="maincopy.php" class="w3-bar-item w3-button w3-padding-16"><i class="fa fa-car"></i> Car Profile</a>
<a href="rules.php" class="w3-bar-item w3-button w3-padding-16"><i class="fa fa-times"></i> Rules</a>
<a href="about.php" class="w3-bar-item w3-button w3-padding-16"><i class="fa fa-info"></i> About US</a>
<a href="javascript:void(0)" class="w3-bar-item w3-button w3-padding-16" onclick="document.getElementById('subscribe').style.display='block'"><i class="fa fa-rss"></i> Subscribe</a>
<a href="contact.php" class="w3-bar-item w3-button w3-padding-16"><i class="fa fa-envelope"></i> Contact</a>
</div>
</nav>
<!-- Top menu on small screens -->
<header class="w3-bar w3-top w3-hide-large w3-blue w3-xlarge">
<span class="w3-bar-item">Carlelo</span>
<a href="javascript:void(0)" class="w3-right w3-bar-item w3-button" onclick="w3_open()"><i class="fa fa-bars"></i></a>
</header>
<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:260px">
<!-- Push down content on small screens -->
<div class="w3-hide-large" style="margin-top:80px"></div>
<a href="mybooking.php"><h2 class="w3-text-blue" style="float: left"> Hi <?php echo $_SESSION['userData']['first_name']; ?></h2></a><h2 style="float:right; color: white;"><a href="login/logout.php">LOGOUT</a></h2>
<!-- Slideshow Header -->
<div class="w3-container">
<div class="w3-display-container mySlides" align="center">
<img src="images/bugatti.png" style="height:400px;width:auto;margin-bottom:-6px">
<div class="w3-display-bottomright w3-container w3-blue">
<p>Bugatti</p>
</div>
</div>
<div class="w3-display-container mySlides" align="center">
<img src="images/camero.png" style="height:400px;width:auto;margin-bottom:-6px">
<div class="w3-display-bottomright w3-container w3-blue">
<p>Camaro</p>
</div>
</div>
<div class="w3-display-container mySlides" align="center">
<img src="images/porsche.png" style="height:400px;width:auto;margin-bottom:-6px">
<div class="w3-display-bottomright w3-container w3-blue">
<p>Porsche</p>
</div>
</div>
<div class="w3-display-container mySlides" align="center">
<img src="images/swift.png" style="height:400px;width:auto;margin-bottom:-6px">
<div class="w3-display-bottomright w3-container w3-blue">
<p>swift</p>
</div>
</div>
</div>
<div class="w3-row-padding w3-section">
<div class="w3-col s3">
<img class="demo w3-opacity w3-hover-opacity-off" src="images/bugatti.png" style="width:100%;cursor:pointer" onclick="currentDiv(1)" title="Bugatti">
</div>
<div class="w3-col s3">
<img class="demo w3-opacity w3-hover-opacity-off" src="images/camero.png" style="width:100%;cursor:pointer" onclick="currentDiv(2)" title="camero">
</div>
<div class="w3-col s3">
<img class="demo w3-opacity w3-hover-opacity-off" src="images/porsche.png" style="width:100%;cursor:pointer" onclick="currentDiv(3)" title="Porsche">
</div>
<div class="w3-col s3">
<img class="demo w3-opacity w3-hover-opacity-off" src="images/swift.png" style="width:100%;cursor:pointer" onclick="currentDiv(4)" title="New Swift">
</div>
</div>
<div class="w3-container">
<h4 class="w3-text-blue w3-light-grey"><strong>Our Fleet:</strong></h4>
<div class="w3-row w3-large w3-light-grey">
<table>
<tr class="w3-text-blue"><th>Car ID</th><th>Model</th><th>Company</th><th>Base Amt/hour</th></tr>
<tr id="swift"><td>104</td><td>Swift</td><td>Maruti</td><td>Rs 299.00</td></tr>
<tr id="por"><td>103</td><td>911</td><td>Porsche</td><td>Rs 999.00</td></tr>
<tr id="cam"><td>102</td><td>Camaro</td><td>Chevrolet</td><td>Rs 499.00</td></tr>
<tr id="bug"><td>101</td><td>Chiron</td><td>Bugatti</td><td>Rs 1999.00</td></tr>
</table>
</div>
<hr>
<p class="w3-light-grey" style="float: right">Subscribe to receive updates on available special offers.</p>
<p><button class="w3-button w3-blue w3-third" onclick="document.getElementById('subscribe').style.display='block'">Subscribe</button></p>
</div>
<hr>
<footer class="w3-container w3-padding-16" style="margin-top:32px">By <a href="https://sites.google.com/ves.ac.in/apn/" class="w3-hover-text-blue w3-text-white">Ankit-Pratik-Nilesh</a></footer>
<!-- End page content -->
</div>
<!-- Subscribe Modal -->
<div id="subscribe" class="w3-modal">
<div class="w3-modal-content w3-animate-zoom w3-padding-large">
<div class="w3-container w3-white w3-center">
<i onclick="document.getElementById('subscribe').style.display='none'" class="fa fa-remove w3-button w3-xlarge w3-right w3-transparent"></i>
<h2 class="w3-wide">SUBSCRIBE</h2>
<p>Join our mailing list to receive updates on special offers!</p>
<form action="subscribe.php" method="post">
<p><input class="w3-input w3-border" type="email" name="semail" placeholder="Enter e-mail"></p>
<button class="w3-button w3-padding-large w3-blue w3-margin-bottom" type="submit">Subscribe</button>
</form>
</div>
</div>
</div>
<script>
// Script to open and close sidebar when on tablets and phones
function w3_open() {
document.getElementById("mySidebar").style.display = "block";
document.getElementById("myOverlay").style.display = "block";
}
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
document.getElementById("myOverlay").style.display = "none";
}
// Slideshow Images
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function currentDiv(n) {
document.getElementById("car_id_input").defaultValue = 100+n;
showDivs(slideIndex = n);
switch(n) {
case 1:
color_row(bug);
reset_row(cam);
reset_row(swift);
reset_row(por);
break;
case 2:
color_row(cam);
reset_row(swift);
reset_row(bug);
reset_row(por);
break;
case 3:
color_row(por);
reset_row(swift);
reset_row(bug);
reset_row(cam);
break;
case 4:
color_row(swift);
reset_row(bug);
reset_row(por);
reset_row(cam);
break;
}
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("demo");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length}
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" w3-opacity-off", "");
}
x[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " w3-opacity-off";
}
function color_row(x) {
x.style.background="#5DADE2";
}
function reset_row(x) {
x.style.background="#f1f1f1";
}
//googlesignout
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
console.log('User signed out.');
});
}
</script>
</body>
</html>