avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame] | 1 | <?php |
| 2 | require_once("core.php"); |
avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame] | 3 | ?> |
| 4 | <!DOCTYPE html> |
| 5 | <html> |
| 6 | <head> |
| 7 | <meta charset="utf-8"> |
| 8 | <title>Panell d'informació</title> |
| 9 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 10 | <link rel="stylesheet" href="css/index.css"> |
| 11 | </head> |
| 12 | <body> |
| 13 | <form action="info.php" method="GET"> |
| 14 | <p> |
| 15 | <label for="station">Estació:</label> |
| 16 | <select name="station" id="station" required disabled></select> |
| 17 | </p> |
| 18 | <p> |
| 19 | <label for="view">Vista:</label> |
| 20 | <select name="view" id="view" required> |
| 21 | <?php |
| 22 | foreach (views::$views as $view) { |
| 23 | echo '<option value="'.(int)$view.'">'.security::htmlsafe(views::$viewsNames[$view] ?? "undefined").'</option>'; |
| 24 | } |
| 25 | ?> |
| 26 | </select> |
| 27 | </p> |
| 28 | <p> |
| 29 | <button>Mostrar</button> |
| 30 | </p> |
| 31 | </form> |
| 32 | |
Adrià Vilanova Martínez | a3494a8 | 2021-09-12 18:43:03 +0200 | [diff] [blame] | 33 | <p class="disclaimer">Font: <a href="https://developer.tmb.cat/">TMB</a>. Dades actualitzades cada setmana.</p> |
| 34 | |
avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame] | 35 | <script src="js/index.js"></script> |
| 36 | </body> |
| 37 | </html> |