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
poltawski
364eef7441
Further fix for MDL-8582, merged from MOODLE_18_STABLE
2007-03-15 15:46:53 +00:00
toyomoyo
82d561ee79
merged fix for MDL-8885, do not show bulk message option if user has no capability
2007-03-14 01:50:54 +00:00
skodak
224aa44a8d
MDL-7693 fixed participans block on frontpage; notloggedin and authenticated roles overrides to be fixed later in separate bug; merged from MOODLE_18_STABLE
2007-03-05 20:13:16 +00:00
toyomoyo
4e7b349e0a
replacing single button fieldsets with divs
2007-03-01 04:30:42 +00:00
moodler
a59e5a1c92
Merged removal of weeks from format_time from stable
2007-02-15 03:14:40 +00:00
skodak
0d905d9f34
MDL-7861 new class .icon and .iconsmall
2007-01-08 09:14:05 +00:00
toyomoyo
141a922c8c
MDL-7861, xhtml strict issues
2007-01-08 03:34:44 +00:00
moodler
c11387978c
Fixes to make user profile pages validate Strrrict
2007-01-06 14:07:00 +00:00
skodak
b7dc225654
MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead
2007-01-04 21:32:36 +00:00
Martin Langhoff
f3f7610c90
cvsimport fixups -- cvshead had strayed from upstream
2007-01-04 13:15:04 +13:00
moodler
5f60ed9b6a
Added CDATA to Javascript
2006-12-22 04:25:00 +00:00
toyomoyo
789154a65b
merged fix for MDL-7819, admin still showing up in participants list
2006-12-08 04:28:58 +00:00
toyomoyo
22ae509e9c
merged implementing moodle/user:viewdetails
2006-12-07 06:14:52 +00:00
toyomoyo
bdbe41d031
merged fix on wrong counter
2006-12-06 04:54:31 +00:00
toyomoyo
c05275675b
merged stops showing admins from participants list
2006-12-04 03:05:40 +00:00
nfreear
8430912a73
Fixes MDL-7603 <script Language..> should use 'type', user/index.php, course/report/participation/index.php
2006-11-28 10:23:26 +00:00
skodak
fa8a9ef352
MDL-7434 all images that convey information should have alt text to convey that information - part 7
2006-11-26 19:19:54 +00:00