<!-- BEGIN Pagination -->
<table border="0" align="center">
<tbody>
<tr>
<td>
<!-- BEGIN Total -->
{RES:TotalRecords} <strong>{TotalRecords} </strong>
<!-- END Total -->
</td>
<td>
<!-- BEGIN First -->
<a href="{First_URL}">{First_On}</a>{First_Off}
<!-- END First -->
<!-- BEGIN Prev -->
<a href="{Prev_URL}">{Prev_On}</a>{Prev_Off}
<!-- END Prev -->
<select id="paging">
<!-- BEGIN Pages -->
<option value="{Page_URL}" {is_active}> {Page_Number}</option>
<!-- END Pages -->
</select>
<!-- BEGIN Next -->
<a href="{Next_URL}">{Next_On}</a>{Next_Off}
<!-- END Next -->
<!-- BEGIN Last -->
<a href="{Last_URL}">{Last_On}</a>{Last_Off}
<!-- END Last -->
</td>
</tr>
</tbody>
</table>
<!-- END Pagination -->
<script>
// onchange handler for select control
var selectElement = document.getElementById('paging');
selectElement.onchange = function(){
var goto = this.value;
redirect(goto);
};
// onchange action (redirect)
function redirect(goto){
if ( goto != '') {
window.location = goto;
}
}
</script>
|