It turns out that the new FFmpeg adds parenthetical comments to other
[pyTivo/wmcbrine/lucasnz.git] / plugins / video / templates / container_mob.tmpl
blobec82fee30a446055d3ef76bbe0076236e3a76bba
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <title>pyTivo - Push - $escape($name)</title>
6 <link rel="stylesheet" type="text/css" href="/main.css">
7 </head>
8 <body>
9 <form action="/TiVoConnect" method="POST">
10 <p id="titlep"><span id="title">pyTivo - Push - $escape($name)</span></p>
11 <p><a href="/">Home</a></p>
12 <script language="JavaScript">
13 <!--
14 function toggle(source) {
15         var checkboxes = document.getElementsByName('Url');
16         for (var i = 0; i < checkboxes.length; i++) {
17                 if (typeof(checkboxes[i].checked) != "undefined") {
18                         checkboxes[i].checked = source.checked;
19                         }
20         }
22 -->
23 </script>
24 <table id="main" border="0" cellpadding="0" cellspacing="4">
25   ## Header Row
26         <tr class="header">
27                 <td><input type="checkbox" name="selectAll" onClick="toggle(this)" Title="Select All" /></td>
28                 <td></td>
29                 <td>Title</td>
30                 <td>Size</td>
31                 <td>Capture Date</td>
32         </tr>
33   #set $i = 0
34   ## i variable is used to alternate colors of row
35   ## loop through passed data printing row for each show or folder
36   #for $video in $videos
37           #set $i += 1
38           #set $j = $i%2
39           <tr class="row$(j)">
40           #if $video.is_dir
41             ## This is a folder
42                 <td></td>
43         <td><img src="/folder.png" alt="" /></td>
44                 <td width="100%"><a href='/TiVoConnect?Command=QueryContainer&amp;Container=$quote($name)/$quote($video.name)'>$video.title </a></td>
45                 <td class="unbreak">$video.total_items Items</td>
46                 <td class="unbreak">$video.textDate</td>
47           #else
48             ## This is a show
49                 <td>
50             <input type="checkbox" name="Url" value="$escape($video.Url)">
51                 </td>
52         <td></td>
53                 <td width="100%">
54                         #if $video.episodeTitle
55                         <span class="progtitle">$escape($video.title): $escape($video.episodeTitle)</span>
56                         #else
57                         <span class="progtitle">$escape($video.title)</span>
58                         #end if
59                         <span class="progdesc">
60             #if $video.description
61                         $escape($video.description)
62                         #end if
63                         #if $video.displayMajorNumbe and $video.callsign
64                         $video.displayMajorNumber $video.callsign
65                         #end if
66                         </span>
67                 </td>
68                 <td class="unbreak">$video.textSize
69                 </td>
70                 <td class="unbreak">$video.textDate</td>
71           #end if
72           </tr>
73   #end for
74 </table>
75 <p>
76       <input type="hidden" name="Command" value="Push"/>
77       <input type="hidden" name="Container" value="$name"/>
78         <select name="tsn">
79         #for $tivo in $tivo_names
80         <option>$tivo_names[$tivo]</option>
81         #end for
82         </select>
83       <input value="Send to TiVo" type="submit"/>
84 </p>
85 </form>
86 </body>
87 </html>