217 Commits

Author SHA1 Message Date
moodler
1118434a2f MDL-10107 Don't show messaging tab (and portfolio) when on user index page. Also fixed some notices. 2008-07-28 07:17:34 +00:00
dongsheng
06e84d52bd MDL-14129, remove error() call 2008-07-21 07:18:58 +00:00
skodak
ce8c75eeb8 MDL-14679 towards /user conversion 2008-05-31 11:13:21 +00:00
mchurch
4cd0d3a012 MDL-15035 - Changed error message to more meaningful one. 2008-05-28 15:01:50 +00:00
jerome
cab6762b12 MDL-14697 Participants page OK button hidden if javascript is enabled, merged from 19 2008-05-08 02:44:50 +00:00
skodak
5f9e296af6 MDL-12895 frontpage participants page improvements; merged from MOODLE_19_STABLE 2008-04-18 08:35:16 +00:00
dongsheng
838c7d2969 MDL-12662, fix undefined index(IIS) 2008-04-11 05:34:23 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
0749caef03 MDL-14034 List of participants in SITE course failing... - fixed last access - credit goes to Eloy; merged from MOODLE_19_STABLE 2008-04-02 06:35:49 +00:00
stronk7
68c85775d5 If the user has hidden role assignments, the icon should be the closed eye. MDL-13935 ; merged from 19_STABLE 2008-03-24 22:05:42 +00:00
stronk7
4d93bc9e19 Make list of participants to work on SITE course. Fix for MDL-14034 ; merged from 19_STABLE 2008-03-24 01:29:30 +00:00
dongsheng
d6cc234114 MDL-13481, Distinguish between course fullname and user fullname 2008-03-19 08:49:23 +00:00
stronk7
1f807bc46a Prevent duplicate users in list when user has both visible and hidden roles. MDL-13935 ; merged from 19_STABLE 2008-03-15 21:57:25 +00:00
nicolasconnault
f642a21aad MDL-13300 Adds verbosity to the heading above the list of participants, showing which group is selected, and the inactivity time period, if either of these two filters are used 2008-03-13 12:13:26 +00:00
moodler
15234a92a1 Merged link to role assign screen from 1.9 2008-02-29 04:30:27 +00:00
moodler
b08261a100 Fixed context in has_capability call MDL-13378 (merged) 2008-02-08 03:59:38 +00:00
poltawski
281917e90b MDL-12159 - We were only showing the filter selections to the user list when
there were more results than shown on the current page. This is unintuitive
with small lists where we were invisibly exluding users because of a filter
which is applied (but not shown on screen).

Now we always show the filter selections. Thanks to John Ryan.
merged from MOODLE_19_STABLE
2007-12-20 17:43:19 +00:00
poltawski
b92adb865a MDL-12674 - use require_capability on the participants page to get
friendly error messages
merged from MOODLE_19_STABLE
2007-12-20 15:11:05 +00:00
poltawski
13d1f5a6d2 MDL-12593 - hidden role assignment icon wasn't being shown. Also prevent warning
about unset $hidden

merged from MOODLE_19_STABLE
2007-12-15 23:30:38 +00:00
martinlanghoff
073af1a64b user/index: Add "enrolment details" view to Participants page - MDL-12311
With this patch, the additional roles/groups/groupings columns get moved
to a special "enrolment details" view. To support this, the handling of
the $mode is revamped to use $mode constants.

To keep performance issues at bay, the enrolment details view is only
available when viewing paginated resultsets, and will reset itself to
'brief' if the conditions aren't met. The $mode is sticky, so it is
quite possible to have a mismatched $mode -- so he handle the case
explicitly.
2007-11-23 00:23:39 +00:00
martinlanghoff
a32e05df9a user/index: More consistent handling of groups column - MDL-12311 2007-11-23 00:23:24 +00:00
martinlanghoff
1377ede75d user/index: Fix Participants page for sitecourse - MDL-12311
Groups/groupings don't seem to map normally through enrolments
as you would expect with site. Disable for sitecourse.
2007-11-23 00:23:10 +00:00
martinlanghoff
664fe87f29 user/index: Show enrolment and group/grouping data in Participants page MDL-12311
The participants page will now show (to users that have
moodle/role:assign) the relevant enrolments for each participant.

This is done with a second SELECT using a WHERE id IN() so we are
limited to doing it with small datasets. This is for 2 reasons

 - we cannot retrieve all teh data in the "main" SELECT because
   the outer joins will bring dup rows, breaking LIMIT

 - we cannot use the main SELECT as a subselect because we cannot
   retrieve the LIMIT part of the statement with the current dmllib

 - on large courses / sitecourse performance would be horrible

