<table cellpadding="4" cellspacing="0" border="0">
<tr valign="top">
{{foreach from=$ResultsTaxonomy item=vv key=kk}}
	{{if $vv.CollectionHidden neq 1}}
	<th>{{$vv.CollectionFieldName}}</th>
	{{/if}}
{{/foreach}}
</tr>
{{assign var=Prefix value="Collection_"|concat:$ResultsCollectionID|concat:"_"}}
{{foreach from=$Results item=v key=k name=n}}
<tr valign="top">
	{{foreach from=$ResultsTaxonomy item=vv key=kk}}
	{{if $vv.CollectionHidden neq 1}}
		{{assign var=fieldName value=$Prefix|concat:$vv.CollectionFieldId}}
	<td {{if $smarty.foreach.n.index % 2 eq 0}} class="odd"{{else}} class="even"{{/if}}>
		{{if $vv.CollectionFieldLookupCollectionID gt 0}}
			{{assign var=lookupValue value=$v.$fieldName}}
			{{assign var=lookups value=$ResultsLookups[$fieldName]}}
			{{$lookups.$lookupValue}}
		{{else}}
		{{$v.$fieldName}}
		{{/if}}
	</td>
	{{/if}}
{{/foreach}}
</tr>
{{/foreach}}
</table>

<div>
{{assign var=Params value=$smarty.server.REQUEST_URI|explode:"?"}}
{{if $Params|@count gt 1}}
	{{assign var=sign value="&"}}
	{{assign var=ParamsTmp value=$Params[1]}}
	{{assign var=Params value=$ParamsTmp|explode:"&"}}
	{{assign var=First value=0}}
	{{foreach from=$Params item=v key=k name=n}}
		{{assign var=Tmp value=$v|explode:"="}}
		{{if $Tmp[0] neq 'pageNum'}}
			{{if $First eq 1}}{{assign var=QueryString value=$QueryString|concat:"&"}}{{else}}{{assign var=QueryString value=$QueryString|concat:"?"}}{{/if}}
			{{assign var=First value=1}}
			{{assign var=QueryString value=$QueryString|concat:$v}}
		{{/if}}
		
	{{/foreach}}
	
	{{if $QueryString eq ''}}{{assign var=sign value="?"}}{{/if}}
	
	
{{else}}
	{{assign var=sign value="?"}}
{{/if}}



{{assign var=theLinks value=$PageResults.links}}
{{if $theLinks|@count gt 1}}
{{if $PageResults.pagePrevious neq false}}
	<a href="{{$smarty.server.SCRIPT_URL}}{{$QueryString}}{{$sign}}pageNum=1"  style="text-decoration:none; ">First</a>  
{{/if}}
{{if $PageResults.pagePrevious neq false}}
	<a href="{{$smarty.server.SCRIPT_URL}}{{$QueryString}}{{$sign}}pageNum={{$PageResults.pagePrevious}}"  style="text-decoration:none; "><<</a>  
{{/if}}
{{foreach from=$theLinks item=v key=k name=n}}
	{{if $v eq true}}
		{{$k}}
	{{else}}
		<a href="{{$smarty.server.SCRIPT_URL}}{{$QueryString}}{{$sign}}pageNum={{$k}}">{{$k}}</a>
	{{/if}}
	{{if !$smarty.foreach.n.last}} | {{/if}}
{{/foreach}}
{{if $PageResults.pageNext neq false}}
	  <a href="{{$smarty.server.SCRIPT_URL}}{{$QueryString}}{{$sign}}pageNum={{$PageResults.pageNext}}" style="text-decoration:none; ">>></a>
{{/if}}
{{if $PageResults.pageNext neq false}}
	  <a href="{{$smarty.server.SCRIPT_URL}}{{$QueryString}}{{$sign}}pageNum={{$PageResults.pageLast}}" style="text-decoration:none; ">Last</a>
{{/if}}
{{/if}}
</div>