main, functions.js, slider_*.png : add position slider
[vlc.git] / share / http / dialogs / vlm
1 <vlc id="if" param1="0" />
2 vim:syntax=html
3 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  vlm: VLC media player web interface - VLM controler
5 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
6 <  Copyright (C) 2005-2006 the VideoLAN team
7 <  $Id$
8
9 <  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
10
11 <  This program is free software; you can redistribute it and/or modify
12 <  it under the terms of the GNU General Public License as published by
13 <  the Free Software Foundation; either version 2 of the License, or
14 <  (at your option) any later version.
15
16 <  This program is distributed in the hope that it will be useful,
17 <  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 <  GNU General Public License for more details.
20
21 <  You should have received a copy of the GNU General Public License
22 <  along with this program; if not, write to the Free Software
23 <  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
25
26 This dialog needs the following dialogs to be fully functional: input,
27 sout and vlmelements .
28 <vlc id="end" />
29
30 <div id="vlm" class="dialog" >
31   <div class="title">
32     VLC media player - VLM interface
33     <!--
34     <button id="btn_toggle_text" onclick="toggle_btn_text();">
35       <img src="images/help.png" alt="Help" />
36       Help
37     </button>
38     -->
39   </div>
40   <div class="controls">
41     <label for="vlm_command">VLM command:</label>
42     <input type="text" id="vlm_command" size="60" />
43     <input type="button" value="Send" onclick="vlm_send();" />
44     <br />
45     <span id="vlm_error"></span>
46     <br />
47     <button id="btn_broadcast" onclick="hide_vlm_add();show('vlm_add_broadcast');update_vlm_add_broadcast();" onmouseover="button_over(this);" onmouseout="button_out(this);">
48       Broadcast
49     </button>
50     <button id="btn_vod" onclick="hide_vlm_add();show('vlm_add_vod');update_vlm_add_vod();" onmouseover="button_over(this);" onmouseout="button_out(this);">
51       Video on Demand
52     </button>
53     <button id="btn_schedule" onclick="hide_vlm_add();show('vlm_add_schedule');update_vlm_add_schedule();" onmouseover="button_over(this);" onmouseout="button_out(this);">
54       Schedule
55     </button>
56     <button id="btn_other" onclick="hide_vlm_add();show('vlm_add_other');update_vlm_add_other();" onmouseover="button_over(this);" onmouseout="button_out(this);">
57       Other
58     </button>
59   </div>
60   <div id="vlm_helper" class="helper" >
61     <div id="vlm_add_broadcast" style="display: block">
62       New broadcast element
63       <hr />
64       <label for="vlm_broadcast_name">Name</label>
65       <input type="text" id="vlm_broadcast_name" size="20" onchange="update_vlm_add_broadcast();" />
66       <input type="checkbox" id="vlm_broadcast_enabled" onchange="update_vlm_add_broadcast();" />
67       <label for="vlm_broadcast_enabled">Enable</label>
68       <input type="checkbox" id="vlm_broadcast_loop" onchange="update_vlm_add_broadcast();" />
69       <label for="vlm_broadcast_loop">Loop</label>
70       <br/>
71       <label for="vlm_broadcast_input">Input</label>
72       <input type="text" id="vlm_broadcast_input" size="60" onblur="update_vlm_add_broadcast();" />
73       <input type="button" value="Edit" onclick="vlm_input_edit('vlm_broadcast_input');" />
74       <br/>
75       <label for="vlm_broadcast_output">Output</label>
76       <input type="text" id="vlm_broadcast_output" size="60" onblur="update_vlm_add_broadcast();" />
77       <input type="button" value="Edit" onclick="vlm_output_edit('vlm_broadcast_output');" />
78       <br/>
79     </div>
80     <div id="vlm_add_vod" style="display: none">
81       New video on demand element
82       <hr />
83       <label for="vlm_vod_name">Name</label>
84       <input type="text" id="vlm_vod_name" size="20" onchange="update_vlm_add_vod();" />
85       <input type="checkbox" id="vlm_vod_enabled" onchange="update_vlm_add_vod();" />
86       <label for="vlm_vod_enabled">Enable</label>
87       <br/>
88       <label for="vlm_vod_input">Input</label>
89       <input type="text" id="vlm_vod_input" size="60" onblur="update_vlm_add_vod();" />
90       <input type="button" value="Edit" onclick="vlm_input_edit('vlm_vod_input');" />
91       <br/>
92       <label for="vlm_vod_output">Output (leave empty unless you want to transcode)</label>
93       <input type="text" id="vlm_vod_output" size="60" onblur="update_vlm_add_vod();" />
94       <input type="button" value="Edit" onclick="vlm_output_edit('vlm_vod_output');" />
95       <br/>
96     </div>
97     <div id="vlm_add_schedule" style="display: none">
98       New schedule
99       <hr />
100       <label for="vlm_schedule_name">Name</label>
101       <input type="text" id="vlm_schedule_name" size="20" onchange="update_vlm_add_schedule();" />
102       <input type="checkbox" id="vlm_schedule_enabled" onchange="update_vlm_add_schedule();" />
103       <label for="vlm_schedule_enabled">Enable</label>
104       <br />
105       Schedule date:
106       <input type="checkbox" id="vlm_schedule_now" onchange="toggle_schedule_date();update_vlm_add_schedule();" />
107       <label for="vlm_schedule_now">Now</label>
108       <br/>
109       <label for="vlm_schedule_year">Year:</label>
110       <input type="text" id="vlm_schedule_year" value="1970" size="4" maxlength="4" onchange="update_vlm_add_schedule();" />
111       <label for="vlm_schedule_month">Month:</label>
112       <input type="text" id="vlm_schedule_month" value="01" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
113       <label for="vlm_schedule_day">Day:</label>
114       <input type="text" id="vlm_schedule_day" value="01" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
115       <label for="vlm_schedule_hour">Hour:</label>
116       <input type="text" id="vlm_schedule_hour" value="00" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
117       <label for="vlm_schedule_minute">Minute:</label>
118       <input type="text" id="vlm_schedule_minute" value="59" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
119       <label for="vlm_schedule_second">Second:</label>
120       <input type="text" id="vlm_schedule_second" value="59" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
121       <br/>
122       Schedule period:<br/>
123       <input type="checkbox" id="vlm_schedule_repeat" onchange="toggle_schedule_repeat();update_vlm_add_schedule();" />
124       <label for="vlm_schedule_repeat">Repeat</label>
125       <br />
126       <label for="vlm_schedule_period_year">Year:</label>
127       <input type="text" id="vlm_schedule_period_year" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
128       <label for="vlm_schedule_period_month">Month:</label>
129       <input type="text" id="vlm_schedule_period_month" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
130       <label for="vlm_schedule_period_day">Day:</label>
131       <input type="text" id="vlm_schedule_period_day" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
132       <label for="vlm_schedule_period_hour">Hour:</label>
133       <input type="text" id="vlm_schedule_period_hour" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
134       <label for="vlm_schedule_period_minute">Minute:</label>
135       <input type="text" id="vlm_schedule_period_minute" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
136       <label for="vlm_schedule_period_second">Second:</label>
137       <input type="text" id="vlm_schedule_period_second" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
138       <br />
139       <label for="vlm_schedule_repeat_times">Number of repetitions (use 0 to repeat endlessly):</label>
140       <input type="text" id="vlm_schedule_repeat_times" size="8" disabled="disabled" value="0" onchange="update_vlm_add_schedule();" />
141     </div>
142     <div id="vlm_add_other" style="display: none">
143       <input type="button" id="btn_import" onclick="vlm_batch(document.getElementById('vlm_batch_text').value);" value="Send command batch" />
144       <input type="button" id="btn_export" onclick="document.location.assign('vlm_export.html');" value="Export VLM commands (new page)" />
145       <br/>
146       <textarea cols="70" rows="20" id="vlm_batch_text">#paste your VLM commands here</textarea>
147     </div>
148   </div>
149 </div>
150
151 <div id="vlm_broadcast" class="dialog" >
152   <div class="title">
153     Broadcast Elements
154     <button id="btn_refresh_broadcast" onclick="vlm_get_elements();" title="Refresh" >
155       <img src="images/refresh.png" alt="Refresh" />
156     </button>
157   </div>
158   <div id="vlm_broadcast_list" class="list"></div>
159 </div>
160
161 <div id="vlm_vod" class="dialog" >
162   <div class="title">
163     Video on Demand Elements
164     <button id="btn_refresh_vod" onclick="vlm_get_elements();" title="Refresh" >
165       <img src="images/refresh.png" alt="Refresh" />
166     </button>
167   </div>
168   <div id="vlm_vod_list" class="list"></div>
169 </div>
170
171 <div id="vlm_schedule" class="dialog" >
172   <div class="title">
173     Schedule Elements
174     <button id="btn_refresh_schedule" onclick="vlm_get_elements();" title="Refresh" >
175       <img src="images/refresh.png" alt="Refresh" />
176     </button>
177   </div>
178   <div id="vlm_schedule_list" class="list"></div>
179 </div>