'use strict' var limit = 12; var projtypeid = $("#projtypeid").val(); var parentprojtypeid = $("#parentprojtypeid").val(); pageprojlist(1); function pageprojlist(currentpage){ var offset = (currentpage-1)*limit; $.ajax({ url:'/webfrontprojcase/pagelist', data:{parentprojtypeid:parentprojtypeid,projtypeid:projtypeid,offset:offset,limit:limit}, type:"post", datatype:"json", success:function(data){ var projcaselist = data.data; var length = projcaselist.length; var total = data.total; $("#projcase div").remove(); var $tr=""; for(var i=0;i" // + "
"+cdate1+""+cyear+"
" // + "" // + "" // + "" // + "" // + "" // + "" // + "" // + " "+typename+"/"+name+"" // +"" // +"" $tr += "
" + "
" + "
"+name+"
" +"
" } $("#projcase").append($tr); var datacount=data.total; var currentpage= data.currentpage; var prepage = currentpage-1; if(prepage<1){prepage=1} var totalpage= data.totalpage; var nextpage = currentpage+1; if(nextpage>totalpage){nextpage=totalpage} //分页 $("#footerdiv").bootstrappaginator({ currentpage: currentpage, totalpages: totalpage, numberofpages: 6, bootstrapmajorversion: 3, size: "small", itemtexts: function(type, page, current) { //修改显示文字 switch (type) { case "first": return "第一页"; case "prev": return "上一页"; case "next": return "下一页"; case "last": return "最后一页"; case "page": return page; } }, onpageclicked: function(e,originalevent,type,page){ pageprojlist(page); } }); }, error:function(){} }) }