Commit Graph

29 Commits

Author SHA1 Message Date
toyomoyo a2f6a09605 MDL-7861, xhtml problems with survey 2007-01-08 08:00:56 +00:00
jamiesensei 1d284fbd85 fixing all the form names as per new class naming convention (PHP class names are also used for html id for styling) 2006-12-28 15:43:47 +00: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 74e01e6281 changed name of submit buttons to submitbutton instead of sumbit as submit was conflicting with method form.submit() 2006-11-24 16:38:22 +00:00
jamiesensei 9e471e1165 migrated to formslib 2006-10-24 12:19:34 +00:00
toyomoyo 81e956b964 added some capabilities 2006-08-30 08:43:17 +00:00
skodak d154ed0cf4 fixed bug #4189 - visible not changed 2006-04-27 21:35:02 +00:00
skodak 8f414ab8aa fixed some long standing and some new problems and SC#249, please consider backporting into STABLE 2006-04-27 21:30:18 +00:00
moodler 6db0b948cc fix for bug 4284 2005-11-07 05:49:23 +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
moodler f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +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
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 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
moodler a9ccbf60bf Groups support on Surveys. Phew. 2004-02-20 16:03:05 +00:00
gustav_delius d7143408df replaced incorrectly closed html tags, see bug 365 2004-01-25 20:34:54 +00:00
moodler 60ffb53a7d Minor code cleanup 2003-05-20 08:01:40 +00:00
moodler b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler 607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler 36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler e323955db8 Changes to use new database stuff 2002-12-23 05:57:05 +00:00
moodler f762c448ef FINALLY! Surveys are now translatable! :-) 2002-11-09 06:22:57 +00:00
martin 98899fc040 Language fixes 2002-08-12 17:54:13 +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 5eb45fa058 Various small fixes across all modules. Most notable was the revised
use of add_to_log, and the new logging format.
2002-05-31 09:07:11 +00:00
martin f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00