572 Commits

Author SHA1 Message Date
gustav_delius
56b2152f69 better parameter validation and general code cleanup for edit.php 2005-01-22 18:17:33 +00:00
gustav_delius
873b77f0f5 previously I had forgotten to save sumgrades 2005-01-22 16:13:08 +00:00
gustav_delius
4ac04efaf7 quiz edit.php now saves changes to the quiz in the database as soon as the teacher makes them, see http://moodle.org/mod/forum/discuss.php?d=17167 2005-01-22 15:42:22 +00:00
gustav_delius
ef0921d1ff It is now possible to base new questions on existing ones, see get_string('editingquestion', 'quiz'); 2005-01-19 09:50:33 +00:00
gustav_delius
0befd376af fixed missing courseid in breadcrumbs 2005-01-19 08:11:49 +00:00
kaipe
efa9b7fa01 Fixed a bug that was reported by James Balfour:
Numerical/Calculated questions failed to grade negative responses on questions with units.
2005-01-17 20:14:16 +00:00
moodler
cbc9da2a1b FIxed a missing brace (bug 2386) 2005-01-14 16:45:35 +00:00
moodler
6710ec8713 Recent activity functions should have been in lib.php, not locallib.php 2005-01-13 03:04:48 +00:00
gustav_delius
c1edf51947 When setting up a new quiz the teacher is always redirected to the question edit page so there is no need for two buttons on mod.html 2005-01-12 07:03:25 +00:00
gustav_delius
9f9cff594c Just some comment text to explain the $QUIZ_QUESTION_TYPE array. 2005-01-12 06:30:32 +00:00
stronk7
b5c5f9286a Maintain whitespace when importing glossary entries. Aplied to
blackboard import of questions too. Bug 2310.

