1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <title>pyTivo - Push</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7 <link rel="stylesheet" type="text/css" href="/main.css">
10 #set $folders = $name.split('/')
11 <form action="/TiVoConnect" method="POST">
12 <script language="JavaScript">
14 function toggle(source) {
15 var checkboxes = document.getElementsByName('File');
16 for (var i = 0; i < checkboxes.length; i++) {
17 if (typeof(checkboxes[i].checked) != "undefined") {
18 checkboxes[i].checked = source.checked;
24 <p id="titlep"><span id="title">
25 <a href="/">pyTivo</a> /
27 <a href="/TiVoConnect?Command=QueryContainer&Container=$quote($folders[0])&Format=text/html">
33 #for $pos, $n in enumerate($folders[1:-1])
34 #set $ppath = '/'.join($folders[:$pos + 2])
35 / <a href="/TiVoConnect?Command=QueryContainer&Container=$quote($ppath)&Format=text/html">$n</a>
44 #set $arrowicon = 'updownarrow'
45 #set sortorder = 'Normal'
46 #if $sortby == '!normal'
47 #set $arrowicon = 'downarrow'
49 #if $sortby == 'normal'
50 #set sortorder = '!Normal'
51 #set $arrowicon = 'uparrow'
53 <td class="$arrowicon" onclick="document.location.href = '/TiVoConnect?Command=QueryContainer&Container=$quote($name)&SortOrder=$quote($sortorder)&Format=text/html';">
54 <span class="icon" style="float:left;"><input type="checkbox" name="selectAll" onClick="toggle(this)" Title="Select All" /></span>
55 <span class="prog"><a href='/TiVoConnect?Command=QueryContainer&Container=$quote($name)&SortOrder=$quote($sortorder)&Format=text/html'>Title</a></span>
57 <td class="progsizeheader">Size</td>
58 #set $arrowicon = 'updownarrow'
59 #set sortorder = 'CaptureDate'
60 #if $sortby == '!capturedate'
61 #set $arrowicon = 'downarrow'
63 #if $sortby == 'capturedate'
64 #set $sortorder = '!CaptureDate'
65 #set $arrowicon = 'uparrow'
67 <td class="$arrowicon" onclick="document.location.href = '/TiVoConnect?Command=QueryContainer&Container=$quote($name)&SortOrder=$quote($sortorder)&Format=text/html';">
68 <a href='/TiVoConnect?Command=QueryContainer&Container=$quote($name)&SortOrder=$quote($sortorder)&Format=text/html'>Capture Date</a>
72 ## i variable is used to alternate colors of row
73 ## loop through passed data printing row for each show or folder
74 #for $video in $videos
79 <tr class="row$(j) pointer" onclick="document.location.href = '/TiVoConnect?Command=QueryContainer&Container=$quote($name)/$quote($video.name)&Format=text/html';">
81 <span class="icon"><img src="/folder.png" alt=""></span>
82 <span><a href="/TiVoConnect?Command=QueryContainer&Container=$quote($name)/$quote($video.name)&Format=text/html">$video.title</a></span>
84 <td class="progsize">$video.total_items Items</td>
85 <td class="progdate">$video.textDate</td>
90 <span class="icon"><input type="checkbox" name="File" value="$video.part_path"></span>
91 #if $video.episodeTitle
92 <span class="progtitle">$video.title: $video.episodeTitle</span><br>
94 <span class="progtitle">$video.title</span><br>
96 <span class="icon"></span>
97 <span class="progdesc">
98 #if $video.description
101 #if $video.displayMajorNumber and $video.callsign
102 $video.displayMajorNumber $video.callsign
106 <td class="progsize">$video.textSize</td>
107 <td class="progdate">$video.textDate</td>
113 <input type="hidden" name="Command" value="Push">
114 <input type="hidden" name="Container" value="$name">
117 #if 'name' in $tivos[$tivo] and not $tivo.startswith('{')
118 <option>$tivos[$tivo]['name']</option>
122 #if not 'name' in $tivos[$tivo] and not $tivo.startswith('{')
123 <option>$tivo</option>
127 <input value="Send to TiVo" type="submit">