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; font-size: 1.5em;
} }
table.results
{
display: inline;
}
table.videometadata table.videometadata
{ {
border-width: 0px; border-width: 0px;

View file

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