bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
      <!-- $Id: page.htm 14216 2008-03-10 02:27:21Z  $ -->
      {insert_scripts files="../js/utils.js"}
      <div id="turn-page">
        {$lang.total_records} <span id="totalRecords">{$record_count}</span>
        {$lang.total_pages} <span id="totalPages">{$page_count}</span>
        {$lang.page_current} <span id="pageCurrent">{$filter.page}</span>
        {$lang.page_size} <input type='text' size='3' id='pageSize' value="{$filter.page_size}" onkeypress="return listTable.changePageSize(event)" />
        <span id="page-link">
          {literal}<a href="javascript:listTable.gotoPageFirst()">{/literal}{$lang.page_first}</a>
          {literal}<a href="javascript:listTable.gotoPagePrev()">{/literal}{$lang.page_prev}</a>
          {literal}<a href="javascript:listTable.gotoPageNext()">{/literal}{$lang.page_next}</a>
          {literal}<a href="javascript:listTable.gotoPageLast()">{/literal}{$lang.page_last}</a>
 <!--   <select id="gotoPage" onchange="listTable.gotoPage(this.value)">
            {create_pages count=$page_count page=$filter.page}
          </select> -->
         跳转到 <input id="pageInput" title="按回车键跳转到指定页数" value="{$filter.page}" style="width:25px;"  onkeypress="if(event.keyCode==13) {listTable.gotoPage(this.value);}"   type="text">
          <input class="button" id="pagerBtn" value="GO" onclick="goToPage()" type="button">
        </span>
      </div>
<script>
function goToPage(){
    var page=$("#pageInput").val();
    listTable.gotoPage(page);
}
</script>