pagination.tag 845 B

123456789101112131415161718192021222324252627282930
  1. ${tagBody!}
  2. <script type="text/javascript" src="/admin/script/jquery.pagination.js"></script>
  3. <script type="text/javascript">
  4. $(function(){
  5. var limit = ${page.pageSize!10};
  6. var totalRow = ${page.totalRow!0};
  7. var current_page = ${page.pageNumber!1};
  8. ## var params_url="";
  9. ## if(!empty("params")){
  10. ## var array = strutil.split(params,",");
  11. ## for(a in array){
  12. ## if(_value(a)!=null){
  13. ## params_url=params_url+"&"+a+"="+_value(a);
  14. ## }
  15. ## }
  16. ## }
  17. jQuery("#Pagination").pagination(totalRow, {
  18. num_edge_entries: 2,
  19. num_display_entries: 5,
  20. items_per_page:limit,
  21. current_page:current_page,
  22. prev_text:'上一页',
  23. next_text:'下一页',
  24. prev_show_always:${prev_show_always!false},
  25. next_show_always:${next_show_always!false},
  26. link_to:encodeURI('?p=__id__${params_url!}'),
  27. callback:function(){}
  28. });
  29. });
  30. </script>