Commit Graph

92 Commits

Author SHA1 Message Date
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
danmarsden a337045d86 merged choice fix from Stable MDL-7171 2006-10-31 19:00:55 +00:00
moodler 523e1a21ff Merged choice fixes from stable 2006-10-23 07:01:18 +00:00
moodler 4e19d85bd9 Merged choice/guest fixes from stable MDL-7171 2006-10-23 03:00:30 +00:00
skodak 86a1ba04fd replace all uses of isset($USER->id) with empty() to allow proper operation of $CFG->notloggedinroleid hack 2006-09-02 11:44:04 +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
moodler dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
skodak f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +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
danmarsden 019c47d6c1 Fixes bug 5464 also makes response clearer to students -see:
http://moodle.org/mod/forum/discuss.php?d=45504

also finishes off Bug 662
2006-05-15 23:24:42 +00:00
skodak 69e3c41688 page parameter cleanup 2006-04-23 21:07:44 +00:00
gustav_delius 87b18f4ab7 Fixed call to required_param() 2006-04-05 07:46:52 +00:00
danmarsden acaf7b86e3 Bug Fixes for:
Bug 5042
Bug 4600
Bug 4021
Bad code - need to check vars aren't empty b4 using them!
2006-04-04 23:03:15 +00:00
danmarsden 90ca2ce87d fixed bug with limits not limiting for only enrolled students - limit was counting non-enrolled students as well. - also removed checkboxes to delete response from not-answered column. 2006-02-23 21:20:44 +00:00
danmarsden 348630d87e moving duplicated code into Lib.php as functions & clean up the code a bit. - also now include users group info in text/excel downloads. - preparation for new choice block! 2006-02-23 01:20:24 +00:00
danmarsden df5fb55cbc Bug #4452 link names to profiles 2006-02-09 21:50:21 +00:00
danmarsden c100a341a6 Bug 3768 - Release is now a reserved word in MySql 5 2006-02-08 23:46:21 +00:00
moodler 39ee02a3b1 Various old fixes that had not been checked in 2006-01-05 07:09:35 +00:00
thepurpleblob ac04332685 Removed check for student/teacher on submit and replaced with check for (not)
guest, as (a) it didn't stop guests and (b) it broke the studentview mode
2005-09-20 09:22:06 +00:00
danmarsden 3ddb684e57 Fixes for Bug #3876, Bug #3816 2005-08-14 21:59:09 +00:00
thepurpleblob 440dcd3123 require_variable() changed to required_param(). 2005-08-09 12:07:09 +00:00
danmarsden af834f3e7c Bug #3623 - doesn't like when $value = 0 2005-06-27 00:58:24 +00:00
thepurpleblob 07bc47e0e5 require_variable() replaced with required_param() 2005-06-10 11:09:39 +00:00
danmarsden 9e1fc2da9c XHTML fix, 2005-05-23 22:13:15 +00:00
danmarsden 5634beeaa5 -shouldn't have been using Javascript there! - few more fixes coming. - choice mod limit function doesn't seem to be working properly - doesn't seem to display results anymore! 2005-05-18 21:50:45 +00:00
moodler 51e041f42e Prettied up choice with some styles (could use work) 2005-05-05 18:34:20 +00:00
moodler 232b51bb7b SPacing fixes 2005-04-22 19:17:06 +00:00
thepurpleblob 86cc5db12a get_record(...)->field generates a parse error on my machine, so I split
it into two steps where it occurs.
2005-04-15 08:13:27 +00:00
danmarsden cabf7c2397 show user what selection they made when updates are not allowed. 2005-04-15 01:40:22 +00:00
danmarsden c9ff813c41 new limit feature in choice. 2005-04-14 21:10:39 +00:00
moodler 7f3f41ecfb Added some reportlink classed to the report links 2005-04-13 07:45:47 +00:00
danmarsden 7b056dd39a problem with "not answererd yet" column on anon responses page. - diplaying admins and hidden teachers. 2005-04-12 20:49:51 +00:00
danmarsden 03ff2092c4 $options used by something else. 2005-04-07 22:22:22 +00:00
stronk7 524d7b9a7b One missing string to make choice->name works under filterall
(showing anonymous results)
2005-04-05 23:08:00 +00:00
danmarsden af40722cc5 Fix for Bug #2435 - Hidden teachers and site admins are shown in no response list. 2005-04-05 00:35:05 +00:00
danmarsden 9bf3c5de4f Bug #2084 - Choice module has no "save my choice" for admin - missed a bit.... :-) 2005-04-01 03:33:44 +00:00
danmarsden bd3ba1ddaf Bug #2084 - Choice module has no "save my choice" for admin 2005-04-01 03:26:35 +00:00
danmarsden 1c49ca9a09 Fix for Bug #2452 - Choice shows a bad number of answers 2005-04-01 02:37:19 +00:00
danmarsden 74550a3cbd this time..... :-) 2005-03-31 23:58:37 +00:00
danmarsden 649084b1e8 backing out previous fix - didn't get that right! 2005-03-31 23:02:39 +00:00
danmarsden 9ca8056ae0 don't add <p></p> tags when in vertical display mode. 2005-03-31 22:48:43 +00:00
stronk7 dfde3b2069 alt tags in radio buttons were breaking display it they contain
lang tags. Now they are filtered against strip_tags() and processed
by format_text().

In vertical display, format_text() was using format_text (FORMAT_PLAIN),
not sure why and it was breaking multilang support, replacing all <> to
their htmlentities().
2005-03-30 23:34:04 +00:00
moodler ad7660be65 FIxes in vertical format 2005-03-30 18:48:42 +00:00
moodler 5550ae839e Working view of choices (needs XHTML work yet) 2005-03-30 17:32:23 +00:00
moodler 5a9726e7ab This module is completely broken .... I'm working on it.
Here are some cleanups to start with
2005-03-30 04:32:36 +00:00
danmarsden 6fd87e3bc7 Improved coice mod, allows an unlimited number of choices. 2005-03-29 23:46:17 +00:00
stronk7 c61d50b800 Now choice->name and choice->answerxx work under filterall. 2005-03-27 17:33:16 +00:00
gustav_delius cd8d4471c8 Print course in footer 2005-03-17 15:12:07 +00:00
moodler 646d5a0281 Strip and slash alt tags on input radio buttons 2005-03-17 11:37:31 +00:00
moodler b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00