-
- ";
- echo $s;
- $i=1;
- foreach($questionList as $questionId) {
- // for sequential exercises
- if($exerciseType == 2) {
- // if it is not the right question, goes to the next loop iteration
- if ($questionNum != $i ) {
- $i++;
- continue;
- } else {
- if ($exerciseFeedbackType != 1) {
- // if the user has already answered this question
- if (isset($exerciseResult[$questionId])) {
- // construction of the Question object
- $objQuestionTmp = Question::read($questionId);
- $questionName=$objQuestionTmp->selectTitle();
- // destruction of the Question object
- unset($objQuestionTmp);
- Display::display_normal_message(get_lang('AlreadyAnswered'));
- $i++;
- //echo ''.get_lang('AlreadyAnswered').' "'.$questionName.'" | ';
- break;
- }
- }
- }
- }
- // shows the question and its answers
- showQuestion($questionId, false, $origin,$i,$nbrQuestions);
- $i++;
- // for sequential exercises
- if($exerciseType == 2) {
- // quits the loop
+
+ $s .= " ";
- $b=2;
+
+
+ ";
+ $b = 2;
}
- if($_configuration['live_exercise_tracking'] == true && $exerciseFeedbackType!=1) {
- //if($questionNum < 2){
- if($table_recorded_not_exist){
- if($exerciseType == 2){
+if ($_configuration['live_exercise_tracking'] == true && $exerciseFeedbackType != 1) {
+ //if($questionNum < 2){
+ if ($table_recorded_not_exist) {
+ if ($exerciseType == 2) {
api_sql_query("INSERT INTO $stat_table(exe_exo_id,exe_user_id,exe_cours_id,status,session_id,data_tracking,start_date,orig_lp_id,orig_lp_item_id)
- VALUES('$exerciseId','".api_get_user_id()."','".$_course['id']."','incomplete','".api_get_session_id()."','".implode(',',$questionList)."','".date('Y-m-d H:i:s')."',$safe_lp_id,$safe_lp_item_id)",__FILE__,__LINE__);
- } else {
- api_sql_query("INSERT INTO $stat_table (exe_exo_id,exe_user_id,exe_cours_id,status,session_id,start_date,orig_lp_id,orig_lp_item_id)
- VALUES('$exerciseId','".api_get_user_id()."','".$_course['id']."','incomplete','".api_get_session_id()."','".date('Y-m-d H:i:s')."',$safe_lp_id,$safe_lp_item_id)",__FILE__,__LINE__);
- }
+ VALUES('$exerciseId','" . api_get_user_id() . "','" . $_course['id'] . "','incomplete','" . api_get_session_id() . "','" . implode(',', $questionList) . "','" . date('Y-m-d H:i:s') . "',$safe_lp_id,$safe_lp_item_id)", __FILE__, __LINE__);
+ } else {
+ api_sql_query("INSERT INTO $stat_table (exe_exo_id,exe_user_id,exe_cours_id,status,session_id,start_date,orig_lp_id,orig_lp_item_id)
+ VALUES('$exerciseId','" . api_get_user_id() . "','" . $_course['id'] . "','incomplete','" . api_get_session_id() . "','" . date('Y-m-d H:i:s') . "',$safe_lp_id,$safe_lp_item_id)", __FILE__, __LINE__);
}
- }
+ }
+}
-if ($origin != 'learnpath') {
+if ($origin != 'learnpath') {
//so we are not in learnpath tool
- Display::display_footer();
-}
+ Display :: display_footer();
+}
\ No newline at end of file
diff --git a/main/exercice/exercise_result.php b/main/exercice/exercise_result.php
index 55b5610149..753f4024ea 100644
--- a/main/exercice/exercise_result.php
+++ b/main/exercice/exercise_result.php
@@ -29,7 +29,7 @@
* @author Olivier Brouckaert, main author
* @author Roan Embrechts, some refactoring
* @author Julio Montoya Armas switchable fill in blank option added
-* @version $Id: exercise_result.php 20089 2009-04-24 21:12:54Z cvargas1 $
+* @version $Id: exercise_result.php 20231 2009-04-30 18:08:12Z cvargas1 $
*
* @todo split more code up in functions, move functions to library?
*/
@@ -172,7 +172,7 @@ if (!empty($gradebook) && $gradebook=='view') {
$nameTools=get_lang('Exercice');
-$interbreadcrumb[]=array("url" => "exercice.php","name" => get_lang('Exercices'));
+$interbreadcrumb[]=array("url" => "exercice.php?gradebook=$gradebook","name" => get_lang('Exercices'));
$htmlHeadXtra[] = "
';
+ echo 'window.location.href = "exercise_submit_modal.php?hotspotcoord="+ hotspotcoord + "&hotspot="+ hotspot + "&choice="+ choice_js + "&exerciseId='.$exerciseId.'&questionnum='.$questionNum.'&exerciseType='.$exerciseType.'&origin='.$origin.'gradebook='.$gradebook.'";';
}
$choice=array();
diff --git a/main/exercice/export/exercise_import.inc.php b/main/exercice/export/exercise_import.inc.php
index 67d1a8985e..8d272e3c00 100755
--- a/main/exercice/export/exercise_import.inc.php
+++ b/main/exercice/export/exercise_import.inc.php
@@ -279,7 +279,7 @@ function import_exercise($file)
array_push ($backlog_message, 'QUESTION DATA INVALID !!!');
}
}
- $link = "".get_lang('See the exercise')."";
+ $link = "".get_lang('See the exercise')."";
array_push ($backlog_message, $link);
//delete the temp dir where the exercise was unzipped
diff --git a/main/gradebook/lib/be/studentpublicationlink.class.php b/main/gradebook/lib/be/studentpublicationlink.class.php
index d7423a5e09..e04d570e01 100644
--- a/main/gradebook/lib/be/studentpublicationlink.class.php
+++ b/main/gradebook/lib/be/studentpublicationlink.class.php
@@ -258,7 +258,7 @@ class StudentPublicationLink extends AbstractLink
.'main/work/work.php?cidReq='.$this->get_course_code().'&gradebook=view&curdirpath='.substr($this->exercise_data['url'], 1);
if (!api_is_allowed_to_create_course()
&& $this->calc_score(api_get_user_id()) == null) {
- $url .= '&curdirpath=/'.$this->get_ref_id();
+ //$url .= '&curdirpath=/'.$this->get_ref_id();
}
return $url;
}
|