Index: temp_moodle_dev/moodle/course/lamsbuttons.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/course/lamsbuttons.php,v diff -u -r1.4 -r1.5 --- temp_moodle_dev/moodle/course/lamsbuttons.php 10 Dec 2008 22:59:55 -0000 1.4 +++ temp_moodle_dev/moodle/course/lamsbuttons.php 21 May 2009 08:39:52 -0000 1.5 @@ -22,6 +22,7 @@ $lamsupdateurl = optional_param('lamsUpdateURL', PARAM_TEXT); $returnurl = optional_param('returnUrl', PARAM_TEXT); // lams url to proceed to next in sequence $isfinished = optional_param('isfinished',false, PARAM_TEXT); //if you have done the activity at least once the variable will be true + $is_learner = optional_param('is_learner', 0, PARAM_INT);//0 IF IS A LEARNER AND 1 IF IS A TEACHER ?> /* Function to display Next or Finish button in LAMS sequence*/ function toggle(id) { var state = document.getElementById(id).style.display; @@ -53,7 +54,7 @@ '; - if($isfinished=='true'){//if you have done the activity at least once let trhe Next Activity button appeare + if($isfinished=='true'||($is_learner==0&&$lamsupdateurl==null)){//if you have done the activity at least once let trhe Next Activity button appeare echo('');