146 Commits

Author SHA1 Message Date
stronk7
da423e13df Added support to survey-download action in restore. 2005-04-10 16:54:05 +00:00
stronk7
cd5d2d4b74 Now survey->name supports filterall. 2005-04-06 18:20:05 +00:00
mjollnir_
9680ba9801 Merged from MOODLE_14_STABLE: Fix for bug 2742 - sequences out of sequences in postgres 2005-03-15 23:12:50 +00:00
moodler
b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00
moodler
222fd71089 FIxed some notices and now the X-axis text is rotated and readable! Yay! 2005-03-11 14:57:07 +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
moodler
c559bb1eed FIxed typo calling print_standard_coursemodule_settings 2005-03-01 16:48:00 +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
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
moodler
caf261b0c3 Changes for XHTML and accessibility compatibility 2004-11-26 07:07:06 +00:00
mjollnir_
5417b5b07a Merged from MOODLE_14_STABLE: Indexes for survey and version bump (honoring partial freeze) 2004-11-21 20:43:27 +00:00
paca70
d08ffdd36d That virtualscales issue is hopefully fixed now. 2004-10-22 13:25:10 +00:00
paca70
90c6ded264 Lib.php postgresql compatibly fix
graph.php $virtualscales was used uninitilized, fixed.
2004-10-22 13:20:35 +00:00
paca70
cfa56cffef Added missing , 2004-10-09 06:27:17 +00:00
moodler
d7d21c383c Minor changes for XHTML compatibility 2004-10-08 13:58:33 +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
e0b7b090d3 towards XHTML compliance 2004-09-14 20:39:28 +00:00
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +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
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
moodler
b6b3deb48c Fix for Bug 1383. Added support for the Critical Incident Survey type in the Complete Activity Reports
(Shane Elliott)
2004-05-13 08:57:39 +00:00
moodler
deba41af8c Clean filenames to prevent possible problems with IE 2004-04-17 03:27:27 +00:00
moodler
e80a8db7e0 Fixed GHEIGHT, GWIDTH typos ... thanks Prince Eloy! 2004-03-22 07:48:38 +00:00
moodler
840c178193 Fix from Bernard Boucher for situation when no groups members defined
http://moodle.org/mod/forum/discuss.php?d=6335#29657
2004-03-22 02:57:27 +00:00
moodler
ba163fa231 Cleaner pages when there are no responses yet 2004-03-20 09:39:17 +00:00
moodler
a12f686b62 Function name change ... hope it doesn't break any third-party code,
sorry if it does!

  get_users_in_group --->  get_group_users

  ... more consistent with other functions
2004-03-13 14:24:34 +00:00
moodler
a30f997e4c Some fixes for display of survey reports 2004-03-13 13:33:20 +00:00
moodler
a9ccbf60bf Groups support on Surveys. Phew. 2004-02-20 16:03:05 +00:00
moodler
f4da2ed4d7 Don't specify id on upgrades! Thanks, Eloy! 2004-02-17 03:58:06 +00:00
stronk7
4130af7552 Now label, quiz, resource and survey logs
are restored properly (I think) :-)
2004-02-16 20:42:16 +00:00
stronk7
8f583218df Added missing cmid parameter when calling add_to_log() function. 2004-02-16 19:31:26 +00:00
moodler
0e27a3ae71 Allow longer answers to support text fields better 2004-02-16 17:58:06 +00:00
moodler
1d8063adbc Some spacing 2004-02-16 17:15:59 +00:00
moodler
f14a311ec3 Minor tify up 2004-02-16 17:14:07 +00:00
moodler
c9b1af4d42 Make sure the update happens (some of this new code is actually really
old and sort of got bypassed)
2004-02-16 16:15:21 +00:00
moodler
7c8c335fa3 Complete clean-up of the survey reports.
Frames are GONE.  :-)

Also, a new survey: CIQ = Critical Incident Questionnaire
2004-02-16 16:13:31 +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
moodler
8eb675a555 Added dividers 2004-01-26 12:29:02 +00:00
gustav_delius
d7143408df replaced incorrectly closed html tags, see bug 365 2004-01-25 20:34:54 +00:00