Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var count = rs(0);
- var c : double = count
- , t : double = take
- , pages = System.Math.Round(c / t);
- // Displays e.g. 1 - 10 out of 9,000 results
- var info = function(drop,take,count){%>
- <div class='cms-results-offset'><p>Results <%=drop+1 + "-" + (1*drop+take)%> out of <%=count%></p></div>
- <%};
- // Displays Previous - Next, to be styled by CSS
- var nav = function(prev,next){%>
- <div class='cms-results-offset'>
- <div class='cms-results-prev'><a href='<%=prevURL%>'>Previous</a></div></div>
- <div class='cms-results-next'><a href='<%=nextURL%>'>Next</a></div></div>
- </div>
- <%};
- // Full pagination section
- %>
- <div class='cms-pagination'>
- <%
- info();
- nav();
- DBC.withSelectedDS(sql,forName,failure,showRow,drop,take);
- nav();
- %>
- </div>
- <%
Add Comment
Please, Sign In to add comment