-
Notifications
You must be signed in to change notification settings - Fork 5
/
relation.php
210 lines (189 loc) · 11.8 KB
/
relation.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
<!DOCTYPE html>
<?php
include( 'script/globals.php' );
if ( isset($_GET['lang']) &&
preg_match("/^[a-zA-Z0-9_-]+$/", $_GET['lang']) &&
is_dir($path_to_www.$_GET['lang']) &&
is_file($path_to_www.$_GET['lang'].'/header.inc') ) {
$lang = $_GET['lang'];
} else {
$lang = 'en';
}
$inc_lang = './' . $lang . '/';
?>
<html lang="<?php echo $lang; ?>">
<?php $title="OSM Relation"; include $inc_lang.'html-head.inc'; ?>
<body>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script src="/script/relation.js"></script>
<div id="wrapper">
<?php include $inc_lang.'header.inc' ?>
<main id="main" class="results">
<div id="relationmap"></div>
<div class="relationtables">
<h3 id ="osm-relation">OSM Relation</h3>
<?php if ( $lang == 'de' ) { ?>
<span id="progress_section">Download: <progress id="download" value=0 max=2000></progress> <span id="download_text">0</span> ms /
Analyse: <progress id="analysis" value=0 max=2000></progress> <span id="analysis_text">0</span> ms
</span>
<span id="beta" class="attention" style="font-weight: 1000;font-size:1.2em;">BETA: Möglicherweise sind nicht alle Mitglieder der Relation auf der Karte angezeigt.</span>
<p>
Diese Analyse konzentriert sich hauptsächlich auf (PTv2) "route" Relationen für Öffentlichen Nahverkehr.<br />
Möglicherweise werden auch für andere Arten von Relationen brauchbare Details aufgezeigt, es gibt aber keine Garantie.
</p>
<?php } elseif ( $lang == 'fr' ) { ?>
<span id="progress_section">Download: <progress id="download" value=0 max=2000></progress> <span id="download_text">0</span> ms /
Analysis: <progress id="analysis" value=0 max=2000></progress> <span id="analysis_text">0</span> ms
</span>
<span id="beta" class="attention" style="font-weight: 1000;font-size:1.2em;">BETA : il est possible que certains membres de la relation ne soient pas affichés sur la carte.</span>
<p>
Cette analyse se concentre principalement sur les relations "route" (PTv2) de transports publics.<br />
Il est possible que celle-ci fonctionne avec d'autres types de relation mais sans garantie.
</p>
<?php } else { ?>
<span id="progress_section">Download: <progress id="download" value=0 max=2000></progress> <span id="download_text">0</span> ms /
Analysis: <progress id="analysis" value=0 max=2000></progress> <span id="analysis_text">0</span> ms
</span>
<span id="beta" class="attention" style="font-weight: 1000;font-size:1.2em;">BETA: Possibly not all members of the relation are shown on the map.</span>
<p>
This analysis focuses mainly on (PTv2) "route" relations for public transport.<br />
Nevertheless, useful details may also be shown for other types of relations, but there is no guarantee.
</p>
<?php } ?>
<section class="tabbing" id="tbg_blindtext">
<input type="radio" id="tbg_blindtext_0" name="tbg_blindtext" class="hackbox" checked>
<div class="tabcontent">
<ul class="tabs">
<li><label for="tbg_blindtext_0" class="tab_active">Details</label></li>
<li><label for="tbg_blindtext_1" class="platforms_stops">Platforms</label></li>
<li><label for="tbg_blindtext_2" class="platforms_stops">Stops</label></li>
<li><label for="tbg_blindtext_3">Ways</label></li>
<li><label for="tbg_blindtext_4">Others</label></li>
</ul>
<div class="tableFixHead">
<table class="relationtable">
<thead class="results-tableheaderrow">
<tr>
<th class="results-name">Key</th>
<th class="results-name">Value</th>
</tr>
</thead>
<tbody id="relation-values" class="results-tablerow">
</tbody>
</table>
</div>
</div>
<input type="radio" id="tbg_blindtext_1" name="tbg_blindtext" class="hackbox">
<div class="tabcontent">
<ul class="tabs">
<li><label for="tbg_blindtext_0">Details</label></li>
<li><label for="tbg_blindtext_1" class="tab_active platforms_stops">Platforms</label></li>
<li><label for="tbg_blindtext_2" class="platforms_stops">Stops</label></li>
<li><label for="tbg_blindtext_3">Ways</label></li>
<li><label for="tbg_blindtext_4">Others</label></li>
</ul>
<div class="tableFixHead">
<table class="relationtable">
<thead class="results-tableheaderrow">
<tr>
<th class="results-number" style="width: 2.3em">#</th>
<th class="results-number" style="width: 5em">Member #</th>
<th class="results-name">Role</th>
<th class="results-name">Name / Ref / Description</th>
<th class="results-name">ID</th>
</tr>
</thead>
<tbody id="platform-members" class="results-tablerow">
</tbody>
</table>
</div>
</div>
<input type="radio" id="tbg_blindtext_2" name="tbg_blindtext" class="hackbox">
<div class="tabcontent">
<ul class="tabs">
<li><label for="tbg_blindtext_0">Details</label></li>
<li><label for="tbg_blindtext_1" class="platforms_stops">Platforms</label></li>
<li><label for="tbg_blindtext_2" class="tab_active platforms_stops">Stops</label></li>
<li><label for="tbg_blindtext_3">Ways</label></li>
<li><label for="tbg_blindtext_4">Others</label></li>
</ul>
<div class="tableFixHead">
<table class="relationtable">
<thead class="results-tableheaderrow">
<tr>
<th class="results-number" style="width: 2.3em">#</th>
<th class="results-number" style="width: 5em">Member #</th>
<th class="results-name">Role</th>
<th class="results-name">Name / Ref / Description</th>
<th class="results-name">ID</th>
</tr>
</thead>
<tbody id="stop-members" class="results-tablerow">
</tbody>
</table>
</div>
</div>
<input type="radio" id="tbg_blindtext_3" name="tbg_blindtext" class="hackbox">
<div class="tabcontent">
<ul class="tabs">
<li><label for="tbg_blindtext_0">Details</label></li>
<li><label for="tbg_blindtext_1" class="platforms_stops">Platforms</label></li>
<li><label for="tbg_blindtext_2" class="platforms_stops">Stops</label></li>
<li><label for="tbg_blindtext_3" class="tab_active">Ways</label></li>
<li><label for="tbg_blindtext_4">Others</label></li>
</ul>
<div class="tableFixHead">
<table class="relationtable">
<thead class="results-tableheaderrow">
<tr>
<th class="results-number" style="width: 2.3em">#</th>
<th class="results-number" style="width: 5em">Member #</th>
<th class="results-name">Role</th>
<th class="results-name">Name / Ref / Description</th>
<th class="results-name">ID</th>
<!-- <th class="results-symbol"> </th> -->
</tr>
</thead>
<tbody id="route-members" class="results-tablerow">
</tbody>
</table>
</div>
</div>
<input type="radio" id="tbg_blindtext_4" name="tbg_blindtext" class="hackbox">
<div class="tabcontent">
<ul class="tabs">
<li><label for="tbg_blindtext_0">Details</label></li>
<li><label for="tbg_blindtext_1" class="platforms_stops">Platforms</label></li>
<li><label for="tbg_blindtext_2" class="platforms_stops">Stops</label></li>
<li><label for="tbg_blindtext_3">Ways</label></li>
<li><label for="tbg_blindtext_4" class="tab_active">Others</label></li>
</ul>
<div class="tableFixHead">
<table class="relationtable">
<thead class="results-tableheaderrow">
<tr>
<th class="results-number" style="width: 2.3em">#</th>
<th class="results-number" style="width: 5em">Member #</th>
<th class="results-name">Role</th>
<th class="results-name">Name / Ref / Description</th>
<th class="results-name">ID</th>
</tr>
</thead>
<tbody id="other-members" class="results-tablerow">
</tbody>
</table>
</div>
</div>
</section>
</div>
<script>
showrelation();
</script>
<iframe style="display:none" id="hiddenIframe" name="hiddenIframe"></iframe>
</main> <!-- main -->
<hr class="clearing" />
<?php include $inc_lang.'footer.inc' ?>
</div> <!-- wrapper -->
</body>
</html>