text: $.fn.dataTableExt.oApi.fnPagingInfo=function(a){return{iStart:a._iDisplayStart,iEnd:a.fnDisplayEnd(),iLength:a._iDisplayLength,iTotal:a.fnRecordsTotal(),iFilteredTotal:a.fnRecordsDisplay(),iPage:-1===a._iDisplayLength?0:Math.ceil(a._iDisplayStart/a._iDisplayLength),iTotalPages:-1===a._iDisplayLength?0:Math.ceil(a.fnRecordsDisplay()/a._iDisplayLength)}},$.extend($.fn.dataTableExt.oPagination,{bootstrap:{fnInit:function(a,i,e){var t=a.oLanguage.oPaginate,l=function(i){i.preventDefault(),a.oApi._fnPageChange(a,i.data.action)&&e(a)};$(i).append('<ul class="pagination"><li class="prev disabled"><a href="#"><i class="icon-double-angle-left"></i> '+t.sPrevious+'</a></li><li class="next disabled"><a href="#">'+t.sNext+' <i class="icon-double-angle-right"></i></a></li></ul>');var s=$("a",i);$(s[0]).bind("click.DT",{action:"previous"},l),$(s[1]).bind("click.DT",{action:"next"},l)},fnUpdate:function(a,i){var e,t,l,s,n,o=5,r=a.oInstance.fnPagingInfo(),d=a.aanFeatures.p,c=Math.floor(o/2);for(r.iTotalPages<o?(s=1,n=r.iTotalPages):r.iPage<=c?(s=1,n=o):r.iPage>=r.iTotalPages-c?(s=r.iTotalPages-o+1,n=r.iTotalPages):(s=r.iPage-c+1,n=s+o-1),e=0,iLen=d.length;e<iLen;e++){for($("li:gt(0)",d[e]).filter(":not(:last)").remove(),t=s;n>=t;t++)l=t==r.iPage+1?'class="active"':"",$("<li "+l+'><a href="#">'+t+"</a></li>").insertBefore($("li:last",d[e])[0]).bind("click",function(e){e.preventDefault(),a._iDisplayStart=(parseInt($("a",this).text(),10)-1)*r.iLength,i(a)});0===r.iPage?$("li:first",d[e]).addClass("disabled"):$("li:first",d[e]).removeClass("disabled"),r.iPage===r.iTotalPages-1||0===r.iTotalPages?$("li:last",d[e]).addClass("disabled"):$("li:last",d[e]).removeClass("disabled")}}}}),$(function(){$(".datatable").each(function(){var a=$(this),i=a.closest(".dataTables_wrapper").find("div[id$=_filter] input");i.attr("placeholder","Search"),i.addClass("form-control input-small"),i.css("width","250px");var e=a.closest(".dataTables_wrapper").find("div[id$=_filter] a");e.html('<i class="icon-remove-circle icon-large"></i>'),e.css("margin-left","5px");var t=a.closest(".dataTables_wrapper").find("div[id$=_length] select");t.addClass("form-control input-small"),t.css("width","75px");var t=a.closest(".dataTables_wrapper").find("div[id$=_info]");t.css("margin-top","18px")})});