summaryrefslogtreecommitdiff
path: root/pages/event_widget.ecpp
blob: b4a80cb84d708f93ecd126de0d524827d53d6286 (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
<%pre>
#include <vdr/plugin.h>
#include <vdr/channels.h>
#include <vdr/epg.h>
#include <vdr/config.h>
#include <vdr/i18n.h>
#include "tools.h"

using namespace vdrlive;

</%pre>
<%args>
title;
short_description;
description;
channel_name;
start;
end;
</%args>
<%session scope="global">
bool logged_in(false);
</%session>
<{
if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
}>

			<table class="event" cellpadding="0" cellspacing="0">
				<tr><td class="station" colspan="2"><$ channel_name $></td></tr>
				<tr>
					<td class="tools">
					&nbsp;
					</td>
					<td class="content">
						<div class="info"><$ start $> - <$ end $></div>
						<div class="title"><$ title $></div>
						<div class="short"><$ short_description $></div>
						<div class="description"><$  description $></div>
					</td>
				</tr>
			</table>