restructure a bit, remove uneeded templates.js
[vuplus_dvbapp-plugin] / webinterface / src / web-data / tpl / default / tplMediaPlayer.htm
1 <table id="contentTable">
2         <tr>
3                 <td>
4                         <table border="0" cellpadding="0" cellspacing="0" border="1">
5                                 <thead>
6                                         <tr>
7                                                 <th>
8                                                         <div class="sListHeader">MediaPlayer ${mp.root}
9                                                                 <map name="mpcontrols">
10                                                                 <area shape="circle" coords="17, 17, 14" nohref onclick="sendMediaPlayer('back')" alt="jump back">
11                                                                 <area shape="circle" coords="54, 17, 14" nohref onclick="sendMediaPlayer('play')" alt="play">
12                                                                 <area shape="circle" coords="88, 17, 14" nohref onclick="sendMediaPlayer('pause')" alt="pause">
13                                                                 <area shape="circle" coords="125, 17, 14" nohref onclick="sendMediaPlayer('next')" alt="jump forward">
14                                                                 <area shape="circle" coords="161, 17, 14" nohref onclick="sendMediaPlayer('stop')" alt="stop">
15                                                                 </map><img src="/web-data/img/dvr-buttons-small-fs8.png" align="top" title="Control MediaPlayer" border="0" usemap="#mpcontrols">
16                                                                 <!--  <img src="/web-data/img/edit.gif" onclick="openMediaPlayerPlaylist()">
17                                                                  still need some work for editing --> 
18                                                         </div>
19                                                         <div class="sListSearch">
20                                                                 <img src="/web-data/img/nok.png" align="top" title="Close MediaPlayer" border="0" onclick="sendMediaPlayer('exit')">
21                                                         </div>
22                                                 </th>
23                                         </tr>
24                                 </thead>
25                                 <tbody>
26                                         {for item in items}
27                                         <tr>
28                                                 <!-- ItemBody -->
29                                                 <td>
30                                                         <div style="color: #${item.color};" onclick="${item.exec}('${item.servicereference}','${item.root}');" class="sListSName" title="${item.servicereference}">${item.name}</div>
31                                                 </td>
32                                                 <td>
33                                                         {if item.isdir == "false"}                                                      
34                                                         <div class="sListExt">
35                                                                 <img src="/web-data/img/play.png" onclick="${item.exec}('${item.servicereference}','${item.root}');" title="${item.exec_description}" border="0">
36                                                                 <a target="_blank" href="/file/?file=${item.name}&root=${item.root}"><img src="/web-data/img/save.png" title="Download File" border="0"></a>
37                                                         </div>
38                                                         {/if}
39                                                 </td>
40                                         </tr>
41                                         {forelse}
42                                         <tr>
43                                                 <td>Nothing to Display</td>
44                                         </tr>
45                                         {/for}
46                                         <tr>
47                                                 <td colspan="7"><button onclick="writePlaylist()">Write Playlist</button></td>
48                                         </tr>
49                                 </tbody>
50                         </table>
51                 </td>
52         </tr>
53 </table>