-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupcoming.php
33 lines (32 loc) · 986 Bytes
/
upcoming.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
<?php
// Include important files
require_once(dirname(__FILE__) . "/config.php");
// Include page specific functions
$sql = "select * from pvr_upcoming";
$result = $DB->fetch_all($sql);
?>
<?php include "header.php"; ?>
<h3>Upcoming Recordings</h3>
<table class="table table-condensed table-hover">
<thead>
<th>Series</th>
<th>Title</th>
<th>Subtitle</th>
<th>Time</th>
<th>Minutes</th>
<th>Channel</th>
</thead>
<?php
foreach ($result as $row) {
echo "<tr><td>" . $row["series_title"] . "</td>";
echo "<td><a href='program.php?id=" . $row["program_id"] . "&station_id=" . $row["station_id"];
echo "&time=" . $row["start_time"] . "'>" . $row["title"] . "</a></td>";
echo "<td>" . $row["subtitle"] . "</td>";
echo "<td>" . $row["start_time"] . "</td>";
echo "<td>" . $row["duration"] . "</td>";
echo "<td>" . $row["device_fccChannelNumber"] . "</td></tr>";
}
echo "</table>\n";
?>
<br />
<?php include "footer.php"; ?>