';
// Print the page header
require 'modules/_shared/tmpl/'.tmpl.'/header.php';
// Print out some header info about this channel and time
?>
programs)) {
?>
programs as $show) {
// Print some additional information for movies
$additional = '';
if ($show->category_type == 'movie'
|| $show->category_type == 'Film') {
if ($show->airdate > 0)
$additional = sprintf('%4d', $show->airdate);
if (strlen($show->rating) > 0) {
if ($additional)
$additional .= ", ";
$additional .= "$show->rating";
}
if (strlen($show->starstring) > 0) {
if ($additional)
$additional .= ", ";
$additional .= $show->starstring;
}
if ($additional)
$additional = ' (' . $additional . ')';
}
$starttime = strftime($_SESSION['time_format'], $show->starttime);
$endtime = strftime($_SESSION['time_format'], $lastend);
/* Do we have a gap? */
$gap = $show->starttime - $lastend;
if (($gap > 0) && ($lastend != 0))
{
$gapmins = $gap / 60;
print <<< EOS
Missing programme data from $endtime to $starttime ($gapmins minutes) |
EOS;
}
/* Print the content */
$endtime = strftime($_SESSION['time_format'], $show->endtime);
$root = root;
$length = nice_length ($show->length);
print <<< EOS
$starttime – $endtime
|
EOS;
if ($show->hdtv)
echo 'HD';
print <<< EOS
$show->title$additional
|
$show->subtitle |
$show->description |
$length |
EOS;
$lastend = $show->endtime;
$row++;
}
?>