michaelpenne
c022b4964f
changed the time code, now the timer table keeps track of time spent per attempt per lesson for each student. It is also used for timed tests. Also, moved check navigation link so it wont show up when there are no lesson pages.
2005-02-25 19:10:17 +00:00
michaelpenne
6899d8973f
removed an echo and a comment
2005-02-23 22:24:46 +00:00
michaelpenne
0741a56672
woops, took out gustavs change, yah cvs
2005-02-23 00:56:28 +00:00
michaelpenne
49584784ac
fixed up leftmenu some more
2005-02-23 00:52:29 +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
stronk7
95e72c12d0
Now retrieving only needed fields!
2005-02-13 00:42:29 +00:00
gustav_delius
48e535bc35
Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
...
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.
If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.
If deleting a coursemodule its events are deleted from the calendar.
The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.
For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
michaelpenne
f7ffb898fa
array/object initialization
2005-02-09 22:36:24 +00:00
michaelpenne
078ab023be
array/object initialization and made essay question type work with unanswered lesson flow
2005-02-09 22:34:14 +00:00
michaelpenne
d72b5b56dc
I think just array/object initialization
2005-02-09 22:31:36 +00:00
michaelpenne
0f4be3f608
initialized arrays and objects, fixed a few bugs
2005-02-09 22:29:29 +00:00
moodler
fafd89a0f1
Removed $THEMEs and stuff.
...
I'm a little worried about this spaghetti code ... it's a mess!
2005-02-09 15:36:29 +00:00
moodler
a710d8c616
Improved feedback after an action (on redirect) and also put a
...
navigation check link up the top.
2005-02-09 15:21:56 +00:00
stronk7
e09087bc76
Some minor changes to each module to XHTMLise the restore process
2005-02-07 23:33:17 +00:00
michaelpenne
5aeebbc894
re-arranged a lot of code. Only branch tables appear in slide show mode. Display left and slideshow works with tables now instead of stylesheets (helps with browser compatibility). Some XHTML fixes. Fixed grading essay questions for non-custom scoreing. Reformated a lot of output
2005-02-04 19:39:18 +00:00
michaelpenne
ea6c76e0f2
removed a lot of styles because left menu and slideshow work in a table instead of styles. This helps with compatibility with more browsers
2005-02-04 19:35:43 +00:00
michaelpenne
9d1bd908f5
fixed the clock formating.
2005-02-04 19:34:22 +00:00
michaelpenne
62d5291318
this is Petrs security fix for import
2005-02-04 19:33:33 +00:00
michaelpenne
9127f2494d
fixed a clean param function call
2005-02-04 19:31:24 +00:00
michaelpenne
b7daa75d08
most changes in continue section. Took it out of slideshow. Made some display changes with display left (not style sheet dependent now)
2005-02-04 19:30:19 +00:00
moodler
3ce16d70d7
Removed unmatched closing tag
2005-01-29 10:17:59 +00:00
michaelpenne
d9ef9b836d
fixed some prefixes, not sure how this didnt get noticed before ;)
2005-01-28 19:31:41 +00:00
michaelpenne
f862f00d54
variable cleaning and sesskey updates
2005-01-27 21:36:12 +00:00
michaelpenne
0733cc0062
made a change to lesson_clean_data_submitted and added some xhtml compliance fixes
2005-01-27 21:35:37 +00:00
michaelpenne
d6847e5d95
uncommented the require style sheet (was there a problem?), also rearranged lesson settings into categories.
2005-01-27 21:33:35 +00:00
michaelpenne
07fe38c02b
added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function (forgot comments before)
2005-01-26 00:30:46 +00:00
michaelpenne
57bfe93dca
added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function
2005-01-26 00:25:20 +00:00
michaelpenne
eb65aeb7fd
security updates: parameter cleaning
2005-01-26 00:22:51 +00:00
stronk7
1082105205
Modify sesskey behaviour. SC#73
2005-01-22 18:53:44 +00:00
michaelpenne
29a014c05a
corrected the sesskey code
2005-01-21 23:13:53 +00:00
michaelpenne
4ea3ce2fcb
added sesskey code to remove the sesskey error from updating the lesson from view.php
2005-01-21 19:02:57 +00:00
michaelpenne
bca6b842ca
fix class stats for essay questions
2004-12-06 20:33:44 +00:00
michaelpenne
8061400e0f
updated essay and short answer code to work with quotes (single and double)
2004-12-01 21:02:07 +00:00
michaelpenne
611e79fd75
updated essay code to work with quotes being used in user answer and teacher response
2004-12-01 21:00:49 +00:00
mjollnir_
33a55a6d55
Merged from MOODLE_14_STABLE: Indexes for lesson and version bump (honoring partial freeze)
2004-11-19 03:13:05 +00:00
michaelpenne
324da715f2
updated lesson_calculate_ongoing_score to match the grading algorithm used in view.php. Also suppressed a warning in lesson_print_tree_link_menu function.
2004-11-17 01:05:39 +00:00
michaelpenne
8bca120ff0
Changed the grading algorithm. Now it divides points earned by total points possible. Before was dividing points earned by max grade. Also updated essay grading to work much more reliably and fixed some formatting problems with essay emails.
2004-11-17 01:02:14 +00:00
moodler
2a488ba553
Some XHTML compatibility changes
2004-11-04 09:24:51 +00:00
moodler
df5da3fc88
Fixed missing prefix
2004-11-04 08:55:19 +00:00
paca70
5b9ce58cdc
Corrected typo in mysql.sql
...
Added support for postgresql.
BTW is it posible to use table_column() function also with mysql, that would make
mysql-code easily portable to other database-files.
2004-11-02 08:51:24 +00:00
michaelpenne
9390ae0017
added fields: useranswer field in lesson_attempts, and added modattempts to lesson and lesson_default tables, and removed essay table creation
2004-11-01 20:47:08 +00:00
michaelpenne
8f4c2d41e4
added alter table commands to insert useranswer field in lesson_attempts, and added modattempts to lesson and lesson_default tables
2004-11-01 20:44:06 +00:00
michaelpenne
2e75518667
added a link to report, changed conditions for displaying essay link, modified the essay functions to reflect the new view of an essay question, and updated view.php to work with modattempts option
2004-11-01 20:41:55 +00:00
michaelpenne
eb73cd47e0
moved output from inside this file, to lesson.php and view.php. Also now uses lang file.
2004-11-01 20:39:30 +00:00
michaelpenne
f50e2abc74
can restore the new backup code now
2004-11-01 20:37:16 +00:00
michaelpenne
37eeba778f
report displays statistics regarding users attempts for a particular lesson. If a student has attempted a lesson, a link will appear when you edit the lesson to view statistics. This feature works best with the newest version of lesson because lesson now retains more information regarding how the user answered a given question. Old lesson attempts will not display correctly.
2004-11-01 20:35:45 +00:00
michaelpenne
d01e2b0ba2
added a new setting which is modattempts
2004-11-01 20:27:28 +00:00
michaelpenne
9959aab238
on line #277 , return null instead of throwing an error
2004-11-01 20:25:42 +00:00
michaelpenne
ecb00e05e2
increased the lesson version number
2004-11-01 20:21:21 +00:00
michaelpenne
b986908256
changed lesson_calculate_ongoing_score function and added some comments
2004-11-01 20:18:26 +00:00