248 Commits

Author SHA1 Message Date
mark-nielsen
289218844a [Changed] The print_simple_box_start/stop changes conflicted greatly with the display of branch table buttons (the box printed above the buttons some how :( ) To fix this, the tables were taken out and divs were used instead to display and arrange the buttons. This turns out to be a good thing because now the user has more control over the buttons via style sheet. Also did some extra clean up in the section of code printing the branch table.
[Added] new styles to styles.php to help display the buttons correctly.
2006-03-19 01:53:50 +00:00
mark-nielsen
0646963948 [Changed] function execute_teacherwarning to function lesson_display_teacher_warning because it was violating the function naming policy 2006-03-17 03:37:31 +00:00
mark-nielsen
4b55d2aff2 [Added] added phpdoc comments to locallib.php 2006-03-17 03:31:19 +00:00
michaelpenne
c5b71097bc [BugFix] Bug #4852 - HTML editor problems 2006-03-11 00:23:21 +00:00
patrickslee
cb8229d0a8 UTF8 migration - now supporting PostgreSQL 2006-03-10 03:43:33 +00:00
vyshane
05da418753 Added $CFG->pagepath so that the Moodle Doc URLs are generated properly for
this section.
2006-03-09 07:53:14 +00:00
michaelpenne
eee850986f [Added] Added function lesson_delete_course() to clean up the lesson_default table 2006-03-09 02:26:20 +00:00
skodak
38b7336ed1 short php tags 2006-03-07 21:35:13 +00:00
skodak
1b1d34225b incorrect usage of clean_filename() replaced with clean_param($text, PARAM_SAFEDIR) 2006-03-04 12:37:29 +00:00
michaelpenne
6094f43dd5 [Fix] Removed htmlentities on student answer. 2006-02-24 21:31:23 +00:00
michaelpenne
44492c2a18 [Fix] $navigation and $grade_value were undefined when lesson was added to site main page 2006-02-24 21:26:15 +00:00
michaelpenne
0d2df6a049 Removed correct and incorrect colors. 2006-02-24 20:17:41 +00:00
michaelpenne
1ae43a52f9 [BugFix] Bug #4174 - Lesson Essay Question Can't be Graded when attempt not finished 2006-02-24 20:17:08 +00:00
michaelpenne
ee27cca526 [BugFix] Bug #4216 - cancel button 2006-02-24 19:09:14 +00:00
toyomoyo
f841494c62 see changes for admin/utfdbmigrate.php 2006-02-24 08:20:13 +00:00
michaelpenne
d643cbfb73 [Added] Added Regular Expression support for short answers by Joseph Rézeau. Discussion: http://moodle.org/mod/forum/discuss.php?d=38544
[Changed] Some display information has been changed, now prints page contents, user answer, and response
2006-02-23 00:41:28 +00:00
michaelpenne
8e7cf8d4c9 [Fixed] Activity linking was not useing the course module id correctly. 2006-02-06 20:49:03 +00:00
moodler
136b6ab33f changed to use utfconvert function 2006-01-31 02:15:21 +00:00
michaelpenne
de1547bf6c [Fixed] A problem with storing the answerid for numerical questions. Discussion here: http://moodle.org/mod/forum/discuss.php?d=37537 2006-01-24 00:47:11 +00:00
moodler
12836b50a4 a lot of bug fixes 2006-01-19 06:45:14 +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
michaelpenne
b4f4f09ca8 [Fixed] Fails gracefully when no course modules are found.
[Fixed] Does not remove other modules from the activity link options due to same ids.
2006-01-13 21:57:42 +00:00
michaelpenne
6ef1c83de6 [Fixed] Display error in Windows IE. Slideshow div would move on link rollover. This is now fixed. 2006-01-13 21:24:52 +00:00
michaelpenne
aeb8148a57 [Changed] Now when a teacher edits a page with the "Edit page contents" button and then saves or cancels, s/he gets redirected back to the lesson navigation. This will help to streamline the editing
[Fixed] The cancel button on the edit page now works.
2006-01-13 18:41:37 +00:00
toyomoyo
e8f7b20f9a more bug fixes =( 2006-01-13 07:24:43 +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
7c5406967d some bug fixes 2006-01-12 02:39:13 +00:00
toyomoyo
c8ee027b0e added 2 fields in xml, addindex and dropindex, and bug fixes 2006-01-11 01:46:22 +00:00
toyomoyo
1e4d9ff6dc utf8 migration support scripts 2006-01-09 06:06:49 +00:00
defacer
7f9def8fa9 XHTML fix 2005-11-23 22:31:52 +00:00
defacer
018881d4a9 Fixing invalind value for cellpadding ("5px") 2005-11-23 22:14:57 +00:00
defacer
3d6fc45229 Fixing defaults (copy/paste error) -- this printed notices with debug=on and
actually mangled the "create lesson instance" query so badly that you could
not add lessons!
2005-11-23 22:11:50 +00:00
michaelpenne
acab90991a BUG FIX: progress bar now does not break when student reviews the lesson.
BUG FIX: matching question type upgrade script now supports quotes.

CHANGED: Improved labels for form elements to improve accessibility.

NEW: added a skip navigation link for left menu.
2005-11-16 22:35:46 +00:00
michaelpenne
114f47a79e NEW FEATURE: Activity Link allows the teacher to display a link to another activity, which is in the same course,
at the end of the Lesson.
2005-11-07 19:56:08 +00:00
michaelpenne
16fa48c83e The Lesson dependency help button was pointing to the wrong help file. 2005-11-02 21:22:16 +00:00
michaelpenne
3eca6cf1bf NEW FEATURE: Media file now works with web pages and with text and html files. Also, the pop-up
window size is configurable as well as an optional close button at the bottom of the window.
2005-10-28 22:45:47 +00:00
michaelpenne
c83dca2287 BUG FIX: Double print of content in branch tables with slide show on 2005-10-28 18:55:58 +00:00
michaelpenne
0017b962e6 BUG FIX: essay response was still hard coded in. Replaced it with a get_string call 2005-10-26 23:11:26 +00:00
michaelpenne
3c34ce6802 reverted back some divs, minor change 2005-10-26 21:48:24 +00:00
michaelpenne
fb0f70908b BUG FIX: if one is a teacher, the left menu is always displayed. 2005-10-26 21:43:48 +00:00
michaelpenne
62eda6ea18 NEW: Progress bar option. Now a progress bar can be optionally displayed at the bottom of the lesson page.
NEW: Display Left Menu IF.  The left menu will only display if the student has a grade better than the one set in the lesson settings.  This is nice to allow only students who are reviewing the lesson to have access to the left menu.

BUG FIX: In Windows IE, the content was being aligned center.  Now, the content is explicitly aligned to left as default.
BUG FIX: High Scores variable was not spelled correctly at the End of Lesson.

ADDED: Div tags around branch tables.  This will allow users to choose to display them or not or move them around

CHANGED: converted more of the links to the stylized button.  Also, removed a lot of forms and javascript and replaced it with links with the variables in the href.
CHANGED: the slide show styles have been moved to the style sheet.
CHANGED: removed the CDC comments

Other minor changes have been made to the code as well.
2005-10-24 23:06:43 +00:00
michaelpenne
b6a64b0295 Removed a notice warning when lessons are created in a course with no category (eg: home page) 2005-10-14 19:25:11 +00:00
michaelpenne
4e644e8d50 Reverted grading back to 1.4.X for when custom scoring is turned OFF 2005-10-07 20:33:39 +00:00
michaelpenne
d6941aff55 Recoded most of the left menu:
Got rid of a table
Restructured and added more div tags in the left menu (much more logical)
Reworked the styles for the left menu in the styles sheet (everything should be customizable via style sheet)
More compatible with MacIE5
Added styles to the individual links in the menu (allows styling the for currently selected page and for all the rest)
Cleaned up the left menu link generation in locallib.php
2005-10-05 22:45:38 +00:00
michaelpenne
b8437c1cbc Removed filtering on page contents, answers and responses for lesson pages and their answers (this includes removing parameter cleaning and noclean in format_text).
Also, fixed some warning errors in action/updatepage.php.
2005-10-03 21:29:05 +00:00
michaelpenne
8b87bbde6c BIG FIX: "Edit Page Contents" button for when $pageid is empty (first page) 2005-10-03 19:46:44 +00:00
michaelpenne
544121b12d Switched buttons in lesson navigation to stylized links similar (well, the same rather for default) to the home button in the footer. This will allow for easy (hopefully) personalized customization of the buttons in lesson (ex: background images, colors, etc).
styles.php: added new styles, added comments and cleaned it up
view.php: converted the buttons for each question type to the new button standard.  Also recoded branch table button layout generation.
action/continue.php: updated the buttons there as well.
2005-09-28 21:55:05 +00:00
michaelpenne
b46d9213ba Added styles to the next and previous buttons on branch tables to allow customization 2005-09-21 21:00:36 +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