summaryrefslogtreecommitdiff
path: root/template/default/timer_new.html
blob: b6ac8c5e489ab3afe9af349b622605ff3d947f30 (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
<!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><%! Create New Timer !%><tmpl_else><%! Edit Timer !%></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>
	<script type="text/javascript" language="JavaScript1.2">
	<!--
      function cTimer(idx) {
        var Timer = "";
        var dor = document.form.dor.value;
        var StartDay = dor.indexOf('@') > 0 ? dor.substring(dor.indexOf('@')) : "";
        Days = new Array("M", "T", "W", "T", "F", "S", "S");
        for(var i = 0; i <= 6; i++) {
          Status = eval("document.form.D" + i + ".checked");
          if(Status == true) {
            Timer = Timer + Days[i];
          } else {
            Timer = Timer + "-";
          }
          document.form.dor.value = Timer + StartDay;
        }
      }
      
      function eCheckbox(complTimer) {
        if(complTimer.length == 7 || complTimer.length == 18) {
          for(var i = 0; i <= 6; i++) {
            if(complTimer.substring(i, i + 1) != "-") {
              eval("document.form.D" + i + ".click();");
            }
          }
        }
      }
    //--> 
	</script>
</head>

<body onload='eCheckbox("<tmpl_var dor>")' id="timer_new">
	<form action="<tmpl_var url>" method="get" name="form">
		<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><%! Create New Timer !%><tmpl_else><%! Edit Timer !%></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>

		<table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="group">
			<tr class="heading">
				<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_odd">
				<td class="col_left"></td>
				<td class="col_label"><h5><%! Timer Active: !%></h5></td>
				<td class="col_value">
					<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>
				</td>
				<td class="col_right"></td>
			</tr>
			<tr class="row_even">
				<td class="col_left"></td>
				<td class="col_label"><h5><%! AutoTimer Checking: !%></h5></td>
				<td class="col_value">
					<input type="hidden" name="event_id" value="<tmpl_var event_id>"/>
					<tmpl_if expr="at_epg == 1">
						<input type="radio" name="autotimer" value="2" id="event_id" <tmpl_if expr="autotimer == 2">checked</tmpl_if> /><label for="event_id"><%! Transmission Identification !%></label>
					</tmpl_if>
					<input type="radio" name="autotimer" value="1" id="event_time" <tmpl_if expr="autotimer == 1">checked</tmpl_if> /><label for="event_time"><%! Time !%></label>
					<input type="radio" name="autotimer" value="0" id="event_off" <tmpl_if expr="autotimer == 0">checked</tmpl_if> /><label for="event_off"><%! off !%></label>
				</td>
				<td class="col_right"></td>
			</tr>
			<tr class="row_odd">
				<td class="col_left"></td>
				<td class="col_label"><h5><%! Channel: !%></h5></td>
				<td class="col_value">
					<select name="channel" class="submit">
<tmpl_loop name="channels">
						<option value="<tmpl_var vdr_id>" <tmpl_if current>selected</tmpl_if>><tmpl_var name="name" escape="html"></option>
</tmpl_loop>
					</select>
				</td>
				<td class="col_right"></td>
			</tr>
			<tr class="row_even">
				<td valign="top"  class="col_left"></td>
				<td valign="top"  class="col_label"><h5><%! Day Of Recording: !%></h5></td>
				<td class="col_value">
					<input type="text" name="dor" value="<tmpl_var dor>" size="20" />
					<br />
					<input onclick="cTimer(1)" type="checkbox" name="D0" value="1" id="wday_mon" /><label for="wday_mon"><%! Monday !%></label>
					<input onclick="cTimer(2)" type="checkbox" name="D1" value="1" id="wday_tue" /><label for="wday_tue"><%! Tuesday !%></label>
					<input onclick="cTimer(3)" type="checkbox" name="D2" value="1" id="wday_wed" /><label for="wday_wed"><%! Wednesday !%></label>
					<input onclick="cTimer(4)" type="checkbox" name="D3" value="1" id="wday_thu" /><label for="wday_thu"><%! Thursday !%></label>
					<input onclick="cTimer(5)" type="checkbox" name="D4" value="1" id="wday_fri" /><label for="wday_fri"><%! Friday !%></label>
					<input onclick="cTimer(6)" type="checkbox" name="D5" value="1" id="wday_sat" /><label for="wday_sat"><%! Saturday !%></label>
					<input onclick="cTimer(7)" type="checkbox" name="D6" value="1" id="wday_sun" /><label for="wday_sun"><%! Sunday !%></label>
				</td>
				<td class="col_right"></td>
			</tr>
			<tr class="row_odd">
				<td class="col_left"></td>
				<td class="col_label"><h5><%! Start Time: !%></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><%! End Time: !%></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><%! Use VPS: !%></h5></td>
				<td  class="col_value"><input type="checkbox" name="vps" value="1" <tmpl_if vps>checked</tmpl_if> /></td>
				<td  class="col_right"></td>
			</tr>
			<tr class="row_even">
				<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_odd">
				<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_even">
				<td  class="col_left"></td>
				<td  class="col_label"><h5><%! Title of Recording: !%></h5></td>
				<td  class="col_value"><input type="text" name="title" value="<tmpl_var title>" size="80" /></td>
				<td  class="col_right"></td>
			</tr>
			<tr class="row_odd">
				<td class="col_left"></td>
				<td class="col_label" valign="top"><h5><%! Summary: !%></h5><h6>(<%! readonly !%>)</h6></td>
				<td class="col_value"><textarea name="summary" rows="6" cols="80" readonly="readonly"><tmpl_var summary></textarea></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 id="buttons">
			<input type="submit" class="submit" name="save" value="<%! Save !%>" />
			<input type="submit" class="submit" name="exit" value="<%! Cancel !%>" />
		</div>
		<input type="hidden" name="aktion" value="timer_add" /> 
		<tmpl_if referer>
			<input type="hidden" name="referer" value="<tmpl_var referer>" />
		</tmpl_if>
		<tmpl_if timer_id>
			<input type="hidden" name="timer_id" value="<tmpl_var timer_id>" /> 
		</tmpl_if>
	</form>
</body>

</html>