667 Commits

Author SHA1 Message Date
gustav_delius
19201c8dac called table column 'Action' consistently, fixing bug 2698 2005-03-08 09:31:20 +00:00
gustav_delius
9274189f25 small fix to the versioning code 2005-03-07 19:45:39 +00:00
moodler
8a0556be8c Fixed four more references to mimetypes.php (bug 2690) Thanks, Gustav! 2005-03-07 15:11:43 +00:00
moodler
f1e0649c1c Removed files/mimetype.php and put it into lib/filelib.php instead
where it always should have been.
2005-03-07 11:32:03 +00:00
gustav_delius
03f9425fd2 The teacher can now move selected questions to a chosen category or delete them, see http://moodle.org/mod/forum/discuss.php?d=16239 and http://moodle.org/mod/forum/discuss.php?d=19734
There is also a 'Deselect all' button which I implemented provisionally by putting an extra function checknone() into javascript-static.js. This should be cleaned up by someone who knows javascript.
2005-03-06 12:00:46 +00:00
gustav_delius
1997f36731 Questions that are in use are now only deleted from the category list but not from quizzes or old attempts. 2005-03-05 16:03:59 +00:00
gustav_delius
fef9b51dac Now can add a single question to quiz with a single click. 2005-03-05 12:55:26 +00:00
gustav_delius
b7c42fe64a clone is PHP5 only and also wasn't really needed here 2005-03-05 12:09:41 +00:00
gustav_delius
3d3f159086 fixed notice in preview 2005-03-05 11:52:05 +00:00
gustav_delius
c6bfdec3fc Versioning of questions: when editing questions the teacher is told about the quizzes in which the question is used and is asked whether to replace them with the new version or not. If there are already attempts at a question than the original version is always kept in the database for audit purposes. More details at http://moodle.org/mod/forum/discuss.php?d=16479 2005-03-03 15:17:45 +00:00
thepurpleblob
6e31897b2d Export know knows about random questions so it can ignore them 2005-03-03 11:52:02 +00:00
thepurpleblob
87345478a5 Now ignores random questions when exporting. 2005-03-03 11:51:07 +00:00
moodler
5cae3a321c Fixed timesincestart stuff, I think. bug 2466 2005-03-03 08:42:43 +00:00
moodler
fb94189268 Fixes for bug 2591 - wrong strings being used 2005-03-03 06:24:44 +00:00
moodler
5528a7f0e0 FIxed up the display of this page significantly 2005-03-03 06:18:48 +00:00
moodler
4b745a820f Last string fix for bug 2591 2005-03-03 05:13:58 +00:00
defacer
6912a9ecb8 Fix for bug 2669:
Quizzes and Chats in the front page had the site shortname twice in the navbar.
2005-03-02 22:35:09 +00:00
defacer
dffd4bb948 You know you are beyond hope of redemption when you make "API uniformity" changes. ;-) 2005-03-02 05:56:24 +00:00
defacer
664923229c Since $PAGE knows where the adminblock should be printed, let it do the printing. 2005-03-02 05:47:39 +00:00
defacer
3615b2b259 Simplifying to death using the new blocks_setup() 2005-03-02 05:19:47 +00:00
defacer
c4d588cc24 Added require_once for pagelib.php.
Now deleting courses with these activities in works just fine once more!
2005-02-28 04:23:52 +00:00
defacer
880d86758b Each mod is responsible to deleting its own blocks; what I had in mind for
centralizing this wouldn't work out. Use the flexible page_import_types so that
we don't create one more dependency when writing new code.
2005-02-28 04:18:13 +00:00
defacer
f16bbfd5a8 Add hooks for exporting the page types used by each module. 2005-02-28 03:59:57 +00:00
defacer
6ba37c824a Quiz doesn't attempt to delete blocks placed in deleted quiz view pages anymore;
this is going to be taken care of from course/mod.php.
2005-02-28 03:59:23 +00:00
stronk7
94e765288a Now parent and sortorder is supported at restore too. 2005-02-20 18:02:41 +00:00
stronk7
c98cb6bc57 Now quiz_categories' parent and sortoreder is supported in backup.
A mechanish to detect all the ancestors and to recover orphaned
categories is now running ar backup time to force backups to be consistent.
2005-02-20 17:19:04 +00:00
moodler
0f934cd9e5 Use new advancedsettings help file and title 2005-02-19 14:38:13 +00:00
stronk7
5150c3043a Now questionsperpage is in backup & restore 2005-02-19 01:24:17 +00:00
gustav_delius
ee930c461d made appearance of quiz setup page look like the resource setup pages, see bug 2587. Also added the new variable quiz_questionsperpage properly. 2005-02-18 17:20:06 +00:00
defacer
090cf95ae9 Fix for bug 2584:
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
thepurpleblob
8b8a1caaaa Dumps a question as an IMS QTI Manifest. Can be called from external programs requiring
this data. Submitted by Brian King.
2005-02-17 14:41:05 +00:00
thepurpleblob
06e273a1c3 Brian King's new QTI export capability - needs some testing yet. 2005-02-17 13:39:35 +00:00
thepurpleblob
425d616a1e Smarty templates used for new qti export feature. 2005-02-17 13:37:49 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
defacer
ef08e7ad70 Fix a notice if $attemptmark doesn't get set. 2005-02-15 01:39:12 +00:00
stronk7
c6e88f1059 One more use of decimalpoints 2005-02-14 19:57:45 +00:00
stronk7
e37da3a536 Now decimalpoints is used to show grades
(I had to modify quiz_get_best_grade() slighty)
2005-02-14 19:41:52 +00:00
stronk7
f4e56673df Added backup and restore support for decimalpoints 2005-02-14 19:05:00 +00:00
stronk7
ee40f7a720 Added configuration support for decimalpoints 2005-02-14 18:56:53 +00:00
stronk7
72036f9305 New quiz option addded: decimalpoints
(used to decide the number of decimals showed in grades)
2005-02-14 18:24:24 +00:00
stronk7
8a15200d23 Avoid tons of warnings with debug=on creating false answers for this question type. 2005-02-14 00:51:36 +00:00
gustav_delius
2f945146d7 Made the quiz paging bar look more like the standard one, see bug 2443. 2005-02-13 14:58:45 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
gustav_delius
8930d42124 The table on view.php now also shows the marks achieved in each attempt in addition to the rescaled grade. 2005-02-11 19:51:29 +00:00
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
moodler
1ac2128075 No message popups during secure quizzes 2005-02-10 05:13:05 +00:00
defacer
4f0d565da6 Bringing Quiz in line with Martin's "make Chat into a showcase for pages" idea. 2005-02-10 01:59:11 +00:00
defacer
de4505fef3 Removing bad slashes from HTML. 2005-02-09 15:42:05 +00:00