forked from prajwals420/Mumbai-Local-Train-Ticket-Booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrainschedule.php
118 lines (95 loc) · 2.9 KB
/
trainschedule.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
<?php
include 'connect.php' ;
session_start();
if ($_SESSION['log'] == '')
{
header("location:sindex.php");
}
include 'header.php';
?>
<div>
</div>
<style>
table#database_table {
font-size:16px;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
border-spacing: 0;
}
#database_table td, #database_table th {
border: 1px solid #ddd;
text-align: left;
padding: 8px;
}
#database_table tr:nth-child(even){background-color: #f2f2f2}
#database_table th {
padding-top: 11px;
padding-bottom: 11px;
background-color: black;
color: white;
}
</style>
<head>
<title>M-TICKET DATABASE</title>
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" />
</head>
<body >
<h2><center><b><img src="https://img.icons8.com/officel/70/000000/overtime.png"/>  PANVEL TO THANE TRAIN SCHEDULE  <img src="https://img.icons8.com/officel/70/000000/overtime.png"/></center></b></h2>
<div class="container">
<br />
<table id="database_table" class="table table-striped table-bordered">
<thead>
<tr>
<th>Panvel </th>
<th>Khandeshwar </th>
<th>Manasarovar</th>
<th>Kharghar</th>
<th>Belapur CBD</th>
<th>Seawood Darave</th>
<th>Nerul </th>
<th>Juinagar</th>
<th>Turbhe</th>
<th>Koparkhairne</th>
<th>Ghansoli</th>
<th>Rabale </th>
<th>Airoli</th>
<th>Thane</th>
</tr>
</thead>
<tbody>
<?php
$sql_transactions="SELECT * FROM `traintt` " ;
$result = $connect->query($sql_transactions);
while($row = $result->fetch_assoc()){
echo'<tr class="class="table table-striped table-bordered"">
<td>'.$row["Panvel"].'</td>
<td>'.$row["Khandeshwar"].'</td>
<td>'.$row["Manasarovar"].'</td>
<td>'.$row["Kharghar"].'</td>
<td>'.$row["Belapur CBD"].'</td>
<td>'.$row["Seawood Darave"].'</td>
<td>'.$row["Nerul"].'</td>
<td>'.$row["Juinagar"].'</td>
<td>'.$row["Turbhe"].'</td>
<td>'.$row["Koparkhairne"].'</td>
<td>'.$row["Ghansoli"].'</td>
<td>'.$row["Rabale"].'</td>
<td>'.$row["Airoli"].'</td>
<td>'.$row["Thane"].'</td>
';
}
?>
</tbody>
</table>
</div>
<script>
$(document).ready(function() {
$('#database_table').DataTable( {
"order": [[ 1, "asc" ]]
} );
} );
</script>
<?php include 'footer.php';
?>