issue 160 admin pagination bug fix in trash module

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9385 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-09-28 05:41:49 +00:00
parent 56fd1836f8
commit 44369f5bdb

View file

@ -87,30 +87,32 @@ var no_text_comment = '{$lang->no_text_comment}';
</div> </div>
<div class="search"> <div class="search">
<form action="" class="pagination"> <form action="" class="pagination">
<input type="hidden" name="error_return_url" value="" /> <input type="hidden" name="error_return_url" value="" />
<input type="hidden" name="module" value="{$module}" /> <input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" /> <input type="hidden" name="act" value="{$act}" />
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" /> <input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
<input cond="$search_target" type="hidden" name="search_target" value="{$search_target}" /> <input cond="$search_target" type="hidden" name="search_target" value="{$search_target}" />
<a href="{getUrl('page', '')}" class="direction">&laquo; FIRST</a> <a href="{getUrl('page', '')}" class="direction">&laquo; FIRST</a>
<block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page"> <block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
<a href="{getUrl('page', '')}">1</a> {@$isGoTo = true}
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a> <a href="{getUrl('page', '')}">1</a>
</block> <a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
<!--@while($page_no = $page_navigation->getNextPage())--> </block>
{@$last_page = $page_no} <!--@while($page_no = $page_navigation->getNextPage())-->
<strong cond="$page_no == $page">{$page_no}</strong> {@$last_page = $page_no}
<a cond="$page_no != $page" href="{getUrl('page', $page_no)}">{$page_no}</a> <strong cond="$page_no == $page">{$page_no}</strong>
<!--@end--> <a cond="$page_no != $page" href="{getUrl('page', $page_no)}">{$page_no}</a>
<block cond="$last_page != $page_navigation->last_page"> <!--@end-->
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a> <block cond="$last_page != $page_navigation->last_page">
<a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a> {@$isGoTo = true}
</block> <a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
<a href="{getUrl('page', $page_navigation->last_page)}" class="direction">LAST &raquo;</a> <a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a>
<span id="goTo" class="tgContent"> </block>
<input name="page" title="{$lang->cmd_go_to_page}" /> <a href="{getUrl('page', $page_navigation->last_page)}" class="direction">LAST &raquo;</a>
<button type="submit">Go</button> <span cond="$isGoTo" id="goTo" class="tgContent">
</span> <input name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit">Go</button>
</span>
</form> </form>
</div> </div>