blob: 4f7dc8ff5f272588ebe13ba1c86ad5f7bc3f1b8a [file] [log] [blame]
<?php
require_once("core.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Panell d'informaciĆ³</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<form action="info.php" method="GET">
<p>
<label for="station">EstaciĆ³:</label>
<select name="station" id="station" required disabled></select>
</p>
<p>
<label for="view">Vista:</label>
<select name="view" id="view" required>
<?php
foreach (views::$views as $view) {
echo '<option value="'.(int)$view.'">'.security::htmlsafe(views::$viewsNames[$view] ?? "undefined").'</option>';
}
?>
</select>
</p>
<p>
<button>Mostrar</button>
</p>
</form>
<p class="disclaimer">Font: <a href="https://developer.tmb.cat/">TMB</a>. Dades actualitzades cada setmana.</p>
<script src="js/index.js"></script>
</body>
</html>