so it is limited to paginated datasets. It is doing 20 recs at a time,
the "extra" SELECT takes ~7ms on a some large Pg databases).

This will generate an extra DB query on Oracle (and any other DB that
cannot rewind the recordset) because we walk the main rs twice.

While at it, ensure we mark the unsortable columns thus...
2007-11-23 00:22:56 +00:00
toyomoyo
576ad29016 MDL-10294, MDL-10028, changing messaging/bulk messaging system 2007-11-21 07:53:42 +00:00
toyomoyo
ed61510be6 changed to get_recordset_sql because get_records forces the first element to be$ 2007-11-19 04:13:15 +00:00
skodak
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
moodler
38cb976c80 Removing un-needed DISTINCT here actually solves MDL-11546
(after discussion with Martin Langhoff in Skype)
2007-10-02 09:45:00 +00:00
moodler
5f2a203fa0 Applied DISTINCT as per Martin Langhoff's solution in MDL-11381
user/index: ensure each user appears only once in participants list

Regardless of the number of enrolments, ensure we list a single entry
per user using DISTINCT. Much easier to manage than a GROUP BY.
2007-10-02 06:18:30 +00:00
toyomoyo
165088f687 change participants of frontpage course to display all users, if current user has capability MDL-11143 2007-10-02 03:37:30 +00:00
toyomoyo
9ec6ecb933 changed join onto context table to an outer join because some contexts could be missing during listing of participants 2007-09-20 05:54:32 +00:00
martinlanghoff
91d39e7392 user/index: switch to recordsets to use less memory
Memory usage was still high for long userlists. Use recordsets
to manage memory growth.

Note that we are still collecting a long long HTML table in memory
before we print it, so the footprint of the html itself is bit of an
issue.
2007-09-19 07:55:15 +00:00
martinlanghoff
b6ac3623ce user/index: Fetch participants' contexts with the search
With this patch, we fetch participants contexts in the main search
query. This cuts 1DBq per participant for the display.

Might fix MDL-11222 'global teacher viewing participants issues' where
we are getting OOM'd with many users.
2007-09-19 07:55:00 +00:00
martinlanghoff
a5d81e5e5e user/index: make use of the smarter print_user_picture() -
Switch to using the smarter codepath in print_user_picture. Saves
20 DB queries in the normal page. One per user acct.
2007-09-19 07:20:01 +00:00
martinlanghoff
f312c5925f course/participants: fix sort order when last access is null 2007-09-19 07:19:46 +00:00
skodak
ffc536af8e MDL-7380 converted various places to use new groups API 2007-09-08 20:53:05 +00:00
toyomoyo
294a176fc7 fixing a typo 2007-08-31 08:21:16 +00:00
nicolasconnault
0be6f67819 MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
skodak
c4e953e69e MDL-10383 - group edit form refactoring and minor bugfixing 2007-08-15 20:33:17 +00:00
stronk7
0f870a49ea Properly close the "rolesform" div. Now the form validates both
with roles dropdown and without it.
2007-07-31 20:10:05 +00:00
toyomoyo
eca3af25cb MDL-7077, MDL-10181, adding notes for students 2007-07-05 06:53:17 +00:00
skodak
3593af19df MDL-10341 fixed user search cleaning; merged from MOODLE_18_STABLE 2007-07-04 08:31:54 +00:00
toyomoyo
8205423030 merged fix for MDL-10112 bulk messaging fails silently when messaging not enabled 2007-06-14 04:41:33 +00:00
moodler
f3de7219ae Merged fix for MDL-9041 (undo) 2007-06-12 07:09:35 +00:00
toyomoyo
9fffb69162 MDL-8877, specify time of manual enrolments and related improvements for changing enrolment period from user/index.php. Thanks Andrei! 2007-05-22 02:08:22 +00:00
poltawski
d6ff5b31ba MDL-9649 'keep searching' in bulk messaging broken merged from MOODLE_18_STABLE 2007-05-09 10:05:08 +00:00
skodak
a2c4671e33 MDL-9311 participants - duplicate "&perpage="; merged from MOODLE_18_STABLE 2007-04-15 16:09:55 +00:00
moodler
b373a751d2 Merged fix for MDL-8093 from 1.8 2007-03-30 16:01:44 +00:00
nicolasconnault
d88c504382 MDL-9041 2007-03-26 09:28:58 +00:00
nicolasconnault
697bbb9b27 Resolved conflict 2007-03-26 09:28:06 +00:00
toyomoyo
0150c561c5 fix for MDL-8966, customizable role names 2007-03-22 08:11:30 +00:00