0) {
if (!@@rsName@@.BOF) @@rsName@@.MoveFirst();
} else {
@@rsName@@.Requery();
}
// set the number of rows displayed on this page
if (@@rsName@@_numRows < 0 || @@rsName@@_numRows > @@rsName@@_total) {
@@rsName@@_numRows = @@rsName@@_total;
}
// set the first and last displayed record
@@rsName@@_last = Math.min(@@rsName@@_first + @@rsName@@_numRows - 1, @@rsName@@_total);
@@rsName@@_first = Math.min(@@rsName@@_first, @@rsName@@_total);
}
%>
]]>