-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.php
230 lines (210 loc) · 6.2 KB
/
home.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
require_once('DBconnect.php');
session_start();
?>
<title>Home Page</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
justify-content: top;
align-items: center;
min-height: 100vh;
}
.welcome-message {
background-color: #1b5b00;
color: #ff0000;
padding: 10px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
text-align: center;
width: 100%;
}
.welcome-message2 {
background-color: #ffffff;
color: #ff0000;
padding: 10px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
text-align: center;
width: 70%;
}
.developer {
background-color: #d7d7d7;
color: #009721;
padding: 10px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
text-align: center;
width: 70%;
}
.login-box {
background-color: #ffffff;
border-radius: 5px;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
width: 300px;
text-align: center;
}
.login-box h2 {
margin-bottom: 20px;
}
.login-box input[type="phone"],
.login-box input[type="text"],
.login-box input[type="password"] {
width: 90%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 100px;
}
.login-box input[type="submit"] {
background-color: #147700;
color: #ffffff;
border: none;
padding: 10px 30px;
cursor: pointer;
border-radius: 10px;
}
.page-links-box {
background-color: #f9f9f9;
border-radius: 5px;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
width: 50%;
text-align: center;
margin-top: 20px;
display: flex;
justify-content: space-between;
}
.page-links-box a {
color: #1b5b00;
text-decoration: none;
margin: 0;
}
.page-links-box3 {
background-color: #f9f9f9;
border-radius: 5px;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
width: 25%;
text-align: center;
margin-top: 20px;
display: flex;
justify-content: space-between;
}
.page-links-box3 a {
color: #1b5b00;
text-decoration: none;
margin: 0;
}.image-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 20px;
max-width: 1900px;
margin: 0 auto;
background-color: #d7d7d7;
color: #009721;
padding: 10px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
text-align: center;
width: 70%;
}
.image-item {
width: calc(20.33% - 20px);
padding: 10px;
box-sizing: border-box;
text-align: center;
font-weight: bold;
}
.image-item img {
max-width: 100%;
height: auto;
}
@media screen and (max-width: 768px) {
.image-item {
width: calc(50% - 20px);
}
}
</style>
</head>
<body>
<div class="welcome-message">
<h2><marquee behavior = 'alternate'>Welcome to Railway E-ticketing System</marquee></h2>
<a href="home.php">
<img src="pics/bangladesh-railway.png" alt="Logo" width="100">
</a>
<p><span style="color: rgb(0, 0, 0); font-weight: bold">Developed by TEAM ROCK</span></p>
</div>
<br>
<br>
<br>
<?php
$l1 = 'home.php';
$l2 = 'login.php';
$l3 = 'registration.php';
$l4 = 'train_schedule.php';
$l5 = 'myacc.php';
$ses = false;
if (isset($_SESSION['phone'])) {
$ses = true;
}
if ($ses == false) {
echo '<div class="page-links-box">';
echo "<a href='$l1'>Home</a>";
echo "<a href='$l2'>Login</a>";
echo "<a href='$l3'>Registration</a>";
echo "<a href='$l4'>Train Information</a>";
echo '</div>';
}elseif($ses == true){
echo '<div class="page-links-box3">';
echo "<a href='$l1'>Home</a>";
echo "<a href='$l4'>Train Information</a>";
echo "<a href='$l5'>My Account</a>";
echo '</div>';
}
?>
</body>
<p><br></p>
<div class="welcome-message2">
<img src="pics/BD.png" alt="Logo" width="50">
<p><span style="color: rgb(0, 0, 0); font-weight: bold">This Website is a property of the Government of Peoples Republic of Bangladesh.<br> Any forgery of the service provided by this website or copying anything of it is punishable by the law.</span></p>
</div>
<div class="developer">
<h1 align='center'>Developers</h1>
</div>
<div class="image-list">
<div class="image-item">
<img src="pics/ahnaf.jpg" alt="Image 1" width="100">
<p>Asif Ahnaf Chowdhury</p>
</div>
<div class="image-item">
<img src="pics/hanif.jpg" alt="Image 2" width="100">
<p>Md. Abu Hanif Siam</p>
</div>
<div class="image-item">
<img src="pics/niloy.jpg" alt="Image 3" width="100">
<p>Md. Nafis Sadique Niloy</p>
</div>
<div class="image-item">
<img src="pics/alvi.jpg" alt="Image 4" width="100">
<p>Abdul Khalek Alve</p>
</div>
<div class="image-item">
<img src="pics/akib.jpg" alt="Image 5" width="100">
<p>Akib Sarwar</p>
</div>
</div>
</body>
</html>