Commit graph

432 commits

Author SHA1 Message Date
michaelpenne
3f46783677 took out the 80%, not sure if it should be there or not ;) 2005-06-16 17:41:12 +00:00
michaelpenne
a972bb821f with slideshow off: set the width for print_simple_box to 80% for the page content 2005-06-16 17:38:37 +00:00
michaelpenne
804456766e now passes the media files name to the print header function 2005-06-16 17:17:58 +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
f26cef7c22 Minor changes to support the new media file feature. 2005-06-15 23:35:11 +00:00
michaelpenne
dbda1da801 This file is used as a popup to play a media file defined in the lesson settings.
This file still needs some testing before it is ready for prime time.
2005-06-15 23:29:50 +00:00
urs_hunkler
09ade8ac05 Merged from 1.5: corrected the CSS. It is not enough to set the outer class once at the begining of a comma separated list of CSS stylings. Every item must contain the full series of classes or ids, only the properties are following once. 2005-06-15 19:28:12 +00:00
michaelpenne
5805dddbb6 put in two !== instead of != to compare NULL values 2005-06-14 17:42:12 +00:00
michaelpenne
7629332ba4 Bug: fixed a problem with the date completed value and a problem with processing shortanswer/numerical question types 2005-06-09 21:55:53 +00:00
michaelpenne
71ba4dce3c Discovered a bug with lesson grades. While calculating the grade, intval was used to truncate the decimals from the grade. intavl is now replaced with round. round will now round the grade to 5 decimal places. The database only holds int(3). So, this has been changed to float to hold decimal numbers. We have found this to be much more accurate when converting the stored percentage in the database back to a point value (before this fix, users were getting numbers like 46.5 points instead of their original 47 points due to an inaccurate percent value). Files changed for this fix include:
locallib.php
report.php
version.php
view.php
db/mysql.php
db/mysql.sql
db/postgres7.php
db/postgres7.sql
2005-06-09 21:24:17 +00:00
michaelpenne
cedac380ed Before, importppt would look for outline.htm to determine the order of the slides.
If outline.htm is not found, it would fail.  Now if outline.htm is not found
importppt will scan the directory for any file that starts with slide.
This change was added to support powerpoint 2000
2005-06-08 17:33:41 +00:00
michaelpenne
bd71134047 Bug 1650 fixed: help button calling the wrong help file 2005-06-07 20:56:37 +00:00
michaelpenne
f933effb3e Bug 3022 Fixed: got rid of uppercase tags 2005-06-07 20:47:25 +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
michaelpenne
fff91cc994 updated the link to the grade book 2005-06-06 17:23:35 +00:00
michaelpenne
2a6f9ad5c9 forgot to escape some " 2005-05-27 22:28:55 +00:00
michaelpenne
6c643a1dcc added an alt tag for images (nothing meaningful though) 2005-05-27 22:14:28 +00:00
michaelpenne
669b0fab9a strips end lines properly now. Directory fixes for book imports 2005-05-27 20:50:55 +00:00
michaelpenne
a2714c13f3 now creates lesson directory in moddata for the images. also supports the different slasharguments for files 2005-05-26 23:41:50 +00:00
michaelpenne
7abd498b12 more flexible to catch more content for importing 2005-05-26 21:38:54 +00:00
michaelpenne
cfcdb4b56e added a > to a table tag 2005-05-24 21:21:21 +00:00
michaelpenne
9f10d4d184 changed an include from lib.php to locallib.php and converted some numbers to constants 2005-05-24 21:02:16 +00:00
michaelpenne
be154395e8 when editing a lesson for the first time, added a link to importppt.php in the list of options 2005-05-24 20:28:20 +00:00
michaelpenne
8707ce6910 new import script to import powerpoint slides (exported as html) 2005-05-24 20:26:21 +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
1db0647ccd highscores will not display with practice lesson on because no grade records are entered. Also, on teacher view, when the question content is printed it uses FORMAT_HTML now 2005-05-06 23:57:20 +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
f5c864efff moved View Lesson Statistics and Grade Essay Questions links in teacher view to top right corner. Also, lesson stats link displays how many users have taken the lesson and grade essay link displays how many essays need to be graded and how many essays that need to be sent out still 2005-05-03 22:26:01 +00:00
michaelpenne
1bbce48a7e added div with class mod-lesson around the form to hide a label 2005-05-03 22:22:56 +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
378b613d8e Some changes to add format_text() to answers
and feedback across all the module.

Note: Essay questions and their teacher's feedback. I'm not
pretty sure it they should support the format_text() too. And
currently, they are cleaned at input, so it is impossible
to write <lang> or <span> tags with them!
2005-04-29 18:32:13 +00:00
stronk7
68dfc4deb6 Now lesson_pages->title supports filterall 2005-04-26 22:30:40 +00:00
michaelpenne
e5ee4adfd4 FIX: removed the unsetting of a SESSION variable that kept track of logins for lesson (password protected). This allows for reviewing of lessons that have passwords. Only downside, once logged in to a lesson, dont need to reenter password for that login session. Prolly not a problem 2005-04-26 21:24:06 +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
stronk7
0a2c2599b6 Now lesson->name supports filterall 2005-04-24 16:46:51 +00:00
stronk7
0679acbe14 Events created by the lesson module were double-slashed. 2005-04-24 16:10:50 +00:00
michaelpenne
0f2bff9d7b FIXED: questiontypes help button was looking for the wrong help file 2005-04-13 00:01:43 +00:00
michaelpenne
97c4410778 added calendar event code to add, update, and delete instance 2005-04-08 21:38:09 +00:00
michaelpenne
86b7a42880 now if you leave the lesson the the middle of a bunch of branch tables, you will return to the last one you answered. Also, if show grades is off in course settings, the lesson will process and store the grade for the student but then redirect the student to the course page immediatly. 2005-04-05 22:42:34 +00:00
moodler
1aef65946b Removed obselete THEME and sme spacing 2005-03-30 03:16:37 +00:00
moodler
6656bf0af1 Security fixes
Fixed up styles handling to be more standard (the themes include them
already so no need for modules to do it)
2005-03-30 03:07:39 +00:00
moodler
d1465c3d12 Naming, people, naming ... keep it clear but minim 2005-03-30 02:59:41 +00:00
michaelpenne
23f5e2617c bug fix: review button no longer displays on essay questions 2005-03-30 01:24:57 +00:00
michaelpenne
16518f15f7 removed some debug lines 2005-03-30 00:53:24 +00:00
michaelpenne
845a17e6f0 all the actions in lesson.php are now defined in mod/lesson/lessonactions/ 2005-03-30 00:49:18 +00:00
michaelpenne
ea15ad0ece This file contains the code for a single action that used to be defined in lesson.php. Now each action has its own file 2005-03-30 00:38:59 +00:00
michaelpenne
c32bc595bd on multichoice questions with multianswer, the code was not cleaning the variables correctly. Now sends the array through a foreach and then clean_param on each element in the array. Fix is around line 855. 2005-03-29 22:38:27 +00:00
michaelpenne
93943f6570 on line 1030, there was a division by zero when a student has not viewed any pages. Now it checks to makes sure $nviewed != 0. This is for the ongoing score feature. 2005-03-29 22:04:06 +00:00