-
Notifications
You must be signed in to change notification settings - Fork 0
/
transport.php
108 lines (96 loc) · 4.43 KB
/
transport.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
<?php
session_start();
if(isset($_SESSION['customer_email']))
{
$user=$_SESSION['customer_email'];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="design.css">
<link rel="icon" type="image/x-icon" href="icons/favicon.ico">
<title>Euphoria | Transport</title>
</head>
<body>
<div class="topnav">
<form class="example" action="goods.php" method="post">
<a href="index.php" style = "color:FE7E6D; margin-top: 12px;"><img src="images/Euphoria1.png" height=60 width=120 valign=middle></a>
<input type="text" placeholder="Search.." name="bar" id="bar">
<button type="submit"><i class="fa-search"><img src="icons/search.svg" width="20" height="20" valign="middle"></i></button>
<a class="nav-link" href="cart.php"><img src="icons/cart.svg" height="50" width="70" class="cart"><p id="cart-item" style="margin-top:-50px; margin-left:220px; background-color: #ca1f08; color: #ffffff; border-radius: 4px;" class="badge badge-danger"></p></a>
<?php if(isset($_SESSION['customer_email']))
{
echo " ";
}
else
{
echo "<a href='sign.php'><img src='icons/user.svg' height='65' width='100' class='user'></a>";
} ?>
<a href="home.php" style="margin-top:24px" ><?php if(isset($_SESSION['customer_email']))
{
echo "   Hi, ". strtoupper($user);
}
else
{
echo "HI, Guest";
} ?></a>
</form>
</div>
<ul class="nav">
<li class="nav"><a href="goods.php">Essential Goods</a></li>
<li class="nav"><a href="hospitalservices.php">Hospital Services</a></li>
<li class="nav"><a href="transport.php">Transport</a></li>
<li class="nav"><a href="covid19test.php">Covid-19 Test</a></li>
<li class="nav"><a href="bookanurse.php">Book A Nurse</a></li>
<li class="nav"><a href="donation.php">Donation</a></li>
<li class="nav"><a href="helpdesk.php">Help Desk</a></li>
<li class="nav"><a href="about.php">About Us</a></li>
</ul>
<div class="container">
<div class="row">
<div class="column"><br><br>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d7777.277390802726!2d77.60391562365176!3d12.930927870315594!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bae14531eedd659%3A0x3cde8534fb610682!2sS.G.%20Palya%2C%20Bengaluru%2C%20Karnataka%20560029!5e0!3m2!1sen!2sin!4v1648454663265!5m2!1sen!2sin"
width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
<div class="column">
<form method="POST" action="trans.php" >
<br><br>
<label for="start">Starting Point</label>
<select id="start" name="start">
<option value="....">....</option>
<?php
include ('connect.php');
$res=mysqli_query($con,"select distinct start from transport;");
while($row=mysqli_fetch_array($res)):?>
<option value="<?php echo $row['start'];?>"><?php echo $row['start'];?></option>
<?php endwhile;?>
</select>
<label for="destination">Destination</label>
<select id="destination" name="destination">
<option value="....">....</option>
<?php
include ('connect.php');
$res=mysqli_query($con,"select distinct destination from transport;");
while($row=mysqli_fetch_array($res)):?>
<option value="<?php echo $row['destination'];?>"><?php echo $row['destination'];?></option>
<?php endwhile;?>
</select>
</select>
<label for="type">Type of Vehicle</label>
<select id="type" name="type">
<option value="....">....</option>
<option value="Two-Wheeler">Two-Wheeler</option>
<option value="Four-Wheeler">Four-Wheeler</option>
</select>
<br><br>
<a href=""><button type="submit" value="Submit" class="button1" action="trans.php">Check Amount</button></a>
<br><br>
<input type="text" id="name" name="name" placeholder="Amount" value="--">
</form>
</div>
</div>
</div>
</body>
</html>