(http://moodle.org/bugs/bug.php?op=show&bugid=2310)

Merged from MOODLE_14_STABLE
2005-01-11 11:29:01 +00:00
moodler
ba9231f5ff Merged bug 2363 fix from stable 2005-01-11 11:14:15 +00:00
skodak
577f51902e fixed typo 2005-01-10 21:32:44 +00:00
gustav_delius
76cacec819 split quiz lib.php into a locallib.php for functions that are only used from within the quiz module and a much smaller lib.php for functions that are used from elsewhere in Moodle. 2005-01-08 20:06:00 +00:00
moodler
bb6c3f3ad2 Fixed my erroneous fix from last checkin 2005-01-06 08:46:12 +00:00
moodler
0181cf725d This bug stopped this page from even working .... 2005-01-06 02:38:50 +00:00
moodler
d6d080e26c Er, made a typo myself. This works now. 2005-01-05 17:47:01 +00:00
moodler
697fa7265d Fix faulty call to table_column 2005-01-05 17:42:57 +00:00
gustav_delius
1da1f5a890 It is now possible to have also questions in all subcategories listed on edit.php. Because there can be a large number of questions the list of questions is now paged.
The random questions have another option specifying whether they can choose their questions also from subcategories or not. This option is stored in the unused questiontext field.
2005-01-05 17:27:23 +00:00
kaipe
d70ccc495c New feature:
Maximum-number-of-questions-per-page
2005-01-03 00:41:33 +00:00
gustav_delius
ac27e47dc4 Hierarchical question categories from mediagonal, see http://moodle.org/bugs/bug.php?op=show&bugid=1947 2005-01-02 15:10:50 +00:00
gustav_delius
34283aa87d The teacher now can choose whether to see the advanced quiz
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.

There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709

Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708. To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.

mod.html now has a "Save changes" and a "Save changes and edit questions" button.

"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".

After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
gustav_delius
a62356fcdd removed many php warnings and streamlined code 2004-12-30 22:51:24 +00:00
moodler
eb820b8b92 Use the proper preview image 11x11 2004-12-30 08:28:58 +00:00
gustav_delius
0dc4810a9a Changed user interface for adding multiple random questions, see http://moodle.org/mod/forum/discuss.php?d=16531#78785 2004-12-29 22:57:35 +00:00
gustav_delius
71d1ef585f added alt text to icons 2004-12-29 10:03:53 +00:00
gustav_delius
2d09198e5f avoid division by zero when the sum of grades is zero 2004-12-29 09:22:33 +00:00
gustav_delius
fa92dd2437 improved an error message, see http://moodle.org/bugs/bug.php?op=show&bugid=504&pos=0 2004-12-29 07:48:21 +00:00
gustav_delius
df4fe0009b avoids error when exporting 0 questions 2004-12-29 07:21:55 +00:00
gustav_delius
089a284b88 sort category question list by type then name as suggested in http://moodle.org/bugs/bug.php?op=show&bugid=2045
Also removed a PHP notice
2004-12-29 07:19:54 +00:00
gustav_delius
b63850e8d4 Fixed form error checking for cloze questions, see bug http://moodle.org/bugs/bug.php?op=show&bugid=697 2004-12-28 09:12:40 +00:00
moodler
a7ca4cd150 When teachers view quizzes (attempting or reviewing) they see a small
link with the actual question id of that question.  The link creates
a popup so that they can edit that question directly.
2004-12-27 14:52:24 +00:00
moodler
c9a945caed Fixed a string name 2004-12-27 14:34:38 +00:00
gustav_delius
dc511e9fdb removed php notice and fixed line endings 2004-12-26 16:09:12 +00:00
gustav_delius
8fbb315db3 fixed missing string error that I introduced when improving the breadcrumbs. 2004-12-26 14:55:50 +00:00
thepurpleblob
d75bc0b272 Now supports shortanswer import. Cleaned up the CDATA import too. 2004-12-24 11:16:43 +00:00
gustav_delius
78036f7835 Fixed event handling. Events must be deleted with delete_event.
Instead of modifying event dates the quiz module currently deletes them and adds new ones. This could be improved in the future.
2004-12-23 07:28:14 +00:00
gustav_delius
a5c0990e5d New quiz config page to allow admin to set defaults and hide options on the quiz setup page. 2004-12-23 07:09:33 +00:00
thepurpleblob
37df8c250c Fixed typo that has crept in. 2004-12-20 15:31:27 +00:00
thepurpleblob
75e496f73d Fixed a couple of bugs in the xml formatting. Issue with Markdown text
still to resolve.
2004-12-20 14:34:07 +00:00
gustav_delius
267ef6f28f Improved breadcrumbs on editing pages 2004-12-20 14:26:37 +00:00
kaipe
c03d783201 Question type RANDOM now stores responses just like any other question type.
Therefore all workarounds are removed from lib.php and an isolated workaround is included in random/questiontype.php in order to ensure backward compability.
2004-12-18 13:55:18 +00:00
thepurpleblob
d6b3c7b82e Added xml format import. First pass for testing.
Just multiple choice and true/false at the moment and needs further
testing and polishing.
2004-12-16 15:54:51 +00:00
moodler
945c636394 Added blank printing style (http://moodle.org/mod/forum/discuss.php?d=13071&parent=77710) 2004-12-16 11:54:45 +00:00
moodler
ad1a74e0ed Protect review page as well 2004-12-16 11:51:37 +00:00
moodler
6c83959e33 Quizzes can now be opened in a popup window. Javascript must be enabled.
An attempt has been made to make the popup as secure as possible by disabling
various browser capabilities through javascript.
2004-12-16 08:05:23 +00:00
skodak
e7f927a0fc new handling of uploaded files, please TEST, TEST, TEST 2004-12-14 18:57:51 +00:00
moodler
f5a1c0c064 New field popup to control new feature: launch quiz in fullscreen popup window 2004-12-14 06:43:22 +00:00
thepurpleblob
0cc29b85c4 Fixed typo in escaping exported text. 2004-12-13 17:28:34 +00:00
thepurpleblob
ca6477c5ac Can now export HTML - dangerous characters are converted to entities. 2004-12-13 11:37:45 +00:00