trunk 20080912
[gitenigma.git] / data / templates / dvrcontrols.tmp
blob644a2a8924e5e83348a9060185f31989ffb49f4c
1                 <tr>
2                         <!-- dvr controls start -->
3                         <script>
4                                 function video(key)
5                                 {
6                                         if (body.zapMode)
7                                         {
8                                                 if (body.zapMode == 3)
9                                                 {
10                                                         var selChannel = body.document.channelselector.channel.selectedIndex;
11                                                         var channel = "";
12                                                         if (selChannel >= 0)
13                                                         {
14                                                                 currentChannel = selChannel;
15                                                                 channel = body.document.channelselector.channel.options[selChannel].value;
16                                                                 document.location = "/cgi-bin/videocontrol?command=" + key + "&sref=" + channel + "&curChannel=" + currentChannel;
17                                                         }
18                                                 }
19                                                 else
20                                                         document.location = "/cgi-bin/videocontrol?command=" + key;
21                                         }
22                                         else
23                                                 document.location = "/cgi-bin/videocontrol?command=" + key;
24                                 }
25                                 function setVideo(videoPosition)
26                                 {
27                                         updateVideoBar2(videoPosition);
28                                         document.location = "/setVideo?position=" + videoPosition;
29                                 }
30                         </script>
31                         <td colspan="2">
32                                 <table id="dvrctrl" border="0" width="100%" height="30px" cellspacing="0" cellpadding="0" background="mepg_grad.png">
33                                 <tbody align="left">
34                                 <tr>
35                                         <td>
36                                                 <map name="ctrl">
37                                                         <area shape="circle" coords="11, 11, 11" href="javascript:video('rewind')" alt="Rewind">
38                                                         <area shape="circle" coords="42, 11, 11" href="javascript:video('play')" alt="Play">
39                                                         <area shape="circle" coords="74, 11, 11" href="javascript:video('pause')" alt="Pause">
40                                                         <area shape="circle" coords="104, 11, 11" href="javascript:video('forward')" alt="Forward">
41                                                         <area shape="circle" coords="134, 11, 11" href="javascript:video('stop')" alt="Stop">
42                                                         <area shape="circle" coords="164, 11, 11" href="javascript:video('record')" alt="Record">
43                                                         </map>
44                                                         <table id="videocontrol" border="0" cellspacing="0" cellpadding="0">
45                                                         <tr>
46                                                                 <td id="videoTime" align="center" valign="center" width="120">&nbsp;</td>
47                                                                 <td><img src="dvr.gif" height="25" border="0" usemap="#ctrl"></td>
48                                                                 <td width="10">&nbsp;</td>
49                                                                 <td>
50                                                                         <table border="0" cellspacing="0" cellpadding="0">
51                                                                         <tr>
52                                                                                 <td><a href="javascript:setVideo(1)"><img id="vid1" border="0" src="led_off.gif"></a></td>
53                                                                                 <td><a href="javascript:setVideo(2)"><img id="vid2" border="0" src="led_off.gif"></a></td>
54                                                                                 <td><a href="javascript:setVideo(3)"><img id="vid3" border="0" src="led_off.gif"></a></td>
55                                                                                 <td><a href="javascript:setVideo(4)"><img id="vid4" border="0" src="led_off.gif"></a></td>
56                                                                                 <td><a href="javascript:setVideo(5)"><img id="vid5" border="0" src="led_off.gif"></a></td>
57                                                                                 <td><a href="javascript:setVideo(6)"><img id="vid6" border="0" src="led_off.gif"></a></td>
58                                                                                 <td><a href="javascript:setVideo(7)"><img id="vid7" border="0" src="led_off.gif"></a></td>
59                                                                                 <td><a href="javascript:setVideo(8)"><img id="vid8" border="0" src="led_off.gif"></a></td>
60                                                                                 <td><a href="javascript:setVideo(9)"><img id="vid9" border="0" src="led_off.gif"></a></td>
61                                                                                 <td><a href="javascript:setVideo(10)"><img id="vid10" border="0" src="led_off.gif"></a></td>
62                                                                                 <td><a href="javascript:setVideo(11)"><img id="vid11" border="0" src="led_off.gif"></a></td>
63                                                                                 <td><a href="javascript:setVideo(12)"><img id="vid12" border="0" src="led_off.gif"></a></td>
64                                                                                 <td><a href="javascript:setVideo(13)"><img id="vid13" border="0" src="led_off.gif"></a></td>
65                                                                                 <td><a href="javascript:setVideo(14)"><img id="vid14" border="0" src="led_off.gif"></a></td>
66                                                                                 <td><a href="javascript:setVideo(15)"><img id="vid15" border="0" src="led_off.gif"></a></td>
67                                                                                 <td><a href="javascript:setVideo(16)"><img id="vid16" border="0" src="led_off.gif"></a></td>
68                                                                                 <td><a href="javascript:setVideo(17)"><img id="vid17" border="0" src="led_off.gif"></a></td>
69                                                                                 <td><a href="javascript:setVideo(18)"><img id="vid18" border="0" src="led_off.gif"></a></td>
70                                                                                 <td><a href="javascript:setVideo(19)"><img id="vid19" border="0" src="led_off.gif"></a></td>
71                                                                                 <td><a href="javascript:setVideo(20)"><img id="vid20" border="0" src="led_off.gif"></a></td>
72                                                                         </tr>
73                                                                         </table> <!-- video bar -->
74                                                                 </td>
75                                                                 <td width="10">&nbsp;</td>
76                                                                 <td id="diskgb">&nbsp;</td>
77                                                                 <td>&nbsp;</td>
78                                                                 <td id="diskh">&nbsp;</td>
79                                                         </tr>
80                                                         </table>
81                                         </td>
82                                 </tr>
83                                 </tbody>
84                                 </table>
85                         </td>
86                         <!-- dvr controls end -->
87                 </tr>