Guest User

Untitled

a guest
Jun 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. var count = rs(0);
  2. var c : double = count
  3. , t : double = take
  4. , pages = System.Math.Round(c / t);
  5.  
  6. // Displays e.g. 1 - 10 out of 9,000 results
  7. var info = function(drop,take,count){%>
  8. <div class='cms-results-offset'><p>Results <%=drop+1 + "-" + (1*drop+take)%> out of <%=count%></p></div>
  9. <%};
  10.  
  11. // Displays Previous - Next, to be styled by CSS
  12. var nav = function(prev,next){%>
  13. <div class='cms-results-offset'>
  14. <div class='cms-results-prev'><a href='<%=prevURL%>'>Previous</a></div></div>
  15. <div class='cms-results-next'><a href='<%=nextURL%>'>Next</a></div></div>
  16. </div>
  17. <%};
  18.  
  19. // Full pagination section
  20. %>
  21. <div class='cms-pagination'>
  22. <%
  23. info();
  24. nav();
  25. DBC.withSelectedDS(sql,forName,failure,showRow,drop,take);
  26. nav();
  27. %>
  28. </div>
  29. <%
Add Comment
Please, Sign In to add comment