nice graphics in search results.

also, cocks.


git-svn-id: http://yolanda.mister-muffin.de/svn@186 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2007-11-25 08:14:30 +00:00
parent eb8305abac
commit 9302dd6cbe
5 changed files with 60 additions and 48 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -180,6 +180,11 @@ span.videotitle
font-size: 1.5em;
}
table.results
{
display: inline;
}
table.videometadata
{
border-width: 0px;

View file

@ -8,7 +8,8 @@
>
<xsl:template name="innerresults">
<table class="results" align="center">
<table class="results">
<xsl:for-each select="//results/result">
<tr class="result">
<td>
@ -169,11 +170,11 @@
<xsl:value-of select="//results/@resultcount" /> results on <xsl:value-of select="//results/@lastpage" /> pages
</div>
<xsl:call-template name="pagination"/>
<xsl:call-template name="pagination-numbers"/>
<xsl:call-template name="pagination-arrows"/>
<xsl:call-template name="innerresults"/>
<xsl:call-template name="pagination"/>
<xsl:call-template name="pagination-arrows"/>
<xsl:call-template name="pagination-numbers"/>
<div>
<form method="get">
@ -296,28 +297,54 @@
</xsl:template>
<xsl:template name="pagination">
<xsl:template name="pagination-arrows">
<xsl:variable name="query_string" select="concat('/', //results/@scriptname, '?', //results/@argument, '=', //results/@value, '&amp;orderby=', //results/@orderby, '&amp;sort=', //results/@sort, '&amp;pagesize=', //results/@pagesize)" />
<div>
<xsl:choose>
<xsl:when test="//results/@currentpage&lt;=1">
&lt;&lt; &lt;
<img src="./images/placeholder32x32.png" />
<img src="./images/placeholder32x32.png" />
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=1')" />
</xsl:attribute>
&lt;&lt;
<img src="./images/tango/go-first.png" />
</a>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@currentpage - 1)" />
</xsl:attribute>
&lt;
<img src="./images/tango/go-previous.png" />
</a>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="//results/@lastpage&lt;=//results/@currentpage">
<img src="./images/placeholder32x32.png" />
<img src="./images/placeholder32x32.png" />
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@currentpage + 1)" />
</xsl:attribute>
<img src="./images/tango/go-next.png" />
</a>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@lastpage)" />
</xsl:attribute>
<img src="./images/tango/go-last.png" />
</a>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>
<xsl:template name="pagination-numbers">
<xsl:variable name="query_string" select="concat('/', //results/@scriptname, '?', //results/@argument, '=', //results/@value, '&amp;orderby=', //results/@orderby, '&amp;sort=', //results/@sort, '&amp;pagesize=', //results/@pagesize)" />
<xsl:if test="//results/@currentpage > 2">
<a>
<xsl:attribute name="href">
@ -352,26 +379,6 @@
<xsl:value-of select="//results/@currentpage + 2" />
</a>
</xsl:if>
<xsl:choose>
<xsl:when test="//results/@lastpage&lt;=//results/@currentpage">
&gt; &gt;&gt;
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@currentpage + 1)" />
</xsl:attribute>
&gt;
</a>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@lastpage)" />
</xsl:attribute>
&gt;&gt;
</a>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>
</xsl:stylesheet>