main, functions.js, slider_*.png : add position slider
[vlc.git] / share / http / dialogs / vlm
index 8adbcb8..d86e6ae 100644 (file)
@@ -30,10 +30,12 @@ sout and vlmelements .
 <div id="vlm" class="dialog" >
   <div class="title">
     VLC media player - VLM interface
 <div id="vlm" class="dialog" >
   <div class="title">
     VLC media player - VLM interface
+    <!--
     <button id="btn_toggle_text" onclick="toggle_btn_text();">
       <img src="images/help.png" alt="Help" />
       Help
     </button>
     <button id="btn_toggle_text" onclick="toggle_btn_text();">
       <img src="images/help.png" alt="Help" />
       Help
     </button>
+    -->
   </div>
   <div class="controls">
     <label for="vlm_command">VLM command:</label>
   </div>
   <div class="controls">
     <label for="vlm_command">VLM command:</label>
@@ -51,6 +53,9 @@ sout and vlmelements .
     <button id="btn_schedule" onclick="hide_vlm_add();show('vlm_add_schedule');update_vlm_add_schedule();" onmouseover="button_over(this);" onmouseout="button_out(this);">
       Schedule
     </button>
     <button id="btn_schedule" onclick="hide_vlm_add();show('vlm_add_schedule');update_vlm_add_schedule();" onmouseover="button_over(this);" onmouseout="button_out(this);">
       Schedule
     </button>
+    <button id="btn_other" onclick="hide_vlm_add();show('vlm_add_other');update_vlm_add_other();" onmouseover="button_over(this);" onmouseout="button_out(this);">
+      Other
+    </button>
   </div>
   <div id="vlm_helper" class="helper" >
     <div id="vlm_add_broadcast" style="display: block">
   </div>
   <div id="vlm_helper" class="helper" >
     <div id="vlm_add_broadcast" style="display: block">
@@ -64,11 +69,11 @@ sout and vlmelements .
       <label for="vlm_broadcast_loop">Loop</label>
       <br/>
       <label for="vlm_broadcast_input">Input</label>
       <label for="vlm_broadcast_loop">Loop</label>
       <br/>
       <label for="vlm_broadcast_input">Input</label>
-      <input type="text" id="vlm_broadcast_input" size="60" onchange="update_vlm_add_broadcast();" />
+      <input type="text" id="vlm_broadcast_input" size="60" onblur="update_vlm_add_broadcast();" />
       <input type="button" value="Edit" onclick="vlm_input_edit('vlm_broadcast_input');" />
       <br/>
       <label for="vlm_broadcast_output">Output</label>
       <input type="button" value="Edit" onclick="vlm_input_edit('vlm_broadcast_input');" />
       <br/>
       <label for="vlm_broadcast_output">Output</label>
-      <input type="text" id="vlm_broadcast_output" size="60" onchange="update_vlm_add_broadcast();" />
+      <input type="text" id="vlm_broadcast_output" size="60" onblur="update_vlm_add_broadcast();" />
       <input type="button" value="Edit" onclick="vlm_output_edit('vlm_broadcast_output');" />
       <br/>
     </div>
       <input type="button" value="Edit" onclick="vlm_output_edit('vlm_broadcast_output');" />
       <br/>
     </div>
@@ -81,18 +86,64 @@ sout and vlmelements .
       <label for="vlm_vod_enabled">Enable</label>
       <br/>
       <label for="vlm_vod_input">Input</label>
       <label for="vlm_vod_enabled">Enable</label>
       <br/>
       <label for="vlm_vod_input">Input</label>
-      <input type="text" id="vlm_vod_input" size="60" onchange="update_vlm_add_vod();" />
+      <input type="text" id="vlm_vod_input" size="60" onblur="update_vlm_add_vod();" />
       <input type="button" value="Edit" onclick="vlm_input_edit('vlm_vod_input');" />
       <br/>
       <label for="vlm_vod_output">Output (leave empty unless you want to transcode)</label>
       <input type="button" value="Edit" onclick="vlm_input_edit('vlm_vod_input');" />
       <br/>
       <label for="vlm_vod_output">Output (leave empty unless you want to transcode)</label>
-      <input type="text" id="vlm_vod_output" size="60" onchange="update_vlm_add_vod();" />
+      <input type="text" id="vlm_vod_output" size="60" onblur="update_vlm_add_vod();" />
       <input type="button" value="Edit" onclick="vlm_output_edit('vlm_vod_output');" />
       <br/>
     </div>
     <div id="vlm_add_schedule" style="display: none">
       New schedule
       <hr />
       <input type="button" value="Edit" onclick="vlm_output_edit('vlm_vod_output');" />
       <br/>
     </div>
     <div id="vlm_add_schedule" style="display: none">
       New schedule
       <hr />
