77 Commits

Author SHA1 Message Date
moodler
7c12949d10 Rationalised get_user_info_from_db() and sundry other small bits into
a single function called: get_complete_user_data()

This is to help shibboleth but will also help when this function
needs to be extended in future.
2005-04-17 12:08:46 +00:00
moodler
7f3f41ecfb Added some reportlink classed to the report links 2005-04-13 07:45:47 +00:00
moodler
4a96dbaccc Removed a blank line ... bug 2746 2005-03-16 15:40:11 +00:00
moodler
8f7dc7f1c7 Variety of small fixes, but mostly related to how the recent activity
block is constructed.  A new function exists to pump these notes out
in a standard way :  print_recent_activity_note.

Module dependencies also updated because of this.
2005-03-10 13:30:57 +00:00
stronk7
d698fea233 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 00:12:25 +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
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
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
moodler
b61aed4297 Fixed up some layout issues in the configuration files 2005-02-08 09:23:21 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
mjollnir_
362d9c0e7e Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - attendance module 2004-11-18 02:35:42 +00:00
mjollnir_
f75d0a479c Merged from MOODLE_14_STABLE: Indexes and version bump for attendance 2004-11-17 22:11:52 +00:00
paca70
4c20cd82f2 Fixed some "not defined" messages 2004-10-22 13:46:28 +00:00
moodler
492dc7b9c6 Some changes for XHTML and accessibility compliance 2004-10-19 09:37:01 +00:00
stronk7
ebfff4e014 admin/module.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-03 09:48:08 +00:00
paca70
be784d1a77 1. Postgres updates.
2. add log-values for mysql and postgres when creating new database.
 CVS: ----------------------------------------------------------------------
2004-09-20 17:48:19 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
1c5d9bbbec closed some br tags 2004-09-12 22:29:44 +00:00
gustav_delius
b4510d5333 closed some input tags 2004-09-12 22:23:51 +00:00
gustav_delius
9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
gustav_delius
222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
gustav_delius
8f6b80b90c Merging from stable branch 2004-08-24 18:38:14 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
gustav_delius
90fcc576ea Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic. 2004-08-21 20:20:58 +00:00
moodler
3d13d66a88 Removed some notices ... argh, this module needs help ... 2004-08-12 08:05:51 +00:00
stronk7
93dc66a6b3 Added one string to moodle.php
To be used in different places.
Bug 1646
(http://moodle.org/bugs/bug.php?op=show&bugid=1646)

Merged from MOODLE_13_STABLE
2004-07-19 18:18:21 +00:00
moodler
070528fc79 MOdules are dependent on this version of course/mod.php 2004-06-04 07:28:34 +00:00
moodler
7613890851 BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk

The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point

The biggest changes here are the fixes for HTML editor in all standard modules
2004-06-04 06:17:30 +00:00
jungwirr
4358842a68 fixed bug #1380 - string in index.php 2004-05-12 15:35:37 +00:00
moodler
7e07c5cced Fixed some short tags (found by Eloy!) 2004-05-10 17:40:10 +00:00
jungwirr
afa120e3c0 fixed bug 1325 - hard-coded string for add multiple rolls 2004-05-06 19:39:42 +00:00
jungwirr
311b524ac2 changed the options settings to be more compliant with the rest of the
modules.
Added help page links for many options.
Changed the style of the add multiple interface to match mod.php
2004-05-05 17:06:56 +00:00
jungwirr
88521dee99 fixed a bunch more foreach loops to test for null value on the iterated
collection
2004-05-04 19:13:53 +00:00
jungwirr
2f226580b5 fixed viewall.php to reflect the (unlikely) circumstance where a user is a
student AND a teacher in a course.
2004-05-04 19:05:41 +00:00
jungwirr
018e87bedb Fixed the empty grades for attendance.
Added log_display database records
2004-05-04 17:18:02 +00:00
jungwirr
86eb8c6e0d Added "Take attendance" option that allows a teacher without edit
privileges to modify the appropriate aspects of the roster.
2004-05-04 16:12:15 +00:00
jungwirr
51383e2cdf fixed another foreach problem in lib.
Added a todo section to the README
2004-05-03 19:59:02 +00:00
moodler
a7f4452d11 Updating version numbers of all Modules to make things a bit clearer 2004-02-01 04:42:39 +00:00
moodler
9423833cd9 All modules now require the very latest because of the changes to add_to_log 2004-01-31 15:25:00 +00:00
moodler
037f99aa2d Upgraded add_to_log to send cm->id 2004-01-31 15:22:04 +00:00
moodler
83f007bf39 Define minimum required versions of Moodle 2004-01-28 04:27:57 +00:00
les_kopari
79741ebe7e Added one column and modified test cases. 2004-01-17 14:18:55 +00:00
les_kopari
08481e544c Inserts for MySQL and PostGRES. 2003-12-24 17:33:05 +00:00
les_kopari
218cb966c5 Initial add. 2003-12-24 17:29:30 +00:00
jungwirr
129b43ee0e fixed foreach problem on line 125 per request from forums 2003-11-07 04:29:13 +00:00
moodler
b16f0342a3 Add a check in case no attendances are defined 2003-10-16 04:17:53 +00:00
jungwirr
7386d3d886 fixed some foreach problems with if tests 2003-10-15 14:34:50 +00:00