162 Commits

Author SHA1 Message Date
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
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
moodler
fd790dfb55 Database and upgrade files for PostgreSQL 7 support! 2002-12-15 02:41:07 +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
dfc9ba9bbe Added navmenu in more places 2002-11-10 08:43:44 +00:00
moodler
d897cae419 Changes to enable jumping between activity modules, using a new menu in
the upper-right corner.   Caution: Not well tested at this stage.
2002-11-10 07:37:15 +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
211ee674b3 Changed type of quiz_answers.feedback to TEXT (255 chars was a bit cramped) 2002-10-26 03:13:54 +00:00
moodler
2138dcf29d Added quiz max grade in column title, for reference 2002-10-25 15:34:05 +00:00
moodler
95e143f4cc Ugh type in string module name 2002-10-25 08:54:29 +00:00
moodler
e11c24bc0e Added translation for Attempt quiz now 2002-10-25 08:15:03 +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
ffc5a2c03a More concise feedback on grading, and more efficiency (only update
attempt grades that have changed)
2002-10-22 10:56:48 +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
f31edeeb88 Display tweaks to table of attempts 2002-10-22 07:03:36 +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
34a4dfee10 Added log_display entries for quiz 2002-10-21 14:57:34 +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
20a3006529 Print intro as HTML 2002-10-21 12:49:28 +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
305ce2b33c Convert intro text to HTML 2002-10-21 11:41:36 +00:00
moodler
f1edd1922f Updated versions 2002-10-20 17:50:20 +00:00
moodler
3bf89042f5 Whoops, forgot to check in these new icons 2002-10-20 17:42:28 +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
f9a9499a62 Guests can no longer see or attempt quizzes 2002-10-20 10:13:04 +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
e757af1662 Fixed the setting of answers for true-false questions 2002-10-18 05:41:24 +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
09aebc9468 Cleaned up some buttons ... 2002-10-16 04:51:55 +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
31e7516eb5 Forms now done, more or less 2002-10-15 05:29:57 +00:00