]> git.mjollnir.org Git - moodle.git/commitdiff
*** empty log message ***
authortrobb <trobb>
Tue, 25 Nov 2003 23:41:08 +0000 (23:41 +0000)
committertrobb <trobb>
Tue, 25 Nov 2003 23:41:08 +0000 (23:41 +0000)
lang/en/quiz.php
mod/quiz/report/fullstat/report.php

index 00fd004263ed84dfcb52b958ddd2267bac057de8..5e34cb73cb458d42dc5b44113da72d86b13c30d5 100644 (file)
@@ -72,6 +72,7 @@ $string['filloutthreequestions'] = 'You must fill out at least three questions.
 $string['fillouttwochoices'] = 'You must fill out at least two choices.  Choices left blank will not be used.';
 $string['fractionsaddwrong'] = 'The positive grades you have chosen do not add up to 100%%<BR>Instead, they add up to $a%%<BR>Do you want to go back and fix this question?';
 $string['fractionsnomax'] = 'One of the answers should be 100%%, so that it is<BR>possible to get a full grade for this question.<BR>Do you want to go back and fix this question?';
+$string['grade'] = 'Grade';
 $string['gradeaverage'] = 'Average grade';
 $string['gradehighest'] = 'Highest grade';
 $string['grademethod'] = 'Grading method';
index 9a3c4eef0c66519b66ec451918bf4a08a7c73f1c..d86b2a99ecebc6837fd3b78e486170bf27610cac 100755 (executable)
@@ -11,8 +11,9 @@ class quiz_report extends quiz_default_report {
     function display($quiz, $cm, $course) {     /// This function just displays the report
 
     global $CFG;
-    global $download, $quests,$qtally,$table_colcount,$max_choices, $analysis,$qs_in_order,$total_user_count,$match_number, $thismin,$thismax,$myxls,$match_qs,$formatbc,$workbook,$strquestion;
+    global $download, $quests,$qtally,$table_colcount,$max_choices, $analysis,$qs_in_order,$total_user_count,$match_number, $thismin,$thismax,$myxls,$match_qs,$formatbc,$workbook,$strquestion,$showtext,$debug;
     optional_variable($download, "");
+    optional_variable($debug, "");
 //$debug = 1;
 
 /*
@@ -24,6 +25,8 @@ $string['itemanal'] = "Item Response Analysis";
 $string['listitems'] = "Listing of Items in This Quiz";
 $string['noresponse'] = "No Response";
 $string['percentcorrect'] = "Percent Correct";
+$string['question'] = "Question";
+$string['withsummary'] = "with Summary Statistics";
 $string['discrimination'] = "Discrim. Index";
 $string[''] = "";
 */
@@ -41,6 +44,7 @@ $string[''] = "";
         $strdiscrimination = get_string("discrimination", "quiz");
 //        $str = get_string("qr", "quiz");
 
+    //Get the question ids
     //$showtext causes M/C text to whos in top table.  This could be made into a user toggle if we want to complicate matters
     $showtext = 1;
     $containsMCTF = 0;  //used to toggle title in final listing
@@ -895,7 +899,8 @@ function qr_make_footers(){
 function qr_make_pct($this_correct,$totusers){
     global  $qs_in_order,$qtally,$quests,$total_user_count;
     if($this_correct>0 and $totusers > 0){
-        $pct_cor =round((($this_correct/$totusers)*100),1);
+//        $pct_cor =round((($this_correct/$totusers)*100),1);
+        $pct_cor =(floor(($this_correct/$totusers)*1000)/10);
     } else {
         $pct_cor = 0;
     }