[% FOR col = classmetadata.list_columns.list;
NEXT IF col == "id";
"<th>";
- SET title = classmetadata.colnames.$col;
SET additional = "?order=" _ col;
- SET additional = additional _ "&page=" _ pager.current_page
+ SET additional = additional _ "&page=" _ pager.current_page
IF pager;
- SET additional = additional _ "&o2=desc"
+ SET additional = additional _ "&o2=desc"
IF col == request.query.order and request.query.o2 != "desc";
SET action = "list";
- FOR col = classmetadata.columns.list;
- IF request.query.$col;
+ FOR name = classmetadata.columns.list;
+ IF request.query.$name;
SET additional =
- additional _ "&" _ col _ "=" _ request.query.$col;
+ additional _ "&" _ name _ "=" _
+ request.query.$name;
SET action = "search";
END;
END;
- link(classmetadata.table, action, additional, title);
+ link(classmetadata.table, action, additional,
+ classmetadata.colnames.$col);
IF col == request.query.order;
IF request.query.o2 != "desc";
"↓";