1 function displayTextInfo (opts,tablename) {
3 if(!("currentPage" in opts)) { return; }
5 var p = document.createElement('p'),
6 t = document.getElementById(tablename+'-fdtablePaginaterWrapTop'),
7 b = document.getElementById(tablename+'-fdtablePaginaterWrapBottom');
9 p.className = "paginationText";
10 p.appendChild(document.createTextNode("Showing page " + opts.currentPage + " of " + Math.ceil(opts.totalRows / opts.rowsPerPage)));
12 t.insertBefore(p.cloneNode(true), t.firstChild);