Hi! I'm trying to develop a module which allows people to view a list of users with the data from their profiles in a sortable/searchable manner. I also want people to be able to control what fields they see. My idea is to create a page that would look something like this:
Fields to display:
[X] Last name [X] First name [X] Email [ ] Phone number [Change visible fields]
Last Name V First Name Email
LN1 FN3 ...
LN2 FN2 ...
LN3 FN5 ...
LN4 FN1 ...
LN5 FN4 ...
I'm not worried about searchable right yet — I'm still trying to get sortable working. It sort of works — I can use the form above to change the visible fields, but then all the sort information is lost. And if I use the links at the tops of the tables to change the sort information, the displayed fields is lost. Somehow, I need to be able to take the current display information, and insert it into the links generated by theme('table', ...). I also need to take the current sort information and save it across calls to the separate form.
I'm creating a module and in that module I have a page with a form on it, including a select box. The select box has several dozen options. One of them is the default option, though it may be in the middle of the list, and hence get quite lost as someone scrolls through the list. So I want to style/colour that option. e.g.
Could anyone to tell me how can I insert an fully working module with moodle integration?
I have tried one, but it is working only in Admin section. When I log out it doesn`t run.
Thanks!