summaryrefslogtreecommitdiff
path: root/pages/pageelems.ecpp
blob: 326a8b8ef78e56ce7341852af3dc8b7be9d03a5b (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
59
60
61
<%pre>
#include <string>
#include <vdr/epg.h>
#include "tools.h"

using namespace std;

</%pre>
<%def doc_type>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</%def>

<%def logo>
<img src="logo.png" alt="VDR Live!" class="logo"/>
</%def>

<#
<%def header_box>
<%args>
content[];
component;
</%args>
<{
}>
			<div class="head_box_l">
				<div class="head_box_m">
					<div class="head_box_r">
						<table class="head_box_text"><tr><td>
%							for(content_type::const_iterator it = content.begin(); it != content.end(); ++it) {
								<$ *it $>
%							}
%							if (!component.empty()) {
							<& (component) &>
%							}
						</td></tr></table>
					</div>
				</div>
			</div>
</%def>
#>

<%def event_timer>
<%args>
	tChannelID channelid;
	tEventID eventid;
</%args>
	<a href="edit_timer.html?channelid=<$ *channelid.ToString() $>&eventid=<$ eventid $>"><img src="record.png" alt="" <& tooltip.hint text=(tr("Record this")) &> border="0"/></a>
</%def>

<%def ajax_js>
	<script type="text/javascript" language="javascript" src="ajax.js"></script>
</%def>

<%def play_recording>
<%args>
	string recordingid;
	string image;
	string alt = "";
</%args>
	<a href="javascript:LiveSimpleAjaxRequest('play_recording.xml', 'recording', '<$ recordingid $>');"><img src="<$ image $>" alt="<$ alt $>" border="0"/></a>
</%def>