-
Notifications
You must be signed in to change notification settings - Fork 1
/
routes_and_stations.php
188 lines (154 loc) · 4.72 KB
/
routes_and_stations.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="js/html5shiv-printshiv.js"></script>
<![endif]-->
<title> Metro Online Management</title>
<style type="text/css">
.demo-content{
padding: 50px;
font-size: 18px;
text-align: center;
background: #8eccc6;
margin:50px 22em 50px 22em;
}
.demo-content.bg-alt{
background: #abb1b8;
}
body{
padding-top: 128px;
}
.navbar-header {
height: 80px;
}
.navbar-brand {
padding-top: 0;
padding-bottom: 0;
line-height: 80px;
font-size: 30px;
}
.nav.navbar-nav > li > a {
padding-top: 30px;
padding-bottom: 30px;
}
.footer-basic-centered{
background-color: #232426;
box-sizing: border-box;
text-align: center;
font-size: 20px;
position: relative;
right: 0;
bottom: 0;
left: 0;
}
.footer-basic-centered .footer-links{
list-style: none;
font-weight: bold;
color: #ffffff;
padding: 20px;
}
.footer-basic-centered .footer-links a{
display:inline-block;
text-decoration: none;
color: inherit;
}
</style>
</head>
<body>
<script src="js/jquery-3.2.1.js"></script>
<script src="js/bootstrap.js"></script>
<div id="myNavbar" class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid bg-color">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
<span class="sr-only">Metro Online Management</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="HomePage.html">Metro Online Management</a>
</div>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="nav navbar-nav">
<li><a href="HomePage.html">Home</a></li>
<li><a href="admin_login.php">Admin Login</a></li>
<li><a href="smart_card_request_page.html">Smart Card Request</a></li>
<li><a href="smart_card_login.php">Smart Card Login</a></li>
<li><a href="train_and_timings.php">Trains and Timings</a></li>
<li class="active"><a href="routes_and_stations.php">Routes and Stations</a></li>
</ul>
</div>
</div>
</div>
<nav>
<div class="container">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#collapse1">Green Line</a>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse">
<ul class="list-group">
<?php
include("php/connect.php");
$con = OpenCon();
$stations1 = mysqli_query($con,"SELECT Station_Name FROM station WHERE Route_Id = 1");
$row_cnt = mysqli_num_rows($stations1);
while ( $rows = $stations1->fetch_row() ) {
foreach ($rows as $key => $value) {
echo '<li class="list-group-item">',$value,'</li>';
}
}
$stations1->free();
?>
</ul>
</div>
</div>
</div>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#collapse2">Purple Line</a>
</h4>
</div>
<div id="collapse2" class="panel-collapse collapse">
<ul class="list-group">
<?php
$stations2 = mysqli_query($con,"SELECT Station_Name FROM station WHERE Route_Id = 3");
$row_cnt = mysqli_num_rows($stations2);
while ( $rows = $stations2->fetch_row() ) {
foreach ($rows as $key => $value) {
echo '<li class="list-group-item">',$value,'</li>';
}
}
$stations2->free();
Closecon($con);
?>
</ul>
</div>
</div>
</div>
</div>
</nav>
<footer class="footer-basic-centered">
<p class="footer-links">
<a href="HomePage.html">Home</a>
|
<a href="contact_us.html">Contact Us</a>
</p>
</footer>
</body>
</html>