Commit Graph

71 Commits

Author SHA1 Message Date
samhemelryk a5cb6242ae mod-survey MDL-20262 Upgraded survey module in the following ways
* Upgraded legacy code to use PAGE and OUTPUT methods
 * Added integration with the new navigation blocks
 * Fixed up several bugs within the download script
2009-09-17 04:11:46 +00:00
samhemelryk 207e24b829 mod-survey MDL-19816 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 02:02:03 +00:00
nicolasconnault 02f78a2688 MDL-19816 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:46:16 +00:00
nicolasconnault 8b1b03820f MDL-19816 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:17:04 +00:00
nicolasconnault 8411d0aa04 MDL-19816 Converted print_box* to $OUTPUT->box* 2009-08-10 05:00:53 +00:00
nicolasconnault 641f16bafc MDL-19816 Converted all print_footer() calls 2009-08-06 14:21:09 +00:00
nicolasconnault 8d849394c8 MDL-19816 Migrated calls to print_heading 2009-08-06 08:22:15 +00:00
nicolasconnault 2cfba1a846 MDL-19816 Migrated calls to print_spacer() 2009-08-06 02:23:56 +00:00
samhemelryk 74ef4c2e5a mod-survey MDL-16706 Removed inline script in survey and added survey.js 2009-06-25 03:46:59 +00:00
tjhunt ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
skodak ac3668bfae MDL-18910 full support for module intro editor with embedded images 2009-04-22 05:10:08 +00:00
skodak 9f0e60e188 MDL-18910 normalised module intro and introformat 2009-04-20 20:08:28 +00:00
dongsheng 83b10e578e "MDL-14129, fix print_error" 2008-06-15 09:14:55 +00:00
skodak deb3a60dc3 MDL-15116 survery dml conversion 2008-06-08 14:43:39 +00:00
skodak 44e1b7d7ff MDL-14679 remoed all instances of get_records_list() 2008-06-01 15:42:48 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
tjhunt bfbef967bc Fix notice. Meged from MOODLE_19_STABLE. 2007-10-17 14:36:03 +00:00
tjhunt 38e179a4ed MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.

Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.

If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.
2007-10-12 15:55:49 +00:00
mattc-catalyst 07aa205712 MDL-10888: groupings - mod/survey - updated to use groupings 2007-08-28 00:12:01 +00:00
mattc-catalyst 01e3838853 MDL-9473: Initialise navlinks array before use
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
mattc-catalyst 3b27b0fe21 MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
mattc-catalyst 70c6c0ad70 MDL-9474: Updated build_navigation() to use global $COURSE
- Removed $course parameter from build_navigation()
- Updated all calls to build_navigation()


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-23 21:11:10 +00:00
skodak a33bbfddfc (MDL-9470) Survey submission JS broken; merged from MOODLE_18_STABLE 2007-04-20 17:52:41 +00:00
mattc-catalyst dc0e9265f6 Breadcrumbs: mod/survey changes
- Modified to use build_navigation() for breadcrumb generation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:29:42 +00:00
skodak e0ca19a12d MDL-8781 fixed typo; merged from MOODLE_18_STABLE 2007-03-27 22:03:30 +00:00
skodak 4d7a401910 MDL-8781 survey converted to new formslib - empty intro now means use default from language pack; merged from MOODLE_18_STABLE 2007-03-27 22:01:17 +00:00
moodler c1afef8059 FIxed up the intro boxes XHTML Strict 2007-01-11 08:06:15 +00:00
toyomoyo a2f6a09605 MDL-7861, xhtml problems with survey 2007-01-08 08:00:56 +00:00
toyomoyo 795b56b3f1 MDL-7861, xhtml strict for survey 2007-01-08 05:47:12 +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 b7dc225654 MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +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
moodler bee7ee3815 Removed tabs 2006-08-09 13:39:44 +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 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
thepurpleblob 00592b8032 changed deprecated _variable() type functions to _param() type functions. 2005-07-05 11:02:46 +00:00
moodler 7f3f41ecfb Added some reportlink classed to the report links 2005-04-13 07:45:47 +00:00
stronk7 cd5d2d4b74 Now survey->name supports filterall. 2005-04-06 18:20:05 +00:00
moodler b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +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
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 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 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 a9ccbf60bf Groups support on Surveys. Phew. 2004-02-20 16:03:05 +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 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 037f99aa2d Upgraded add_to_log to send cm->id 2004-01-31 15:22:04 +00:00