summaryrefslogtreecommitdiff
path: root/conf/epgsearchupdmail-html.templ
blob: 15accd0b7a734192c1b167d551d7566a5e815e6c (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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#########################################################################
# This is a sample template for email notifications about timer changes
# (NOTE: This is a sample for a HTML mail, but you could use only text
# as well)
#
# There are 3 sections that have to be defined:
#  - "subject" to be used as mail subject
#  - "mailbody" the body of the mail:
#    put %update.newtimers% in the place where the list of new timers should
#    appear. The same for %update.modtimers% and %update.deltimers% for the
#    list of changed or deleted timers.
#  - "timer" the description of one timer. This section is used to display one
#    timer within a timer list, e.g. in %update.newtimers%
#
# close each section with the corresponding end tag!
# Please have a look at the MANUAL for the available variables.
#########################################################################
#
# Version: 0.3    Date: 24.09.2006
#
#  Author: Mike Constabel      <vejoun @ vdrportal>
#          Christian Wieninger <winni  @ vdrportal>
#
#########################################################################

#########################################################################
# here's the mail's subject definition (no CR!)
#########################################################################
<subject>[epgsearch] update info: %update.countnewtimers% new / %update.countmodtimers% modified / %update.countdeltimers% deleted timers</subject>


#########################################################################
# here's the mail's body definition
#########################################################################
<mailbody>
<html>
<head>
<title>Information about search timer update</title>
<style type="text/css">
/* global design */
body {
	font-family: Bitstream Vera Sans;
	background-color: white;
	}
table {
	background-color: #ccebff;
	border: solid;
	border-width: 1px;
	max-width: 100%;
	empty-cells: show;
	}
th, td {
	border: solid;
	border-width: 1px;
	word-wrap: break-word;
	padding: 5px;
	}
th {
	text-align: left;
	background-color: #99b4ff;
	font-weight: bold;
	}

/* design of the info table */
table.info {
	}

/* width of the three main tables */
table.main {
	width: 100%;
	}

/* design of each timer table inside the main tables */
table.timer {
	width: 100%;
	}
table.timer, tr.timer {
	border-style: none;
	}
th.timer {
	background-color: #ffb3a4;
	font-weight: normal;
	}

/* space between the timer tables */
p.smallspace {
	line-height: 20px;
	}

/* space between the main tables */
p.bigspace {
	line-height: 40px;
	}

/* space between "Top" and the table name */
a.rightspace {
	margin-right: 20px;
	}
</style>
</head>
<body>
<a name="info"></a>

<table class="info">
<tr><th colspan="2">Information about search timer update</th></tr>
<tr><td>update at:</a></td><td>%datenow% %timenow%</td></tr>
<tr><td><a href="#new">new timers:</a></td><td>%update.countnewtimers%</td></tr>
<tr><td><a href="#mod">modified timers:</a></td><td>%update.countmodtimers%</td></tr>
<tr><td><a href="#del">deleted timers:</a></td><td>%update.countdeltimers%</td></tr>
</table>

<p class="bigspace"></p>

<table class="main">
<tr><th colspan="2"><a href="#info" class="rightspace">Top</a> <a name="new"></a>New timers</th></tr>
<tr><td>%update.newtimers%</td></tr>
</table>

<p class="bigspace"></p>

<table class="main">
<tr><th colspan="2"><a href="#info" class="rightspace">Top</a> <a name="mod"></a>Modified timers</th></tr>
<tr><td>%update.modtimers%</td></tr>
</table>

<p class="bigspace"></p>

<table class="main">
<tr><th colspan="2"><a href="#info" class="rightspace">Top</a> <a name="del"></a>Deleted timers</th></tr>
<tr><td>%update.deltimers%</td></tr>
</table>

<p class="bigspace"></p>

<p>Have fun!</p>
</body>
</html></mailbody>

##############################################################################
# here's the timer definition, which is used to display information about 
# a timer within one of the timer lists. You can use any variables that refer
# to an event or timer. (Please note, that a timer may have no event assigned
# to it, resulting in an empty variable substitution!). You can also use 'user
# defined' variables from epgsearchuservars.conf.
##############################################################################
<timer>
<table class="timer">
<tr class="timer"><th class="timer">Title:</th><th class="timer">%title%</th></tr>
<tr class="timer"><td>Subtitle:</td><td>%subtitle%</td></tr>
<tr class="timer"><td>Start/End:</td><td>%time_w% %date% %time%-%timeend% (Timer: %timer.start%-%timer.stop%)</td></tr>
<tr class="timer"><td>Channel:</td><td>%timer.chlng% (%timer.chnr%)</td></tr>
<tr class="timer"><td>File:</td><td>%timer.file%</td></tr>
<tr class="timer"><td>Search:</td><td>%timer.search% (%timer.searchid%)</td></tr>
<tr class="timer"><td valign="top">Summary:</td><td>%htmlsummary%</td></tr>
</table>
<p class="smallspace"></p>
</timer>