summaryrefslogtreecommitdiff
path: root/template/default/at_timer_new.html
blob: 4b6ec1c5fd1631064f91bde3f5779c75d0c231a2 (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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
	<meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>"/>
	<title>VDRAdmin-AM - <tmpl_if newtimer><%! Add New AutoTimer !%><tmpl_else><%! Edit AutoTimer !%></tmpl_if></title>
	<link href="style.css" rel="stylesheet" media="screen" type="text/css"/>
	<tmpl_if usercss>
		<link href="user.css" rel="stylesheet" media="screen" type="text/css"/>
	</tmpl_if>
	<script type="text/javascript" language="JavaScript1.2" src="library.js"></script>
</head>

<body id="at_timer_new">
	<form action="<tmpl_var url>" method="get" name="FormName">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading">
			<tr>
				<td class="col_left"></td>
				<td class="col_title">
					<h1><tmpl_if newtimer><%! Add New AutoTimer !%><tmpl_else><%! Edit AutoTimer !%></tmpl_if></h1>
				</td>
<tmpl_if name="help_url">
				<td class="col_help">
					<a href="javascript:open_help('<tmpl_var help_url>');"><img src="bilder/help.gif" border="0" alt="help" title="<%! Help !%>"/></a>
				</td>
</tmpl_if>
				<td class="col_right"></td>
			</tr>
		</table>

		<div id="content">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="group">
				<tr class="heading optional">
					<td class="col_left"></td>
					<td colspan="2"></td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_spacer">
					<td class="col_left"></td>
					<td colspan="2"></td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_even">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! AutoTimer Active: !%></h5></td>
					<td class="col_value">
<?% IF active == 2 %?>
	         	<input type="radio" name="active" value="1" id="active_yes" /><label for="active_yes"><%! Yes !%></label>
 	        	<input type="radio" name="active" value="0" id="active_no" /><label for="active_no"><%! No !%></label>
						<input type="radio" name="active" value="2" id="active_oneshot" checked /><label for="active_oneshot"><%! oneshot !%></label>
<?% ELSE %?>
						<input type="radio" name="active" value="1" id="active_yes" <tmpl_if active>checked</tmpl_if> /><label for="active_yes"><%! Yes !%></label>
						<input type="radio" name="active" value="0" id="active_no" <tmpl_unless active>checked</tmpl_unless> /><label for="active_no"><%! No !%></label>
						<input type="radio" name="active" value="2" id="active_oneshot" /><label for="active_oneshot"><%! oneshot !%></label>
<?% END %?>
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_odd">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Search Patterns: !%></h5></td>
					<td class="col_value">
						<input type="text" name="pattern" value="<tmpl_var pattern>" size="40" />
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_even">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Search in: !%></h5></td>
					<td class="col_value">
						<input type="checkbox" name="title" value="1" id="searchin_title" <tmpl_if title>checked</tmpl_if> /><label for="searchin_title"><%! Title !%></label>
						<input type="checkbox" name="subtitle" value="1" id="searchin_subtitle" <tmpl_if subtitle>checked</tmpl_if> /><label for="searchin_subtitle"><%! Subtitle !%></label>
						<input type="checkbox" name="description" value="1" id="searchin_description" <tmpl_if description>checked</tmpl_if> /><label for="searchin_description"><%! Description !%></label>
 	       </td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_odd">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Search only on these days: !%></h5></td>
					<td class="col_value">
						<input type="checkbox" name="wday_mon" value="1" id="wday_mon" <tmpl_if wday_mon>checked</tmpl_if> /><label for="wday_mon"><%! Monday !%></label>
						<input type="checkbox" name="wday_tue" value="1" id="wday_tue" <tmpl_if wday_tue>checked</tmpl_if> /><label for="wday_tue"><%! Tuesday !%></label>
						<input type="checkbox" name="wday_wed" value="1" id="wday_wed" <tmpl_if wday_wed>checked</tmpl_if> /><label for="wday_wed"><%! Wednesday !%></label>
						<input type="checkbox" name="wday_thu" value="1" id="wday_thu" <tmpl_if wday_thu>checked</tmpl_if> /><label for="wday_thu"><%! Thursday !%></label>
						<input type="checkbox" name="wday_fri" value="1" id="wday_fri" <tmpl_if wday_fri>checked</tmpl_if> /><label for="wday_fri"><%! Friday !%></label>
						<input type="checkbox" name="wday_sat" value="1" id="wday_sat" <tmpl_if wday_sat>checked</tmpl_if> /><label for="wday_sat"><%! Saturday !%></label>
						<input type="checkbox" name="wday_sun" value="1" id="wday_sun" <tmpl_if wday_sun>checked</tmpl_if> /><label for="wday_sun"><%! Sunday !%></label>
 	       </td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_even">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Channel: !%></h5></td>
					<td class="col_value">
						<select class="submit" name="channel">
							<option value="0"><%! all !%></option>
<tmpl_loop channels>
								<option value="<tmpl_var vdr_id>" <tmpl_if cur> selected</tmpl_if>><tmpl_var name></option>
</tmpl_loop>
						</select>
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_odd">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Starts After: !%></h5></td>
					<td class="col_value">
						<input type="text" name="starth" value="<tmpl_var starth>" size="2" maxlength="2" />
						<b>&nbsp;:&nbsp;</b>
						<input type="text" name="startm" value="<tmpl_var startm>" size="2" maxlength="2" />
						&nbsp;<%! o'clock !%>
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_even">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Ends Before: !%></h5></td>
					<td class="col_value">
						<input type="text" name="stoph" value="<tmpl_var stoph>" size="2" maxlength="2" />
						<b>&nbsp;:&nbsp;</b>
						<input type="text" name="stopm" value="<tmpl_var stopm>" size="2" maxlength="2" />
						&nbsp;<%! o'clock !%>
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_odd">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Priority: !%></h5></td>
					<td class="col_value">
						<input type="text" name="prio" value="<tmpl_var prio>" size="2" maxlength="2" />
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_even">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Lifetime: !%></h5></td>
					<td class="col_value">
						<input type="text" name="lft" value="<tmpl_var lft>" size="2" maxlength="2" />
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_odd">
					<td class="col_left"></td>
					<td class="col_label"><h5><label for="episode"><%! Episode: !%></label></h5></td>
					<td class="col_value">
						<input type="checkbox" name="episode" value="1" id="episode" <tmpl_if episode>checked</tmpl_if> />
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_even">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Remember programmed timers: !%></h5></td>
					<td class="col_value">
						<input type="radio" name="done" value="1" id="rem_yes" <tmpl_if done>checked</tmpl_if> /><label for="rem_yes"><%! Yes !%></label>
						<input type="radio" name="done" value="0" id="rem_no" <tmpl_unless done>checked</tmpl_unless> /><label for="rem_no"><%! No !%></label>
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="row_odd">
					<td class="col_left"></td>
					<td class="col_label"><h5><%! Directory: !%></h5></td>
					<td class="col_value">
						<input type="text" name="directory" value="<tmpl_var directory>" size="40" />
					</td>
					<td class="col_right"></td>
				</tr>
				<tr class="footer">
					<td class="col_left"></td>
					<td colspan="2"></td>
					<td class="col_right"></td>
				</tr>
			</table>
		</div>

		<div id="buttons">
			<input type="submit" class="submit" name="save" value="<%! Save !%>" />
			<input type="submit" class="submit" name="test" value="<%! Test !%>" />
			<input type="submit" class="submit" name="exit" value="<%! Cancel !%>" />
		</div>
		<input type="hidden" name="aktion" value="at_timer_aktion" />
		<input type="hidden" name="id" value="<tmpl_var id>" />
	</form>

<tmpl_if at_test>
	<br />
	<tmpl_if matches>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
			<tr class="heading">
				<td class="col_left"></h2></td>
				<td><h2><%! Title !%></h2></td>
				<td><h2><%! Subtitle !%></h2></td>
				<td><h2><%! Broadcasted !%></h2></td>
				<td><h2><%! Stored in !%></h2></td>
				<td class="col_right"></td>
			</tr>
		<tmpl_loop matches>
			<tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>">
				<td class="col_left"></td>
				<td><tmpl_var otitle></td>
				<td><tmpl_var subtitle></td>
				<td><tmpl_var date>, <tmpl_var start> - <tmpl_var stop> (<tmpl_var channel>)</td>
				<td><tmpl_var title></td>
				<td class="col_right"></td>
			</tr>
		</tmpl_loop>
			<tr class="footer">
				<td class="col_left"></td>
				<td colspan="4"></td>
				<td class="col_right"></td>
			</tr>
		</table>
	<tmpl_else>
		<div class="warning"><%! No matches found! !%></div>
	</tmpl_if>
</tmpl_if>
</body>

</html>