32 Commits

Author SHA1 Message Date
mark-nielsen
97d2756c65 [New Feature] Tabbed navigation added to lesson (similar to quiz)
[Added] Graceful fails added to view.php, essay grading, and reports
[Changed] got rid of a lot of references to $_POST/GET/REQUEST
[Fixed] In reports, it required teacheredit, should only be teacher
[Changed] High scores - teachers can actually see them!  Also, improved output by using print_table and print_heading
[Changed] Grade essays now uses fullname() to print user names
2006-03-25 21:38:57 +00:00
mark-nielsen
8bd7bacd14 [Fixed] this page was shooting of warnings for unset variable score. Now checks to make sure score is set before using it. 2006-03-19 02:16:00 +00:00
mark-nielsen
aeade7e227 cleaned up the left menu feature output by removing an unused form and several unnecessary string concatenations 2006-03-19 02:08:37 +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
michaelpenne
c5b71097bc [BugFix] Bug #4852 - HTML editor problems 2006-03-11 00:23:21 +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
6094f43dd5 [Fix] Removed htmlentities on student answer. 2006-02-24 21:31:23 +00:00
michaelpenne
ee27cca526 [BugFix] Bug #4216 - cancel button 2006-02-24 19:09:14 +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
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
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
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
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
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
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
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
af1cd0fe33 Made the shortanswer qtype grading much more reliable. Change to preg_match to speed things up. Also do a preg_quote on the teacher supplied answer to prevent confusion in the preg_match statements (before + signs and the like were causing the preg_match statements to fail). 2005-06-21 22:38:26 +00:00
michaelpenne
c5cbd215fb Bug Fix: The code for dealing with the * character for shortanswer question type was lost. I downloaded 1.4.5+ and merged the shortanswer grading code into 1.6 dev. 2005-06-21 21:45:04 +00:00
michaelpenne
1fd92aadb0 Fixed a problem with quotes in short answers
and

Fixed a bug with clusters.  If you enter a cluster after a page it would throw a
navigation error.  It now enters the cluster properly.
2005-06-15 23:41:01 +00:00
michaelpenne
bd71134047 Bug 1650 fixed: help button calling the wrong help file 2005-06-07 20:56:37 +00:00
michaelpenne
e0b1a2bea9 BUG FIX for Bug #3059: if there is not a response to an answer, the response gets set to an empty string 2005-06-06 18:30:34 +00:00
stronk7
271fea974f Tabs are out.
(all the module was using them, please change your editor settings to 4 spaces)
2005-05-16 22:41:19 +00:00
michaelpenne
98dd2c00f4 FIXED: loss content on editing a page 2005-05-09 02:29:35 +00:00
michaelpenne
9638a1f496 tried to make editing a lesson look nicer. Added generalbox class to tables and used tabs for selecting question types 2005-05-03 23:30:40 +00:00
michaelpenne
af9f2c05db added addslashes to title, content, answer and response fields to help deal with quotes after a clean_param() 2005-05-03 21:16:30 +00:00
stronk7
68dfc4deb6 Now lesson_pages->title supports filterall 2005-04-26 22:30:40 +00:00
michaelpenne
544a4b8a4d FIX: quotes in matching questions were not grading correctly. Used htmlspecialchars on the values in the select box in view.php and then use stripslashes on the answers in continue.php 2005-04-26 20:37:34 +00:00
stronk7
c6807fea65 Page titles can contain now HTML. Needed to be able to
apply the filterall thing here.
2005-04-26 19:08:06 +00:00
michaelpenne
0f2bff9d7b FIXED: questiontypes help button was looking for the wrong help file 2005-04-13 00:01:43 +00:00
moodler
d1465c3d12 Naming, people, naming ... keep it clear but minim 2005-03-30 02:59:41 +00:00