Commit Graph

140 Commits

Author SHA1 Message Date
skodak 0d905d9f34 MDL-7861 new class .icon and .iconsmall 2007-01-08 09:14:05 +00:00
skodak d2ce367fb9 MDL-8062 Remove name attribute from <form> and related javascript code cleanup (tested with FF, IE, Konq and Opera) 2007-01-06 19:22:58 +00:00
skodak 7150226896 MDL-7861 xhtml strict fixes - fixed all <br> in our code 2007-01-04 23:38:17 +00:00
Martin Langhoff f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
jamiesensei f07b9627b6 changes to how we generate the id attribute of forms and the naming convention of forms
migrate blog edit to formslib
2006-12-28 09:32:45 +00:00
jamiesensei a23f0aaf95 * Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform  - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
2006-12-19 07:03:08 +00:00
jamiesensei 19194f825a added setAdvanced MoodleQuickForm method. And added closeHeaderAfter method 2006-12-14 12:44:10 +00:00
jamiesensei 19110c573d added new 'cancel' element type and introduced new is_cancelled() MoodleQuickForm method.
also used new cancel button in all mod_forms as well as a 'Revert' button and reworked logic about where to go on cancel or after submission for modedit.php
2006-12-04 09:36:30 +00:00
jamiesensei d4b26b9025 migrated mod/exercise/mod.html to formslib 2006-11-28 15:35:22 +00:00
skodak 0591742ecb incorrect table width in Exercise MDL-7690 2006-11-26 21:37:07 +00:00
skodak 7150b8ae20 MDL-7434 all images that convey information should have alt text to convey that information - part 3 2006-11-26 16:20:19 +00:00
stronk7 5d0fc5c33d Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:46:02 +00:00
stronk7 3aac1dc9a0 Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:39:10 +00:00
stronk7 b8a342d7ac New upgrade.php file added for this module. MDL-7214 2006-10-26 17:33:40 +00:00
stronk7 b4c7bb78fc Deleting some old oci8po files from CVS. 2006-10-21 18:28:28 +00:00
thompson697 cf0b1faded Apply modularity to the creation of the log file during restore to a new course.
Remove the responsibility for loging the application of the course start date offset, from activity modules to the backup module.
Merged from stable branch
2006-10-17 10:05:41 +00:00
moodler 2d5a4f255b Merged fixes for MDL-6907 from stable 2006-10-11 06:21:58 +00:00
moodler 47545d4161 Removed some references to user_teachers that will probably cause a bug 2006-10-06 06:42:33 +00:00
moodler f0c9f676db Remove user_students references 2006-10-06 06:39:29 +00:00
moodler 99938ae7b6 Added some defaults to make sure Exercise is off by default 2006-10-06 06:34:08 +00:00
thompson697 eb87ac71c5 Change creation of restorelog file location to protected backupdata folder.
Reassign style and language links
2006-10-04 14:50:50 +00:00
vyshane 583b57b42d Changed <module>_print_recent_activity() functions so that they don't use $isteacher. However, I've left the $isteacher parameter in the functions, for backward compatibility so as not to break thrid party modules. Should we remove the parameter now? 2006-09-24 14:01:50 +00:00
skodak eef868d17d major whitespace cleanup - fixed trailng whitespace in new files and admin area 2006-09-20 21:00:45 +00:00
thompson697 163ff97e84 Complete work on Roll Forwards - Restore from previous semester (MDL-5532)
* Add fields to restore form to enable changes to Short Name, Full Name and Start Date
* Start Date offset added to Restore process
* Created Restorelog file in Course files area
* Activity Modules use offset to change dates
* Activity Modules write changes to Restorelog
2006-09-13 13:19:39 +00:00
moodler 0f9602085b Small bump for guest role fix 2006-09-12 08:22:14 +00:00
moodler 8d158ed44f Reload the guest role using new defaults 2006-09-12 07:10:49 +00:00
moodler 0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
stronk7 c7b39f4737 XMLDB schema initial commit for exercise module 2006-08-10 17:12:00 +00:00
moodler dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
skodak f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +00:00
moodler bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak 631264347b fixed bug #5572 missing PARAM_CLEAN; merged from MOODLE_16_MOODLE 2006-05-22 06:00:51 +00:00
vyshane f53d75517e Fixed inserts for log_display table 2006-04-24 08:11:35 +00:00
skodak 117987949a fixed undefined $timenow 2006-04-22 17:28:18 +00:00
skodak 34ffb5cae2 some extra cleaning of comments and feedback before storage. normaly the text is cleaned before display, this is just a preventive measure because I did not want to study this code all day ;-) 2006-04-19 20:10:04 +00:00
skodak 200514e282 some bugfixing and proper conversion to new xxx_param() functions - SC#148 2006-04-17 21:14:50 +00:00
moodler 960beea394 Merging fixes from stable 2006-04-05 03:19:36 +00:00
patrickslee cb8229d0a8 UTF8 migration - now supporting PostgreSQL 2006-03-10 03:43:33 +00:00
skodak 38b7336ed1 short php tags 2006-03-07 21:35:13 +00:00
toyomoyo f841494c62 see changes for admin/utfdbmigrate.php 2006-02-24 08:20:13 +00:00
moodler 3c73df8e5d Added missing require_once('locallib.php'); 2006-02-10 03:59:30 +00:00
moodler 136b6ab33f changed to use utfconvert function 2006-01-31 02:15:21 +00:00
moodler 2762ca176d fixing typos 2006-01-19 03:55:02 +00:00
moodler f6691427d9 Added default values where needed for columns in the MySQL creation script mysql.sql.
Added default values to migrate2utf8.xml, for any varchar and text field types, if the default values for these fields were not defined as '' in the MySQL table creation script.

Committed by vyshane
2006-01-17 07:37:29 +00:00
mjollnir_ f90666aa5c Abstracted a bit of the restore procedure to allow for silent restoring.
Added new function, import_backup_file_silently
Changed everything that prints stuff to check for a constant first.
Backup_flush checks a different constant, this is so that output can still
get flushed to the browser when necessary but not print <li>s everywhere.
Please test this!
2006-01-15 21:09:13 +00:00
mjollnir_ 1ecea97679 Granular backup & restore:
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
toyomoyo 1e4d9ff6dc utf8 migration support scripts 2006-01-09 06:06:49 +00:00
moodler 3a6b53e80d Replaced optional_var with optional_param 2005-12-07 03:30:59 +00:00
moodler fa22fd5fff BIG FEATURE - MULTIPLE GROUPS
Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
2005-11-08 07:19:27 +00:00
mjollnir_ f3221af9e5 Initial checkin of stats (from processing the log table).
I will write up some information about it for the developers wiki.
2005-09-01 04:14:31 +00:00