summaryrefslogtreecommitdiff
path: root/whats_on_now.ecpp
blob: 73dfdd7861daff8ab3e72c6db3387d00374fc7a4 (plain)
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
<%pre>
#include <vdr/plugin.h>
#include <vdr/channels.h>
#include <vdr/epg.h>
#include <vdr/config.h>

</%pre>
<%args>
</%args>
<{

char buf[6];
struct tm tm_r;
//strftime(buf, sizeof(buf), "%H.%M", localtime(tm_r));

cSchedulesLock schedulesLock;
const cSchedules* Schedules = cSchedules::Schedules(schedulesLock);


}>
<html>
	<head>
		<title>VDR-Live - <$ tr("What's on now?") $></title>
		<link rel="stylesheet" type="text/css" href="/styles.css" />
	</head>
	<body>
		<div class="left_area">
<& menu >
		</div>
		<div class="inhalt">
			<div class="head_box">
				Was l&auml;ft jetzt um Uhr
			</div>

<{
	for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) {
		if (!Channel->GroupSep()) {
			const cSchedule *Schedule = Schedules->GetSchedule(Channel);
			if (Schedule) {
				const cEvent *Event = Schedule->GetPresentEvent();
					if (Event) {
						const char *title = Event->Title() ? Event->Title() : '';
}>
			<div class="event">
				<div class="station"><$ Channel->Name() $></div>
				<span class="title"><$ Event->Title() $></span><br/>
				<span class="short"></span>
				<p><? Event->Description() ? Event->Description() ?></p>
			</div>
<{
					}
			}
		}
	}
}>
		</div>
	</body>
</html>