111 Commits

Author SHA1 Message Date
moodler
47f1da80d0 More little fixups for robustness 2002-12-30 05:13:43 +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
a3eea09cc9 More fixes for postgreSQL etc 2002-12-23 11:47:17 +00:00
moodler
b6c38cec93 Slight fixes to headings 2002-12-23 10:18:51 +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
e323955db8 Changes to use new database stuff 2002-12-23 05:57:05 +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
62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +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
f39d5f4576 Use course setting for "student" 2002-11-09 06:29:21 +00:00
moodler
b309c289db WHoops typo 2002-11-09 06:24:21 +00:00
moodler
f762c448ef FINALLY! Surveys are now translatable! :-) 2002-11-09 06:22:57 +00:00
moodler
09aebc9468 Cleaned up some buttons ... 2002-10-16 04:51:55 +00:00
moodler
c0d6bcc508 Moved upgrade functions into db/mysql.sql 2002-10-05 17:20:24 +00:00
martin
66ea15f3cc Reaaranged the functions into standard and other 2002-09-22 04:27:45 +00:00
martin
7bca79576f Fixed stupidity 2002-09-22 03:58:41 +00:00
martin
a30cfe1685 Error in the SQL - fixed now 2002-09-22 03:57:56 +00:00
martin
54634efcba New function to show new surveys in recent activity box 2002-09-22 03:51:28 +00:00
martin
1ff53f25ac Updated versions in preparation for 1.0 release tomorrow 2002-08-18 16:39:50 +00:00
martin
57f14b3443 Improvements to headings 2002-08-14 06:27:24 +00:00
martin
000331f519 Show scale title when looking at questions from a scale 2002-08-14 06:13:20 +00:00
martin
fb7c09cdce Different colours (hopefully make graphs better for color-blind people) 2002-08-14 05:58:05 +00:00
martin
961669acbc Improvements to the standard deviation bars display 2002-08-14 05:36:49 +00:00
martin
102236691c Updated questions table to add shorttext for better graph display (actually
this was done a long time ago but was never incorporated into the
main Moodle codebase)
2002-08-14 05:13:41 +00:00
martin
6afb752cef Got rid of some junk 2002-08-12 18:01:39 +00:00
martin
98899fc040 Language fixes 2002-08-12 17:54:13 +00:00
martin
e137027fa1 Cleaned up the whole interface (more consistent now) and lots of labguage stuff 2002-08-12 17:54:00 +00:00
martin
f9641a9d24 Updated version numbers 2002-08-04 16:42:27 +00:00
martin
94361e021e Lots of work on site display, over many files. Improved front page
and display of site modules.
2002-08-03 08:16:31 +00:00
martin
04eba58f57 Moved all mod.php functions from modules into lib.php, and
updated course/mod.php to use them there.  No longer need module/mod.php
2002-08-03 02:29:21 +00:00
martin
7ea53a1fb1 Removed fullname and search fields from modules table. Fullname is now
derived from the string 'modulename' in the lang files for each module.
2002-08-02 17:42:59 +00:00
martin
0e30c987e5 More cleanups to survey - renamed/moved functions, modernised mod.php 2002-08-01 05:18:07 +00:00
martin
362f9c9c74 typo 2002-08-01 04:54:23 +00:00
martin
551b0b9806 Big clean up of survey functions and removal of deadwood (more to go still though) 2002-08-01 04:49:26 +00:00
martin
501cdbd8bb OK, some massive changes with many files removed or changed.
Basically the changes are:

 - I've merged the 'discuss' module into the forum module
   which makes the interface MUCH clearer for everyone
 - I've added a new 'single' forum type that replicates
   what the old discuss course modules used to look like.
 - I've got rid of the "discussion" forum type - it will
   still exist in upgraded courses but as a normal forum.
 - the 'discuss' module is completely deleted - gone.
 - the 'chat' module is completely deleted - gone.
 - The upgrading system has been improved, and all code
   is stored in version.php.
 - I've put in upgrading commands to do the best I can
   (right now) to upgrade courses that used the discuss
   module.  It should mostly work, just leaving some
   "orphan" coursemodules on you course front page.  You
   can easily delete these using the little 'x'.
   I may have forgotten something  - I've only tested on
   my testing server and I'm about to test on my production
   server to see how it goes.
 - Forums have a lot of little new features and fixes.  The
   main one is the subscription process.  Teachers can 'force'
   subscriptions on any forum.  This disallows everyone from
   choosing their own mail subscription - it's just on.
 - The assignment module is half-finished and not working yet

I've still some massive changes to do, mostly involving making
all the lib.php function names more standardised, so consider
this is an interim checkin to do some tests.
2002-07-31 14:19:35 +00:00
martin
12b820c227 Changes to suit new upgrading procedure (admin/index.html) 2002-07-27 06:07:49 +00:00
martin
3f4deb2b86 Extra space at end of file :-) 2002-07-25 13:54:07 +00:00
martin
0d22e7cc7e Got rid of the user.php code fragments and implemented much cleaner
system which certain-named functions in lib.php ... called from /course/user.php
2002-07-25 13:48:14 +00:00
martin
37b155148d Slight formatting tweaks (forum index) 2002-07-20 18:20:19 +00:00
martin
069bce6efc Got rid of all pv() functions, now consistently uses p() to print variables safely. 2002-07-06 04:07:55 +00:00
martin
da8b7aa7a5 Fix to update_module_icon (to pass the courseid) 2002-07-04 07:48:44 +00:00
martin
7a302afc5f Slight changes to userdate() function. It now uses gmstrftime() instead of
gmdate to format times, thus allowing it to take advantage of locale, if set,
to print dates in the appropriate language.  Several userdate invocations
had to be changed, though, to use the different formatting specs.
2002-07-02 07:02:28 +00:00
martin
77775bff99 Minor formatting tweaks 2002-06-25 16:42:34 +00:00
martin
b5fe4c935d Major changes throughout to change "week" notation to "section" notation.
Sections covers "weeks", "topics" and anything else that may come along.
Note, again, some databases have changed esp course_weeks -> course_sections
and several fields called "week" are now "section.  Also course no longer
has an enddate, but instead has a numsections field.
2002-06-25 11:49:06 +00:00
martin
77f4a40bbb Don't show overall graph when no students have completed survey 2002-06-25 07:17:51 +00:00
martin
b416a1c34f Slight tweaks to survey display after it's been done (list # of students) 2002-06-25 07:10:01 +00:00
martin
da5c172a07 Changes to support guest user across any course (guest/guest) 2002-06-09 14:14:07 +00:00
martin
5575a053d3 Changes to put update/edit icons in the headers of module and course pages 2002-06-08 06:52:00 +00:00