Beispiel #1
0
    echo "        <tr class='Infob'>\n";
    echo "            <td colspan='3' style='text-align: center'>" . $message . "</td>\n";
    echo "        </tr>\n";
    foreach ($client->getShowInstance($start, $end, $show_name) as $showinfo) {
        echo "            <tr class='Show'>\n";
        echo "                <td>" . strftime("%d/%m/%Y %H:%M", $showinfo["Start Time"]) . " - " . strftime("%H:%M", $showinfo["End Time"]) . "</td>\n";
        echo "                <td>" . $showinfo["Channel Name"] . "</td>\n";
        echo "                <td>" . $showinfo["Description"] . "</a></td>\n";
        echo "</td>\n";
        echo "            </tr>\n";
    }
}
include "head.php";
?>
<body>
<?php 
echo $show_name;
?>
            <table id="ShowInformation" align="center"><?php 
$tmp = getdate();
$a = "'" . $tmp['year'] . '-' . $tmp['mon'] . '-' . $tmp['mday'] . " 00:00:00'";
$tmp = getdate(time() + 24 * 60 * 60);
$b = "'" . $tmp['year'] . '-' . $tmp['mon'] . '-' . $tmp['mday'] . " 00:00:00'";
layout_shows("1=1", "starttime < " . $a, "Recent");
layout_shows($a . "< starttime", "starttime < " . $b, "Today");
layout_shows($b . "< starttime", "1=1", "Soon");
?>
            </table>
</body>
</html>
Beispiel #2
0
}
?>
        </ul>
        </div>
        <div id="infobar">
            <ul>
                <li><a href='mailto:tv.whuffie@spamgourmet.com'>Contact</a></li>
                <li><a href=''>About</a></li>
                <li><a href=''>FAQ</a></li>
            </ul>
        </div>
    </div>
    <div id="main">
        <table id="ShowInformation">
            <tbody class="tbody">
<?php 
layout_shows(convertTime(0) . " < endtime ", "starttime < " . convertTime(0), "On Now", 'now', 2, $client->getTimeFlag("now"));
layout_shows(convertTime(0) . " < starttime ", "starttime < " . convertTime(2) . " AND starttime < " . convertDate(1), "Soon", 'soon', 3, $client->getTimeFlag("soon"));
layout_shows(convertTime(2) . " < starttime ", "starttime < " . convertDate(1), "Later Today", 'later', 4, $client->getTimeFlag("later"));
layout_shows(convertDate(1) . " < starttime ", "starttime < " . convertDate(2), "Tomorrow", 'tomorrow', 4, $client->getTimeFlag("tomorrow"));
for ($c = 2; $c < 7; $c += 1) {
    $tmp = getdate(time() + $c * 24 * 60 * 60);
    layout_shows(convertDate($c) . " < starttime ", "starttime < " . convertDate($c + 1), "{$tmp['mday']}  {$tmp['month']} {$tmp['year']}", "plus{$c}days", 5, 0);
}
?>
            </tbody>
        </table>
    </div>
</body>
</html>