Commit graph

280 commits

Author SHA1 Message Date
tjhunt
36075e092d MDL-6041 - Proper fix that eliminates the magic number 99999 when getting lists of studnets. Now, there is no arbitrary upper limit in the datalib functions, and sensible upper limits on pages that display lists of users. However, if you try to get all the site students, then get_students prints a warning in debug mode, telling you that you need to rethink your code.
Also a few more ISNULL()s eliminated.

And a typo role_assignment -> role_assignments.
2006-09-15 14:32:35 +00:00
toyomoyo
17d6a25e5c adding capabilitiies 2006-09-13 09:08:14 +00:00
toyomoyo
be2e1b6698 removing debug statement 2006-09-13 06:13:53 +00:00
toyomoyo
cbf0446d8a use user_lastaccess table to find inactive time instead of user_students table 2006-09-13 06:13:07 +00:00
moodler
94fb6d1d62 fixing a problem where a user hasn't got any entries on the user_lastaccess table, temp solution as this could break other db 2006-09-13 05:55:57 +00:00
toyomoyo
8ca1053a45 changed to outer join as user_lastaccess table could contain null 2006-09-13 05:29:26 +00:00
moodler
7da0af9feb Fixed some obvious typos 2006-09-13 05:05:17 +00:00
toyomoyo
dfe603583e changed code to use the user_lastaccess table instead of the user table 2006-09-12 07:39:25 +00:00
toyomoyo
1c45e42e3c adding capabilities 2006-09-11 08:56:23 +00:00
toyomoyo
d02eededf7 adding capabilities 2006-09-06 08:55:23 +00:00
gustav_delius
b7ef492c41 Take out invalid </tr>. While this makes the html valid some work should still be done on the layout of this. 2006-09-03 12:23:11 +00:00
moodler
a72784d3c6 Just a slight tidy-up 2006-08-25 08:54:22 +00:00
toyomoyo
41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
toyomoyo
0a8a95c91e some more UI stuff 2006-08-15 08:29:29 +00:00
moodler
e957cc2644 Cleaned up a bunch of notices and some logic 2006-08-14 08:38:49 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
toyomoyo
171948fd4a bumped up version to add keys, changed some more UI 2006-08-10 08:21:29 +00:00
moodler
ee4a52c59e Removed tabs 2006-08-09 13:53:12 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
moodler
c1edf72575 Merged header fix from stable 2006-06-19 13:38:17 +00:00
mjollnir_
ca79268087 merged from MOODLE_16_STABLE: participants list last access filter should only show for teachers! I noticed this on moodle.org this morning :| 2006-06-15 21:37:20 +00:00
moodler
f0cb18e627 Fix for bug 5144 (nickname field) 2006-04-10 16:12:53 +00:00
toyomoyo
1242eb8f38 Checking in some blog-related user changes for testing on
another machine
2006-03-09 09:09:20 +00:00
mjollnir_
df1b52e8bb Contextual help for participants list 'with selected users' actions 2006-01-16 08:52:21 +00:00
patrickslee
8ab5ca2f94 Refined some wording and logic for extend enrolment period 2005-11-29 04:04:16 +00:00
patrickslee
3468d58a1b New feature: Configureable visibility of fields in Participants page
A new configuration variable is avaliable to limit which fields normal user can see about other users. Teachers/admins can still see the full info.

This provides some degree of privacy for students.
2005-11-20 21:29:59 +00:00
gustav_delius
ac17ef1162 Replaced PARAM_TEXT (which does not exist) by PARAM_CLEAN. Someone who knows more about the search capability on this page might want to tightent that up.
$wheresearch was not initialised, leading to php notice.
2005-11-19 13:19:34 +00:00
patrickslee
9a0f8502f5 Allow tutors to be added in bulk email list.
In addition, if any tutor in the list is not subscribed to the teacher forum they will be subscribed automatically.

Also show hidden tutors as well when a teacher is viewing the participants list.

