Commit cdb1e120 authored by Simon Latapie's avatar Simon Latapie

* http interface: media/schedule show page before edit page

parent 544004e2
......@@ -63,7 +63,7 @@
<tr>
<td>
<form method="get" action="">
Current volume level: <vlc id="value" param1="volume" /> <input type="text" name="value" size="5"/><input type="hidden" name="control" value="volume"/><input type="submit" name="Set" value="Set"/>
Current volume level: <vlc id="value" param1="volume" /> <input type="text" name="value" size="5"/><button name="control" value="volume">Set</button>
</form>
</td>
</tr>
......
......@@ -36,7 +36,7 @@
</td></tr>
</table>
<input type="hidden" name="name" value="<vlc id="value" param1="'name' url_extract"/>" />
<input type="submit" name="control" value="vlm_setup"/>
<button name="control" value="vlm_setup">OK</button>
</form>
<vlc id="else" />
<vlc id="if" param1="'type' url_extract 'schedule' strcmp 0 =" />
......@@ -57,7 +57,7 @@
<td><input type="text" name="repeat" size="40" value="<vlc id="value" param1="el.repeat" />"/></td>
</table>
<input type="hidden" name="name" value="<vlc id="value" param1="'name' url_extract"/>" />
<input type="submit" name="control" value="vlm_setup"/>
<button name="control" value="vlm_setup">OK</button>
</form>
<vlc id="end" />
<vlc id="end" />
......
......@@ -59,7 +59,7 @@
<input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
</form>
</td>
<td><a href="/vlm/edit.html?name=<vlc id="value" param1="el.name" />&type=broadcast"><vlc id="value" param1="el.name" /></a></td>
<td><a href="/vlm/show.html?name=<vlc id="value" param1="el.name" />&type=broadcast"><vlc id="value" param1="el.name" /></a></td>
</tr>
</table>
</td>
......@@ -129,7 +129,7 @@
<input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
</form>
</td>
<td><a href="/vlm/edit.html?name=<vlc id="value" param1="el.name" />&type=schedule"><vlc id="value" param1="el.name" /></a></td>
<td><a href="/vlm/show.html?name=<vlc id="value" param1="el.name" />&type=schedule"><vlc id="value" param1="el.name" /></a></td>
</tr>
</table>
</td>
......
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>VLC media player</title>
<link href="/style.css" title="Default" rel="stylesheet" />
<vlc id="control" param1="vlm_setup,vlm_new,vlm_del,vlm_play,vlm_pause,vlm_stop,vlm_seek,vlm_save,vlm_load" />
</head>
<body>
<h2>
<a href="http://www.videolan.org/">VLC media player<vlc id="value" param1="version" /></a> (http interface)</h2>
<div class="sectitle">VLM - Edit <vlc id="value" param1="'name' url_extract"/></div>
<div class="section">
<vlc id="foreach" param1="el" param2="vlm" />
<vlc id="if" param1="'name' url_extract el.name value strcmp 0 =" />
<vlc id="if" param1="'type' url_extract 'broadcast' strcmp 0 =" />
<table>
<tr><td>Name : </td><td><vlc id="value" param1="'name' url_extract"/> </td> </tr>
<tr><td>Type: </td><td>Broadcast </td></tr>
<tr><td valign="top">Inputs: </td>
<td>
<vlc id="foreach" param1="in" param2="el.inputs" /><vlc id="value" param1="in" /><br/><vlc id="end" />
</td></tr>
<tr><td>Output: </td><td><vlc id="value" param1="el.output" /></td></tr>
<tr><td>Option: </td>
<td>
<vlc id="foreach" param1="op" param2="el.options" /><vlc id="value" param1="op" /><br/><vlc id="end" />
</td></tr>
</table>
<form method="get" action="/vlm/edit.html" />
<input type="hidden" name="name" value="<vlc id="value" param1="'name' url_extract"/>" />
<input type="hidden" name="type" value="broadcast" />
<button name="control" value="vlm_setup">setup</button>
</form>
<vlc id="else" />
<vlc id="if" param1="'type' url_extract 'schedule' strcmp 0 =" />
<table>
<tr><td>Name : </td><td><vlc id="value" param1="'name' url_extract"/> </td> </tr>
<tr><td>Type: </td><td>Schedule </td></tr>
<tr><td valign="top">Commands: </td>
<td><vlc id="foreach" param1="in" param2="el.commands" /><vlc id="value" param1="in" /><br/><vlc id="end" />
</td></tr>
<tr><td>Date: </td>
<td><vlc id="value" param1="el.date" /></td>
</tr>
<vlc id="if" param1="el.period value '0' strcmp" />
<tr>
<td>Period: </td>
<td><vlc id="value" param1="el.period" /></td>
</tr>
<tr>
<td>Repeat: </td>
<vlc id="if" param1="el.repeat value "-1" strcmp" />
<td><vlc id="value" param1="el.repeat" /></td>
<vlc id="else" />
Endless
<vlc id="end" />
</tr>
<vlc id="end" />
</table>
<form method="get" action="/vlm/edit.html" />
<input type="hidden" name="name" value="<vlc id="value" param1="'name' url_extract"/>" />
<input type="hidden" name="type" value="schedule" />
<button name="control" value="vlm_setup">setup</button>
</form>
<vlc id="end" />
<vlc id="end" />
<vlc id="end" />
<vlc id="end" />
</div>
<hr/>
<p> <vlc id="value" param1="copyright" /> </p>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment