167 Commits

Author SHA1 Message Date
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
michaelpenne
f6e200cbce changed how data is passed from overview to detailed view and fixed the timeout issue 2005-03-14 22:18:29 +00:00
stronk7
28b09d7057 Now hidden lessons cannot be viewed.
Thanks to Javier Gil detecting it. Bug 2733.
(http://moodle.org/bugs/bug.php?op=show&bugid=2733)
2005-03-12 18:00:05 +00:00
michaelpenne
7f2ad6c2d3 changed the math for calculating the time left in a lesson to be more compatible with browsers 2005-03-11 23:15:18 +00:00
michaelpenne
011cfc95ed updated lesson_delete_instance to delete records from timer, branch, and high_scores tables 2005-03-10 22:43:00 +00:00
michaelpenne
1c97019eaf removed lesson_clean_data_submitted() function. Removed all instances of its use before I did this 2005-03-10 20:51:26 +00:00
michaelpenne
d0b8bcdc8b updategrade now cleans params correctly now (i hope) 2005-03-10 20:42:09 +00:00
michaelpenne
801697d170 insertpage and updatepage now clean params correctly (i hope) 2005-03-10 20:34:32 +00:00
stronk7
bbab80d1fc Some minor XML indentation, some changes in the XML structure and
some important bugs. Now everything seems to work properly with
lessons and backup/restore.

Only 1 pending change: Should the answer->grade field in old backups
  go to the new score field??????
2005-03-07 01:32:05 +00:00
moodler
832b9f8204 Removed filter and put badwords list in string files 2005-03-05 03:14:45 +00:00
stronk7
ac8e16be13 Bye. Now all those tabs are out 2005-03-05 00:09:39 +00:00
stronk7
8032acc64c Simple replace of tabs to spaces!! 2005-03-04 00:30:02 +00:00
stronk7
d698fea233 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 00:12:25 +00:00
michaelpenne
b0ec882fc1 delete user attempts now deletes a users grades, attempts, and time recrods. The email it sends is nicer as well 2005-02-25 19:28:51 +00:00
michaelpenne
5f3b3a084a updated report to find the times in timer table, now much more accurate. Also fixed a sesskey problem 2005-02-25 19:12:39 +00:00
michaelpenne
ff2978cea0 updated the time code to refect the new view 2005-02-25 19:11:12 +00:00