blob: fa40f146250153269e4b50e766eda4b4268c82f8 (
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
|
<%pre>
#include <vdr/channels.h>
#include <vdr/i18n.h>
#include "epgsearch.h"
#include "tools.h"
using namespace vdrlive;
</%pre>
<%include>page_init.eh</%include>
<%cpp>
pageTitle = tr("Searchtimers");
SearchTimers timers;
</%cpp>
<& pageelems.doc_type &>
<html>
<head>
<title>VDR-Live - <$ pageTitle $></title>
<link rel="stylesheet" type="text/css" href="/styles.css" />
<& pageelems.ajax_js &>
</head>
<body onload="LiveStatusAjaxRequest('infobox.html', 'infobox')">
<& pageelems.logo &>
<& menu active=("searchtimers") &>
<div class="inhalt">
% if (timers.size() == 0) {
Keiner Suchtimer definiert
% } else {
<table class="timers" cellspacing="0" cellpadding="0">
<tr class="head">
<td style="background: url(bg_box_l.png); width: 3px;"/></td>
<td> </td>
<td><$ tr("Active") $></td>
<td><$ tr("Expression") $></td>
<td><$ tr("Channel") $></td>
<td><$ tr("Start") $></td>
<td><$ tr("Stop") $></td>
<td> </td>
<td> </td>
<td style="background: url(bg_box_r.png); width: 3px;" /></td>
</tr>
<{
bool active = false;
for (SearchTimers::iterator timer = timers.begin(); timer != timers.end(); ++timer) {
}>
<tr class="<$ active ? "active" : "" $>">
<td class="border" style="border-left: 1px solid black"></td>
<td><button type="button" class="smallbutton" onclick="location.href='edit_searchtimer.html?timerid=<$ timer->Id() $>';"><$ tr("Edit") $></button></td>
<td><img src="/<$ timer->UseAsSearchTimer() ? "active" : "inactive" $>.png" alt="Aktiv?" /></td>
<td><$ timer->Search() $></td>
<td><$ timer->ChannelText() $></td>
<td><? timer->UseTime() ? timer->StartTime() ?></td>
<td><? timer->UseTime() ? timer->StopTime() ?></td>
<td> </td>
<td> </td>
<td class="border" style="border-right: 1px solid black"></td>
</tr>
<{
active = !active;
}
}
}>
<tr><td colspan="10" style="border-top: 1px solid black"> </td></tr>
</table>
</div>
</body>
</html>
<%include>page_exit.eh</%include>
|