Make tab type (recent, remainig) "sticky" during attendance taking

This makes tabs "sticky" during attendance.
Stick what tab a user is on into the form, and if we've got that info in the post data, use that instead of the sql query to decide whether a user goes on a particular tab or not.