Allow pagination on Transaction page

* Added pager to all three transaction tables
* Added two additional pagination definitions to JS
* Added pagination ID to pagination template
This commit is contained in:
Sebastian Grewe 2013-06-09 16:38:12 +02:00
parent 9eeb088734
commit bbffdeb689
3 changed files with 13 additions and 4 deletions

View File

@ -69,6 +69,12 @@ $(function () {
$("table.pagesort")
.tablesorter({ widgets: ['zebra'] })
.tablesorterPager({ positionFixed: false, container: $("#pager") });
$("table.pagesort2")
.tablesorter({ widgets: ['zebra'] })
.tablesorterPager({ positionFixed: false, container: $("#pager2") });
$("table.pagesort4")
.tablesorter({ widgets: ['zebra'] })
.tablesorterPager({ positionFixed: false, container: $("#pager3") });
$('.block table tr th.header').css('cursor', 'pointer');

View File

@ -1,7 +1,8 @@
{include file="global/block_header.tpl" BLOCK_HEADER="Transaction Log" BUTTONS=array(Confirmed,Unconfirmed,Orphan)}
<div class="block_content tab_content" id="Confirmed" style="clear:;">
<center>
<table cellpadding="1" cellspacing="1" width="98%" class="sortable">
{include file="global/pagination.tpl"}
<table cellpadding="1" cellspacing="1" width="98%" class="pagesort">
<thead style="font-size:13px;">
<tr>
<th class="header" style="cursor: pointer;">TX #</th>
@ -42,7 +43,8 @@
</div>
<div class="block_content tab_content" id="Unconfirmed" style="">
<center>
<table cellpadding="1" cellspacing="1" width="98%" class="sortable">
{include file="global/pagination.tpl" ID=2}
<table cellpadding="1" cellspacing="1" width="98%" class="pagesort2">
<thead style="font-size:13px;">
<tr>
<th class="header" style="cursor: pointer;">TX #</th>
@ -86,7 +88,8 @@
</div>
<div class="block_content tab_content" id="Orphan" style="">
<center>
<table cellpadding="1" cellspacing="1" width="98%" class="sortable">
{include file="global/pagination.tpl"}
<table cellpadding="1" cellspacing="1" width="98%" class="pagesort3">
<thead style="font-size:13px;">
<tr>
<th class="header" style="cursor: pointer;">TX #</th>

View File

@ -1,4 +1,4 @@
<div id="pager">
<div id="pager{$ID|default:""}">
<form>
<img src="{$PATH}/images/first.png" class="first"/>
<img src="{$PATH}/images/prev.png" class="prev"/>