forked from abd-abdullah/bus-ticket-reservation-system
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
81 lines (66 loc) · 2.08 KB
/
index.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
<?php include"inc/header.php";?>
<?php
$AllCity = $city->GetAllCityByUniqueName();
$AllCity = mysqli_fetch_all($AllCity,MYSQLI_ASSOC);
?>
</head>
<?php include("inc/header_bottom.php"); ?>
<!--- banner ---->
<!---728x90-->
<div class="container">
<div class="col-md-3 bann-info1" >
</div>
<div class="col-md-7 bann-info">
<h2>Book Your Ticket Here</h2>
<?php if(isset($sms)){ echo $sms; } ?>
<form action="search_bus.php" method="POST">
<div class="ban-top">
<div class="form-group bnr-left col-md-4">
<label >From</label>
<input list="from_city" type="text" class="form-control datalist" name="from_city" placeholder="Typle/Select Your City">
<datalist id="from_city">
<!-- showing all cities-->
<?php
foreach($AllCity as $value)
{
?>
<option value="<?php echo $value['city_name']; ?>">
<?php
}
?>
</datalist>
</div>
<div class="form-group bnr-left col-md-4">
<label >To</label>
<input list="to_city" type="text" class="form-control datalist" name="to_city" placeholder="Typle/Select Your City">
<datalist id="to_city">
<!-- showing all cities-->
<?php
foreach($AllCity as $value)
{
?>
<option value="<?php echo $value['city_name']; ?>">
<?php
}
?>
</datalist>
</div>
<div class="clearfix"></div>
</div>
<div class="ban-bottom">
<div class="form-group bnr-left col-md-4">
<label >Date of Journey</label>
<input type="Date" class="form-control" name="journey_date" >
</div>
<div class="form-group bnr-left col-md-4">
<label></label></br>
<button name="btn" class="seabtn">Search Buses</button>
</div>
<div class="clearfix"></div>
</div>
</form>
</div>
<div class="clearfix"></div>
</div>
<!--- /routes -->
<?php include"inc/footer.php" ; ?>