|
|
|
@ -34,9 +34,14 @@
|
|
|
|
|
<?php $stop = $_GET['stop']; ?>
|
|
|
|
|
|
|
|
|
|
<header>
|
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
|
|
|
<nav class="navbar navbar-light bg-light">
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<span class="navbar-brand">NexTrip停留所の情報</span>
|
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" href="https://gist.github.com/Epicpkmn11/6e60adbf3475277b753b259ab02a53cd" target="_blank">ソースコード</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
@ -48,7 +53,7 @@
|
|
|
|
|
<form>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<label for="stop" class="input-group-text">停留所</label>
|
|
|
|
|
<input type="text" id="stop" name="stop" class="form-control" value="<?php echo $stop; ?>">
|
|
|
|
|
<input type="text" id="stop" name="stop" class="form-control" placeholder="12345" value="<?php echo $stop; ?>">
|
|
|
|
|
<input type="submit" class="btn btn-outline-secondary">
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
@ -74,7 +79,7 @@
|
|
|
|
|
if(!$json) {
|
|
|
|
|
echo "<h2 class=\"alert alert-danger\">{$stop}は無効な停留所です。</h2>";
|
|
|
|
|
} else {
|
|
|
|
|
echo "<h2>停留所{$stop}のNexTrip情報</h2>";
|
|
|
|
|
echo "<h2 class=\"border-bottom\">停留所{$stop}のNexTrip情報</h2>";
|
|
|
|
|
echo '<div class="row row-cols-2 row-cols-md-4 row-cols-lg-6">';
|
|
|
|
|
foreach($json as $bus) {
|
|
|
|
|
echo '<div class="col">';
|
|
|
|
|