Initial Commit
[Projects.git] / pkgbuilds / pytivo / pkg / usr / share / pyTivo / plugins / video / templates / container.xsl
blobd9bf01c8bd55736557ae56f8b41a4c1aaa3a644b
1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2 <xsl:output method="html" encoding="utf-8"/>
3 <xsl:template match="TiVoContainer">
4 <xsl:variable name="tivos" select="Tivos"/>
5 <html>
6 <body style="background-color: rgb(250, 250, 250);">
7 <form action="/TiVoConnect" method="POST">
8 <p align="center"><font size="6">
9 <xsl:value-of select="Details/Title"/>
10 </font></p>
11 <table style="border: 1px solid rgb(220, 220, 220);background-color:
12 rgb(255, 255, 255);text-align: left;" border="0" cellpadding="0"
13 cellspacing="4" width="100%">
14 <xsl:for-each select="Item">
15 <tr>
16 <xsl:if test="position() mod 2 = 1">
17 <xsl:attribute name="style">
18 <xsl:value-of select="'background-color: rgb(240, 240, 240);'"/>
19 </xsl:attribute>
20 </xsl:if>
21 <xsl:choose>
22 <xsl:when test="Details/ContentType = 'x-container/folder'">
23 <td/>
24 <td width="100%">
25 <a>
26 <xsl:attribute name="href">
27 <xsl:value-of select="Links/Content/Url"/>
28 </xsl:attribute>
29 <xsl:value-of select="Details/Title"/>
30 </a>
31 </td>
32 <td><xsl:value-of select="Details/TotalItems"/> Items</td>
33 </xsl:when>
34 <xsl:otherwise>
35 <td>
36 <input type="checkbox" name="File">
37 <xsl:attribute name="value">
38 <xsl:value-of select="Links/Push/File"/>
39 </xsl:attribute>
40 </input>
41 </td>
42 <td width="100%">
43 <b>
44 <xsl:value-of select="Details/Title"/>
45 <xsl:if test="Details/EpisodeTitle != ''">
46 <xsl:if test="Details/EpisodeTitle != Details/Title">
47 : <xsl:value-of select="Details/EpisodeTitle"/>
48 </xsl:if>
49 </xsl:if>
50 </b>
51 <xsl:if test="Details/Description != ''">
52 <br/>
53 <small><xsl:value-of select="Details/Description"/></small>
54 </xsl:if>
55 </td>
56 <td/>
57 </xsl:otherwise>
58 </xsl:choose>
59 </tr>
60 </xsl:for-each>
61 </table>
62 <p>
63 <input type="hidden" name="Command" value="Push"/>
64 <input type="hidden" name="Container">
65 <xsl:attribute name="value">
66 <xsl:value-of select="/TiVoContainer/Details/Title"/>
67 </xsl:attribute>
68 </input>
69 <select name="tsn">
70 <xsl:for-each select="/TiVoContainer/Tivos/Tivo">
71 <option>
72 <xsl:attribute name="value">
73 <xsl:value-of select="."/>
74 </xsl:attribute>
75 <xsl:value-of select="."/>
76 </option>
77 </xsl:for-each>
78 </select>
79 <input value="Send to TiVo" type="submit"/>
80 </p>
81 </form>
82 </body>
83 </html>
84 </xsl:template>
85 </xsl:stylesheet>