-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
64 lines (55 loc) · 2.21 KB
/
Copy pathindex.php
File metadata and controls
64 lines (55 loc) · 2.21 KB
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
<!DOCTYPE html>
<html lang="pl">
<!-- WziumDio by workonfire -->
<!-- https://workonfi.re/?project=WziumDio -->
<?php
require_once "Radio.php";
if (isset($_GET['radio_station'])) $radio = new Radio($_GET['radio_station']);
?>
<head>
<meta charset="UTF-8">
<script src="https://kit.fontawesome.com/07fe25146f.js" crossorigin="anonymous"></script>
<title>WziumDio <?php
if (isset($radio)) $full_radio_name = $radio->display_name;
echo isset($full_radio_name) ? "- " . $full_radio_name : '';
?></title>
<link rel="icon" type="image/png" href="assets/icon.png"/>
<link rel="stylesheet" href="https://use.typekit.net/oov2wcw.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="fonts.css">
<link rel="stylesheet" href="style.css">
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<span id="wzium">wzium</span><span id="dio">dio</span>
</header>
<form action="index.php" method="get">
<p class="select-radio">
<label for="radio-stations">Stacja radiowa:</label>
<select id="radio-stations" name="radio_station">
<?php
Radio::showListEntries($radio ?? null);
?>
</select>
</p>
<button type="submit" class="mdc-button mdc-button--raised mdc-button--leading">
<span class="mdc-button__ripple"></span>
<i class="material-icons mdc-button__icon" aria-hidden="true">
queue_music
</i>
<span class="mdc-button__label">Sprawdź playlistę</span>
</button>
<br> <br>
</form>
<?php
if (isset($radio)) $radio->playlist->show();
else echo "<p>Nie wybrano żadnej stacji radiowej.</p>";
?>
<footer>
Stworzono przez <a href="https://workonfi.re">workonfire</a> <br><br>
</footer>
</body>
</html>