[UPDATE] pagination in round stats

This commit is contained in:
iAmShorty 2014-03-01 21:41:23 +01:00
parent 02f4f967b1
commit a68a77b832
3 changed files with 34 additions and 45 deletions

View File

@ -4,21 +4,31 @@
<div class="panel-heading">
<i class="fa fa-refresh fa-fw"></i> Round Statistics
</div>
<div class="panel-body">
<form action="{$smarty.server.SCRIPT_NAME}" method="POST" id='search' role="form">
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
<label>Search Block Height</label>
<div class="form-group input-group">
<input type="text" class="form-control" name="search" value="{$smarty.request.height|default:"%"|escape}">
<span class="input-group-btn">
<button class="btn btn-default" type="submit" value="Search"><i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<ul class="pager">
<li class="previous">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&prev=1"> &larr; </a>
</li>
<li class="next">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&next=1"> &rarr; </a>
</li>
</ul>
</div>
<div class="panel-body no-padding">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&prev=1"><i class="fa fa-chevron-left fa-fw"></i></a>
</td>
<td colspan="4">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&next=1"><i class="fa fa-chevron-right fa-fw"></i></a>
</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
@ -89,24 +99,7 @@
</tr>
</tbody>
</table>
<footer>
<form action="{$smarty.server.SCRIPT_NAME}" method="POST" id='search' role="form">
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
<div class="form-group input-group">
<input type="text" class="form-control" name="search" value="{$smarty.request.height|default:"%"|escape}">
<span class="input-group-btn">
<button class="btn btn-default" type="submit" value="Search"><i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
</footer>
</div>
</div>
</div>
</div>
</div>
</d

View File

@ -4,18 +4,14 @@
<div class="panel-heading">
<i class="fa fa-bar-chart fa-fw"></i> Block Statistics
</div>
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&prev=1"><i class="icon-left-open"></i></a>
</td>
<td colspan="4">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&next=1"><i class="icon-right-open"></i></a>
</td>
</tr>
</tbody>
</table>
<ul class="pager">
<li class="previous">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&prev=1">&larr; Prev</a>
</li>
<li class="next">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&next=1">Next &rarr;</a>
</li>
</ul>
<table class="tablesorter">
<thead>
<tr>

View File

@ -4,12 +4,12 @@
<div class="panel-heading">
<i class="fa fa-credit-card fa-fw"></i> Round Transactions
</div>
<div class="panel-body no-padding">
<div class="panel-body ">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th >User Name</th>
<th>User Name</th>
<th>Round Shares</th>
<th>Round %</th>
<th>PPLNS Shares</th>