[%
IF pager AND pager.first_page != pager.last_page;
%]
-
-<P ALIGN="center">Pages:
+<p align=center>Pages:
[%
SET begin_page = pager.current_page - 10;
IF begin_page < 1;
IF num == pager.current_page;
"["; num; "] ";
ELSE;
- SET args = "?page=" _ num; # Order?
SET label = "[" _ num _ "]";
- link(classmetadata.table, "list", args, label);
+ SET args = "?page=" _ num;
+ SET action = "list";
+ FOR col = classmetadata.columns.list;
+ IF request.query.$col;
+ SET args = args _ "&" _ col _ "=" _ request.query.$col;
+ SET action = "search";
+ END;
+ END;
+ link(classmetadata.table, action, args, label);
END;
END;
%]
-</P>
+</p>
[% END %]