minor improvements
[anyfivecardpokerhand.git] / style / tpl / pagination.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<table class="widefat post fixed">
<tr>
	<td id="pagination">
		{if $smarty.get.hand != ""}
			{assign var="_hand" value=$smarty.get.hand}
			Showing <strong>{$hands.$_hand}{if $smarty.get.card}/{$smarty.get.card|htmlentities}{/if}</strong> combinations
		{else}
			Showing <strong>all/{$smarty.get.card|htmlentities}</strong> combinations
		{/if}
		<br />

		{if $pagination.firstpage}<a href="{$pagination.firstpage}">first page</a> | {/if}

		{foreach key=k item=v from=$pagination.pages}
			{if $k != $pagination.page}
				<a href="{$v}">{$k}</a>
			{else}
				{$k}
			{/if}
		{/foreach}

		{if $pagination.lastpage} | <a href="{$pagination.lastpage}">last page</a>{/if} | {$pagination.totalpages} pages | {$pagination.totalitems} combinations
	</td>
</tr>
</table>
comments