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:
parent
eb8305abac
commit
9302dd6cbe
5 changed files with 60 additions and 48 deletions
BIN
trunk/images/tango/go-first.png
Normal file
BIN
trunk/images/tango/go-first.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
trunk/images/tango/go-last.png
Normal file
BIN
trunk/images/tango/go-last.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
trunk/images/tango/go-previous.png
Normal file
BIN
trunk/images/tango/go-previous.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -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;
|
||||||
|
|
|
@ -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, '&orderby=', //results/@orderby, '&sort=', //results/@sort, '&pagesize=', //results/@pagesize)" />
|
<xsl:variable name="query_string" select="concat('/', //results/@scriptname, '?', //results/@argument, '=', //results/@value, '&orderby=', //results/@orderby, '&sort=', //results/@sort, '&pagesize=', //results/@pagesize)" />
|
||||||
<div>
|
<div>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//results/@currentpage<=1">
|
<xsl:when test="//results/@currentpage<=1">
|
||||||
<< <
|
<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, '&page=1')" />
|
<xsl:value-of select="concat($query_string, '&page=1')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<<
|
<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, '&page=', //results/@currentpage - 1)" />
|
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage - 1)" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<
|
<img src="./images/tango/go-previous.png" />
|
||||||
</a>
|
</a>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="//results/@lastpage<=//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, '&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, '&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, '&orderby=', //results/@orderby, '&sort=', //results/@sort, '&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<=//results/@currentpage">
|
|
||||||
> >>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage + 1)" />
|
|
||||||
</xsl:attribute>
|
|
||||||
>
|
|
||||||
</a>
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:value-of select="concat($query_string, '&page=', //results/@lastpage)" />
|
|
||||||
</xsl:attribute>
|
|
||||||
>>
|
|
||||||
</a>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</div>
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
Loading…
Reference in a new issue