-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbusticket.php
More file actions
187 lines (151 loc) · 6.4 KB
/
busticket.php
File metadata and controls
187 lines (151 loc) · 6.4 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
<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Tourism Management System</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="applijewelleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" type="text/css" href="js/owl.carousel.min.css">
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href="css/font-awesome.css" rel="stylesheet">
<!-- Custom Theme files -->
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
// owl-carousel start
$(document).ready(function() {
$('.home-silder-outer').owlCarousel({
loop: true,
margin: 0,
nav: true,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 1,
nav: true
},
1000: {
items: 1,
nav: true,
loop: true,
margin: 0
}
},
autoplay: true,
smartSpeed:1000,
navText: ['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>']
});
});
</script>
<!--//end-animate-->
</head>
<body>
<?php include('includes/header.php');?>
<!-- home slider section start -->
<!--routes-->
<section class="mb-10">
<div class="holiday">
<div class="container"> <!--container-->
<div class="row bus-ticket-section-inner">
<div class="col-md-10 m-auto padd-5">
<div class="row g-0">
<div class="col-md-5">
<img src="images/10.jpg" class="img-fluid" alt="..." height="300px">
</div>
<div class="col-md-7 text-center item-center">
<div class="card-body">
<h5 class="card-title h1 card-text-1 mb-1">Buy bus tickets in easy steps</h5>
<form action="bus-route-list.php" method="get">
<div class="row item-center-1">
<!--selection -->
<div class="col-md-4">
<h4 class="mb-6">Leaving From:*</h4>
<select class="form-control" id="exampleFormControlSelect1" name="route1" id="packagetype">
<?php
$query="SELECT distinct`busfrom` FROM `tblbusroute`";
$result=$conn->query($query);
$fetch=$result->fetch_array();
do {
?>
<option value="<?php echo $fetch[0] ;?>"><?php echo $fetch[0]; ?></option>
<?php } while ($fetch=mysqli_fetch_row($result)) ?>
</select>
</div>
<!--selection end -->
<!--selection -->
<div class="col-md-4">
<h4 class="mb-6">Going To:*</h4>
<select class="form-control" id="exampleFormControlSelect1" name="route2" id="packagetype">
<?php
$query="SELECT distinct`busto` FROM `tblbusroute`";
$result=$conn->query($query);
$fetch=$result->fetch_array();
do {
?>
<option value="<?php echo $fetch[0] ;?>"><?php echo $fetch[0]; ?></option>
<?php } while ($fetch=mysqli_fetch_row($result)) ?>
</select>
</div>
<!--selection end -->
<!--date input-->
<div class="col-md-4 ">
<h4 class="mb-7">Departing On:*</h4>
<input type="date" name="ddate" class="form-control">
</div>
</div>
<div class="row item-center-1">
<div class="col-md-5 mt-5">
<input style="width: 100px; background: #34ad00;" class="btn btn-info package-view-btn" type="submit" name="route">
</div></div></form>
<?php
/*
if(isset($_POST['route'])){
$from = $_POST['route1'] ;
$to = $_POST['route2'];
$date = $_POST['date'];
header('location:bus-route-list.php');
}*/
?>
<!--date input-->
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</div><!--row-->
</div> <!--container-->
</div>
</section>
<!--- routes ---->
<div class="clearfix"></div>
<?php include('includes/footer.php');?>
<!-- signup -->
<?php include('includes/signup.php');?>
<!-- //signu -->
<!-- signin -->
<?php include('includes/signin.php');?>
<!-- //signin -->
<!-- write us -->
<?php include('includes/write-us.php');?>
<!-- //write us -->
</body>
</html>