var columnSortDisplayTable1 = new Array(); function doIt( columnSortDisplayTable,tableNo, tempsrno ,dLimit) { columnSortDisplayTable1 = columnSortDisplayTable; var finalString = ""; lastPageRecords = parseInt(columnSortDisplayTable.noOfRecords) % parseInt(dLimit) ; lastPageRecords = parseInt(columnSortDisplayTable.noOfRecords) - parseInt(lastPageRecords) ; //var tempcontent = ""; //tempcontent = tempcontent + ""; var tempcontent = ""; // if(parseInt(tempsrno) == parseInt(columnSortDisplayTable.noOfRecords) && tempsrno > 0 ) // { // lastPageRecords=parseInt(columnSortDisplayTable.noOfRecords) - parseInt(dLimit); // tempsrno=parseInt(columnSortDisplayTable.noOfRecords) - parseInt(dLimit); // } if( tempsrno == 0 && parseInt(columnSortDisplayTable.noOfRecords) > parseInt(dLimit)) { tempcontent = tempcontent + ""; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; tempcontent = tempcontent + "
"; //tempcontent = tempcontent + ""; //tempcontent = tempcontent + ""; if(document.layers) { var doc = document.eval(TAB1NETSC1).document; doc.open(); doc.write(tempcontent); doc.close(); } else { eval(columnSortDisplayTable.div+"NAV").innerHTML = tempcontent; finalString = eval(columnSortDisplayTable.div+"NAV").innerHTML; } } else if((parseInt( dLimit )+ parseInt(tempsrno)) < parseInt(columnSortDisplayTable.noOfRecords)) { tempcontent = tempcontent + ""; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " <<< First"; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " << Previous"; tempcontent = tempcontent + "" ; tempcontent = tempcontent + ""; tempcontent = tempcontent + "Page : "+((parseInt(tempsrno)/parseInt(dLimit))+1)+" of "+(Math.ceil(parseInt(columnSortDisplayTable.noOfRecords)/parseInt(dLimit)))+" Pages "; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " Next >> "; tempcontent = tempcontent + ""; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " Last >>> "; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; //tempcontent = tempcontent + ""; //tempcontent = tempcontent + ""; (tempcontent); if(document.layers) { var doc = document.eval(TAB1NETSC1).document; doc.open(); doc.write(tempcontent); doc.close(); } else { eval(columnSortDisplayTable.div+"NAV").innerHTML = tempcontent; finalString = eval(columnSortDisplayTable.div+"NAV").innerHTML; } } else if((parseInt( dLimit )+ parseInt(tempsrno)) > parseInt(columnSortDisplayTable.noOfRecords) && tempsrno > 0 ) { tempcontent = tempcontent + ""; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " <<< First"; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " << Previous"; tempcontent = tempcontent + "" ; tempcontent = tempcontent + ""; tempcontent = tempcontent + "Page : "+((parseInt(tempsrno)/parseInt(dLimit))+1)+" of "+(Math.ceil(parseInt(columnSortDisplayTable.noOfRecords)/parseInt(dLimit)))+" Pages "; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "Next >>"; tempcontent = tempcontent + ""; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "Last >>>"; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; //tempcontent = tempcontent + ""; //tempcontent = tempcontent + ""; if(document.layers) { var doc = document.eval(TAB1NETSC1).document; doc.open(); doc.write(tempcontent); doc.close(); } else { eval(columnSortDisplayTable.div+"NAV").innerHTML = tempcontent; eval(columnSortDisplayTable.div+"NAV").innerHTML; finalString = eval(columnSortDisplayTable.div+"NAV").innerHTML; } }else if((parseInt( dLimit )+ parseInt(tempsrno)) == parseInt(columnSortDisplayTable.noOfRecords) && tempsrno > 0 ) { tempcontent = tempcontent + ""; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " <<< First"; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + " << Previous"; tempcontent = tempcontent + "" ; tempcontent = tempcontent + ""; tempcontent = tempcontent + "Page : "+((parseInt(tempsrno)/parseInt(dLimit))+1)+" of "+(Math.ceil(parseInt(columnSortDisplayTable.noOfRecords)/parseInt(dLimit)))+" Pages "; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "Next >>"; tempcontent = tempcontent + ""; tempcontent = tempcontent + "" ; tempcontent = tempcontent + "Last >>>"; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; tempcontent = tempcontent + ""; //tempcontent = tempcontent + ""; //tempcontent = tempcontent + ""; if(document.layers) { var doc = document.eval(TAB1NETSC1).document; doc.open(); doc.write(tempcontent); doc.close(); } else { eval(columnSortDisplayTable.div+"NAV").innerHTML = tempcontent; eval(columnSortDisplayTable.div+"NAV").innerHTML; finalString = eval(columnSortDisplayTable.div+"NAV").innerHTML; } } return finalString ; }