And some small bug fixes
2005-11-17 03:37:30 +00:00
mjollnir_
e4103b6a59 &amp; instead of & in participants list base url (from last commit - make participants list searchable) 2005-11-17 03:10:53 +00:00
mjollnir_
f1e24e7a1b Make participants list searchable 2005-11-17 03:09:07 +00:00
mjollnir_
31b7133683 Add a last access filter to the participants list - show users inactive for more than x time period 2005-11-17 02:46:27 +00:00
patrickslee
db0a8174c6 Made action_redir.php take posted parameters, fixing a problem in IE that when trying to add a lot user (say 150+) to the actions this fails to work 2005-11-08 02:34:19 +00:00
defacer
e5ada99f2b Merged from STABLE:
Fix for bug 4127:

In the course participants page, selecting an initials filter in one course
and then moving to another (the filter would propagate) could result in few
or no results being displayed. The teacher would then have no way of
resetting the filter and viewing all (or possibly any) participants.

Fixed by making each course participant page independent. They no longer
share sort orders, collapsed column state, or initials filters.
2005-10-21 01:18:30 +00:00
patrickslee
0f24c257b6 Modified some words to be more generic 2005-10-05 22:22:03 +00:00
patrickslee
5e2c3024a3 Added javascript check before submitting form when using drop down menu 2005-10-05 21:44:03 +00:00
patrickslee
6746bb8ad4 New feature to extend student enrolment period and improvements to the action list in participants list 2005-09-29 06:30:58 +00:00
patrickslee
d937f3ab19 Removed a block of redundant code in participants list (Merged from MOODLE_15_STABLE) 2005-09-29 01:41:50 +00:00
mjollnir_
d7aba64b5a Trying to prevent user table allowing ordering by non-existant fields (I added for bulk IM) 2005-09-04 20:57:43 +00:00
mjollnir_
f19570d0ec Initial checkin of new feature to select users from participants page for a recipient list for sending an IM to. Please test. 2005-08-22 05:44:13 +00:00
defacer
a5a3f48a4a Merging from STABLE:
Augment tablelib so that it can accept a default sort order.
Adding default sort order to participant lists to reinstate 1.4-style behavior.
2005-06-20 03:47:19 +00:00
defacer
bf845f2b30 Merging from STABLE:
Forgot to prepend country codes to the teacher list as well when sorting.
2005-06-03 23:41:06 +00:00
defacer
cc038b4772 Merging from STABLE:
Converted the students table to use the new table class

Fixed bug 3114: when sorting by country, prepend country code to the country name

Fixed behavior of autohiding teacher list; now there is a hide/show icon to be
consistent with the rest of Moodle

Fixed "show all" option so that the user can control it instead of relying on auto behavior

Fixed HTML, removed all inline styles

Improved accessibility (alt tags for images)

Updated obsolete optional_variable calls to optional_param

Several cosmetic and other improvements I 've already forgotten :P
2005-06-03 23:20:01 +00:00
moodler
2c27cd193e Hiding icon as per bug 3098 2005-05-03 18:11:34 +00:00
defacer
68b38e8d02 Teachers table is now displayed with the new table class. 2005-04-27 18:30:02 +00:00
fiedorow
cf9f97c2dd Fix for Bug #3015 2005-04-25 20:32:49 +00:00
moodler
63c1418986 Groups are more sticky for students browsing participants 2005-04-11 18:25:09 +00:00
moodler
ff3caf30c0 Big tidy up of Group listing, User listing and how they interact.
It's still not perfect but it's much much better I think.
2005-03-22 16:04:10 +00:00
gustav_delius
ec99b88e97 $isteacheredit was not defined 2005-02-13 13:23:46 +00:00
gustav_delius
eb58929bbb Added string 'counteditems' to allow better translation of things like "8 students", see bug 2530 2005-02-13 11:22:48 +00:00
moodler
333f44dab0 Handle longtimenosee of zero 2005-02-07 01:23:44 +00:00