index.html 5.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?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="if" param1="url_param"/>
        <meta http-equiv="refresh" content="0;URL=/vlm/" />
    <vlc id="end" />

    <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 - Configuration</div>
    <div class="section">

    <form method="get" action="" />
    <input type="test" name="file" size="40"/>
23 24
    <button name="control" value="vlm_load">Load</button>
    <button name="control" value="vlm_save">Save</button>
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
    </form>
    </div>

    <div class="sectitle">VLM - New</div>
    <div class="section">

    <form method="get" action="/vlm/new.html" />
    <input type="test" name="name" size="40"/>
    <input type="submit" name="type" value="broadcast"/>
    </form>

    <form method="get" action="/vlm/new.html" />
    <input type="test" name="name" size="40"/>
    <input type="submit" name="type" value="schedule"/>
    </form>
    </div>

    <div class="sectitle">VLM - Media</div>
    <div class="section">
    <table border="1">
45 46 47 48 49 50 51 52 53 54
     <tr class="ligne2">
      <td>Media</td>
      <td>State</td>
      <td>Control</td>
     </tr>
<vlc id="foreach" param1="el" param2="vlm" />
<vlc id="if" param1="el.type value 'broadcast' strcmp 0 = " />
     <tr>
      <td>
       <table>
55
        <tr>
56 57 58 59 60 61
         <td width="30%">
          <form method="get" action="" />
           <button name="control" value="vlm_del">del</button>
           <input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
          </form>
         </td>
62
         <td><a href="/vlm/show.html?name=<vlc id="value" param1="el.name" />&type=broadcast"><vlc id="value" param1="el.name" /></a></td>
63
        </tr>
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
       </table>
      </td>
      <td>
<vlc id="if" param1="el.enabled value 'yes' strcmp 0 = " />
       <table>
        <tr>
         <td>
          <vlc id="value" param1="el.state" />
         </td>
         <td align="right">
          <form method="get" action="" />
           <input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
           <input type="hidden" name="disabled" value="" />
           <button name="control" value="vlm_setup">disable</button>
          </form>
         </td>
        </tr>
       </table>
<vlc id="else" />
       <table>
        <tr>
         <td>disabled</td>
         <td align="right">
          <form method="get" action="" />
           <input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
           <input type="hidden" name="enabled" value="" />
           <button name="control" value="vlm_setup">enable</button>
          </form>
         </td>
        </tr>
       </table>
<vlc id="end" />
      </td>
      <td>
<vlc id="if" param1="el.enabled value 'yes' strcmp 0 = " />
       <form method="get" action="" />
        <input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
         <button name="control" value="vlm_stop">stop</button>
         <button name="control" value="vlm_play">play</button>
         <button name="control" value="vlm_pause">pause</button>
        </form>
<vlc id="end" />
      </td>
     </tr>
<vlc id="end" />
<vlc id="end" />
110 111
    </table>
    </div>
112

113 114 115
    <div class="sectitle">VLM - Schedule</div>
    <div class="section">
    <table border="1">
116 117 118 119 120 121 122 123 124
     <tr class="ligne2">
      <td>Schedule</td>
      <td>State</td>
     </tr>
<vlc id="foreach" param1="el" param2="vlm" />
<vlc id="if" param1="el.type value 'schedule' strcmp 0 = " />
     <tr>
      <td>
       <table>
125
        <tr>
126 127 128 129 130 131
         <td width="30%">
          <form method="get" action="" />
           <button name="control" value="vlm_del">del</button>
           <input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
          </form>
         </td>
132
         <td><a href="/vlm/show.html?name=<vlc id="value" param1="el.name" />&type=schedule"><vlc id="value" param1="el.name" /></a></td>
133
        </tr>
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
       </table>
      </td>
      <td>
<vlc id="if" param1="el.enabled value 'yes' strcmp 0 = " />
       <table>
        <tr>
         <td>enabled</td>
         <td align="right">
          <form method="get" action="" />
           <input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
           <input type="hidden" name="disabled" value="" />
           <button name="control" value="vlm_setup">disable</button>
          </form>
         </td>
        </tr>
       </table>
<vlc id="else" />
       <table>
        <tr>
         <td>disabled</td>
         <td align="right">
          <form method="get" action="" />
           <input type="hidden" name="name" value="<vlc id="value" param1="el.name" />" />
           <input type="hidden" name="enabled" value="" />
           <button name="control" value="vlm_setup">enable</button>
          </form>
         </td>
        </tr>
       </table>
<vlc id="end" />
      </td>
     </tr>
<vlc id="end" />
<vlc id="end" />
168 169 170 171 172 173 174
    </table>
    </div>

    <hr/>
    <p> <vlc id="value" param1="copyright" /> </p>
</body>
</html>