43 Commits

Author SHA1 Message Date
moodler
a2fe7cc0dc Changed three fields to avoid SQL problems with PostgreSQL etc:
quiz_truefalse:  true->trueanswer  and false->falseanswer
quiz_questions:  type->qtype
2003-01-03 16:01:48 +00:00
moodler
8e6c87ccf3 Teachers can choose to allow review of quizzes, which means that students
are allowed to see past quizzes.  This only works once the quiz is completely
closed (to perhaps prevent easy cheating).
2003-01-01 14:47:11 +00:00
moodler
c04c41c7d2 Many little fixes and cleanups for robustness 2002-12-30 05:10:01 +00:00
moodler
9c9f7d7790 Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
2002-12-29 17:32:32 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
bdc23be0ff CHanges for new database table commands 2002-12-22 13:55:30 +00:00
moodler
9307692fdf Add a javascript confirmation when submitting a quiz attempt 2002-12-09 08:20:19 +00:00
moodler
467aaec630 Small changes to tables to make them display better with Japanese 2002-12-07 08:39:24 +00:00
moodler
81b635c360 Improvements to formatting on old Netscape browsers 2002-11-12 17:20:04 +00:00
moodler
3a50203f34 Fixed small bug that was displaying fractions with too many decimal places
(eg 0.9999 instead of just 1)
2002-10-26 06:11:43 +00:00
moodler
cb62c00ad2 Fixed minor bug after creating default category. 2002-10-26 05:17:53 +00:00
moodler
cc3b8c75de After saving new question, sanity checks are made to make sure the
fractional grades are correct.

Icons now have tooltips and are also a shortcut to editing page.
2002-10-23 12:10:38 +00:00
moodler
cd63d77e08 Added help pages to quiz module.
A few little cleanups, such as trim() on shortanswers
2002-10-22 10:38:00 +00:00
moodler
e331eb06fd Teacher can now regrade (recalculate grades) of all quiz attempts
(in case the quiz changed somehow)
2002-10-22 06:52:23 +00:00
moodler
6d86b5dc16 Teacher can now view student attempts 2002-10-22 04:25:58 +00:00
moodler
e1c91df09b Can now delete questions. It checks that the question doesn't belong to
any quizzes first (if it's in a published category then it checks all quizzes
on the server).
2002-10-21 15:00:51 +00:00
moodler
2383cadbab Display tweaks 2002-10-21 13:13:33 +00:00
moodler
38f03e5a5c Round $bestgrade when storing it to avoid insert_record problems 2002-10-21 13:02:14 +00:00
moodler
466a69bc42 Bugfix on calculating correct answers for multichoice questions 2002-10-21 12:48:13 +00:00
moodler
e909c8d090 Some error checking 2002-10-21 12:39:46 +00:00
moodler
b55a466b60 Fixes for display of public categories 2002-10-20 17:41:24 +00:00
moodler
c74a0ca5c2 Category editing in quizzes is now supported. Some other little
cleanups along the way ...
2002-10-20 17:15:39 +00:00
moodler
8db3eaddb2 Now shows correct answers, plus some small bug fixes 2002-10-20 05:35:25 +00:00
moodler
958aafe2b4 Quiz attempts are now timed. This is done by starting the quiz_attempts
record upon showing the quiz, and completing it upon submit.

Two new fields in quiz_attempts... should be upgrade friendly.
(Old attempts will show up as being of duration zero)


Also some small fixes here and there.
2002-10-18 16:05:21 +00:00
moodler
9809249838 Better grade reports 2002-10-17 08:28:18 +00:00
moodler
858deff0b4 Now includes maximum grades 2002-10-17 07:55:54 +00:00
moodler
d0ac6bc236 Added new grading functions to work with course/grades.php 2002-10-17 07:23:51 +00:00
moodler
19c4f55c43 Feedback fixes 2002-10-16 15:52:29 +00:00
moodler
a8a372ccf7 Various fixes and additions. It now does quiz feedback pretty well
(though it doesn't show correct answers yet).
2002-10-16 09:35:04 +00:00
moodler
92a3c884f5 Small bugfixes ... (yawn) 2002-10-15 17:32:50 +00:00
moodler
7520988bb3 Fixes for grades 2002-10-15 17:13:11 +00:00
moodler
6b069ecef1 Bit of a clean up of the edit interface ... 2002-10-15 16:45:39 +00:00
moodler
49dcdd1800 Added timeopen and timeclose (instead of days) and did a few cleanups 2002-10-15 16:22:18 +00:00
moodler
8d94f5a08e OK, it seems reliable enough now for alpha testing.
If you have existing quizzes, delete them all, then
drop all the quiz tables and delete the quiz line from
the modules table.

Things to do still:

  - add/edit/remove categories
  - display question feedback on submissions ...
  - record the time they started the quiz, as well as the completion.
  - place time limits between attempts
  - add full specification of quiz open time and quiz close time
2002-10-15 12:54:11 +00:00
moodler
2a2c9725bb Can now create and re-edit all three types of questions.
Still working on grading ...
2002-10-15 10:04:28 +00:00
moodler
10b9291c92 Checking in what I got so far .... Not working yet but I'm going to bed. 2002-10-14 15:57:33 +00:00
moodler
7bd1aa1d64 Quiz generation is working now. Just need question and category editors. 2002-10-14 12:21:18 +00:00
moodler
6a952ce7a0 Many new additions - code not quite usable yet, but getting close 2002-10-14 09:07:13 +00:00
moodler
579ddad5ef Added a basic report and some clean-ups 2002-10-13 13:51:56 +00:00
moodler
a5e1f35c66 Just to show that something is happening!
At this stage this module:

  - prints quizzes,
  - accepts answers (for multiple attempts) and grades them,
  - stores the grades.

Really, it's usable as long as you don't mind using the database manually. :)

Next up is quiz reports, then I'll tackle quiz creation.
2002-10-13 07:17:48 +00:00
moodler
14d8c0b409 Further work done. It currently can print the quiz form (including images!)
but can't mark them yet.  I've been constructing quizzes manually in the
database and it's helping to refine the database structure.  Don't count
on anything stable in the quiz module for a few days yet ...
2002-10-06 17:06:54 +00:00
moodler
3a506ca299 Added some more functions 2002-10-06 03:23:16 +00:00
moodler
730fd187c8 Skeleton version of the quiz module. It won't break an installation,
but it doesn't do anything yet.
2002-10-04 02:59:05 +00:00