blob: 92afc5a9fd18e968d1456ceb9f013acd6bb85056 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
<%pre>
#include <string>
#include <vdr/epg.h>
#include "tools.h"
using namespace std;
using namespace vdrlive;
</%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>
<div class="page_header">
<img src="logo.png" alt="VDR Live!" class="logo"/>
<div id="infobox">
</div>
</div>
<div style="clear: both"></div>
</%def>
<# ---------------------------------------------------------------------- #>
<%def progressbar>
<%args>
string progress;
</%args>
<div class="__progress"><div class="__elapsed" style="width: <$ progress $>px"></div></div>
</%def>
<# ---------------------------------------------------------------------- #>
<%def event_timer>
<%args>
tChannelID channelid;
tEventID eventid;
</%args>
<a href="edit_timer.html?channelid=<$ channelid $>&eventid=<$ eventid $>"><img src="record.png" alt="" <& tooltip.hint text=(tr("Record this")) &> /></a>
</%def>
<# ---------------------------------------------------------------------- #>
<%def ajax_js>
<script type="text/javascript" language="javascript" src="ajax.js"></script>
</%def>
<# ---------------------------------------------------------------------- #>
<%def ajax_action_href>
<%args>
string action;
string tip;
string param;
string image;
string alt = "";
</%args>
<a href="javascript:LiveSimpleAjaxRequest('<$ action $>.xml', 'param', '<$ param $>');" <%cpp>if (!tip.empty()) { </%cpp><& tooltip.hint text=(tip) &> <%cpp> } </%cpp>><img src="<$ image $>" alt="<$ alt $>" /></a>
</%def>
<# ---------------------------------------------------------------------- #>
<%def epg_tt_box>
<%args>
string boxId;
string caption;
string tools_comp;
string time;
string title;
string short_descr;
string long_descr;
int elapsed = -1;
</%args>
<div class="epg_description" id="<$ (boxId) $>">
<div class="station">
<div class="boxheader"><div><div><$ (caption) $><& tooltip.close domId=(boxId) &></div></div></div>
</div>
<div class="epg_content">
<div class="epg_tools">
<& (tools_comp) id=(boxId) &>
</div>
<div>
<div class="info"><$ (time) $></div>
% if (elapsed >= 0) {
<div class="progress"><div><& pageelems.progressbar progress=(elapsed) &></div></div>
% }
<div class="title"><$ (title) $></div>
<div class="short"><$ (short_descr) $></div>
<div class="description">
<{ reply.out() << StringEscapeAndBreak(long_descr); }>
</div>
</div>
</div>
</div>
</%def>
<# ---------------------------------------------------------------------- #>
<%def status_box>
<%args>
string type;
string currentTime;
string caption;
string title;
string duration;
int elapsed;
</%args>
<div class="statuscontent">
<div class="st_header">
<div class="caption"><$ caption $></div>
<div class="now"> <$ currentTime $></div>
</div>
<div class="st_content">
<div class="name"><$ title $></div>
<div class="duration"> <$ duration $></div>
</div>
<div class="st_controls">
<div class="buttons"> </div>
% if (elapsed >= 0) {
<div class="progress"><& pageelems.progressbar progress=(elapsed) &></div>
% }
</div>
</div>
</%def>
|