-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
120 lines (118 loc) · 5.49 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bus Management App</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="style2.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js"></script>
</head>
<body>
<div class="container">
<nav class="sidebar">
<h2>Delhi Bus Corparation</h2>
<ul>
<li><a href="#dashboard" onclick="showSection('dashboard')">Dashboard</a></li>
<li><a href="#buses" onclick="showSection('buses')">Buses</a></li>
<li><a href="#routes" onclick="showSection('routes')">Routes</a></li>
<li><a href="#drivers" onclick="showSection('drivers')">Drivers</a></li>
<li><a href="#List" onclick="showSection('List')">List</a></li>
<li><a href="#settings" onclick="showSection('settings')">Settings</a></li>
</ul>
</nav>
<main class="content">
<section id="dashboard" class="dashboard1">
<h1>Dashboard</h1>
<div class="dashboard-stats">
<div class="stat">
<h3>Total Buses</h3>
<p id="totalBuses">0</p>
</div>
<div class="stat">
<h3>Total Routes</h3>
<p id="totalRoutes">0</p>
</div>
<div class="stat">
<h3>Total Drivers</h3>
<p id="totalDrivers">0</p>
</div>
</section>
<section>
<canvas id="myChart" width="400" height="200"></canvas>
</section>
<section id="List">
<div class="container1">
<h1>Bus Availability System</h1>
<form id="bookingForm">
<div class="custom-select">
<label for="route">Select Route:</label>
<div class="select-box">
<div class="selected-option" id="selectedRoute">Route 1</div>
<div class="options" id="routeOptions">
<div class="option" data-value="route1">Route 1</div>
<div class="option" data-value="route2">Route 2</div>
</div>
</div>
</div>
<div class="custom-date">
<label for="date">Select Date:</label>
<input type="text" id="date" name="date" placeholder="Select Date" readonly>
</div>
<button type="submit">Check Availability</button>
</form>
<div id="availability"></div>
<div id="seatSelection" class="hidden">
<h2>Select Seats</h2>
<div id="seatMap"></div>
<button id="confirmBooking">Confirm Booking</button>
</div>
<div id="confirmation" class="hidden">
<h2>Booking Confirmed</h2>
<p>Your booking has been confirmed.</p>
</div>
</div>
</section>
<section id="buses">
<h1>Buses</h1>
<form id="busForm">
<input type="text" id="busNumber" placeholder="Bus Number" required>
<input type="text" id="busModel" placeholder="Bus Model" required>
<button type="submit">Add Bus</button>
</form>
<ul id="busList"></ul>
</section>
<section id="routes">
<h1>Routes</h1>
<form id="routeForm">
<input type="text" id="routeName" placeholder="Route Name" required>
<input type="text" id="routeDestination" placeholder="Destination" required>
<button type="submit">Add Route</button>
</form>
<ul id="routeList"></ul>
</section>
<section id="drivers">
<h1>Drivers</h1>
<form id="driverForm">
<input type="text" id="driverName" placeholder="Driver Name" required>
<input type="text" id="driverLicense" placeholder="License Number" required>
<button type="submit">Add Driver</button>
</form>
<ul id="driverList"></ul>
</section>
<section id="settings">
<h1>Settings</h1>
<form id="profileForm">
<input type="text" id="username" placeholder="Username" required>
<input type="email" id="email" placeholder="Email" required>
<button type="submit">Update Profile</button>
</form>
</section>
</main>
</div>
<script src="script.js"></script>
<script src="script1.js"></script>
</body>
</html>