-      TODO
+      <label for="vlm_schedule_name">Name</label>
+      <input type="text" id="vlm_schedule_name" size="20" onchange="update_vlm_add_schedule();" />
+      <input type="checkbox" id="vlm_schedule_enabled" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_enabled">Enable</label>
+      <br />
+      Schedule date:
+      <input type="checkbox" id="vlm_schedule_now" onchange="toggle_schedule_date();update_vlm_add_schedule();" />
+      <label for="vlm_schedule_now">Now</label>
+      <br/>
+      <label for="vlm_schedule_year">Year:</label>
+      <input type="text" id="vlm_schedule_year" value="1970" size="4" maxlength="4" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_month">Month:</label>
+      <input type="text" id="vlm_schedule_month" value="01" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_day">Day:</label>
+      <input type="text" id="vlm_schedule_day" value="01" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_hour">Hour:</label>
+      <input type="text" id="vlm_schedule_hour" value="00" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_minute">Minute:</label>
+      <input type="text" id="vlm_schedule_minute" value="59" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_second">Second:</label>
+      <input type="text" id="vlm_schedule_second" value="59" size="2" maxlength="2" onchange="update_vlm_add_schedule();" />
+      <br/>
+      Schedule period:<br/>
+      <input type="checkbox" id="vlm_schedule_repeat" onchange="toggle_schedule_repeat();update_vlm_add_schedule();" />
+      <label for="vlm_schedule_repeat">Repeat</label>
+      <br />
+      <label for="vlm_schedule_period_year">Year:</label>
+      <input type="text" id="vlm_schedule_period_year" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_period_month">Month:</label>
+      <input type="text" id="vlm_schedule_period_month" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_period_day">Day:</label>
+      <input type="text" id="vlm_schedule_period_day" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_period_hour">Hour:</label>
+      <input type="text" id="vlm_schedule_period_hour" value="0" size="2" disabled="disabled" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_period_minute">Minute:</label>
+      <input type="text" id="vlm_schedule_period_minute" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
+      <label for="vlm_schedule_period_second">Second:</label>
+      <input type="text" id="vlm_schedule_period_second" value="0" size="4" disabled="disabled" onchange="update_vlm_add_schedule();" />
+      <br />
+      <label for="vlm_schedule_repeat_times">Number of repetitions (use 0 to repeat endlessly):</label>
+      <input type="text" id="vlm_schedule_repeat_times" size="8" disabled="disabled" value="0" onchange="update_vlm_add_schedule();" />
+    </div>
+    <div id="vlm_add_other" style="display: none">
+      <input type="button" id="btn_import" onclick="vlm_batch(document.getElementById('vlm_batch_text').value);" value="Send command batch" />
+      <input type="button" id="btn_export" onclick="document.location.assign('vlm_export.html');" value="Export VLM commands (new page)" />
+      <br/>
+      <textarea cols="70" rows="20" id="vlm_batch_text">#paste your VLM commands here</textarea>
     </div>
   </div>
 </div>
     </div>
   </div>
 </div>
@@ -100,6 +151,9 @@ sout and vlmelements .
 <div id="vlm_broadcast" class="dialog" >
   <div class="title">
     Broadcast Elements
 <div id="vlm_broadcast" class="dialog" >
   <div class="title">
     Broadcast Elements
+    <button id="btn_refresh_broadcast" onclick="vlm_get_elements();" title="Refresh" >
+      <img src="images/refresh.png" alt="Refresh" />
+    </button>
   </div>
   <div id="vlm_broadcast_list" class="list"></div>
 </div>
   </div>
   <div id="vlm_broadcast_list" class="list"></div>
 </div>
@@ -107,6 +161,9 @@ sout and vlmelements .
 <div id="vlm_vod" class="dialog" >
   <div class="title">
     Video on Demand Elements
 <div id="vlm_vod" class="dialog" >
   <div class="title">
     Video on Demand Elements
+    <button id="btn_refresh_vod" onclick="vlm_get_elements();" title="Refresh" >
+      <img src="images/refresh.png" alt="Refresh" />
+    </button>
   </div>
   <div id="vlm_vod_list" class="list"></div>
 </div>
   </div>
   <div id="vlm_vod_list" class="list"></div>
 </div>
@@ -114,6 +171,9 @@ sout and vlmelements .
 <div id="vlm_schedule" class="dialog" >
   <div class="title">
     Schedule Elements
 <div id="vlm_schedule" class="dialog" >
   <div class="title">
     Schedule Elements
+    <button id="btn_refresh_schedule" onclick="vlm_get_elements();" title="Refresh" >
+      <img src="images/refresh.png" alt="Refresh" />
+    </button>
   </div>
   <div id="vlm_schedule_list" class="list"></div>
 </div>
   </div>
   <div id="vlm_schedule_list" class="list"></div>
 </div>