From: trobb Date: Tue, 25 Nov 2003 23:41:08 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bbc8a2ade58758954482e1d7d551bbcc2e21eecc;p=moodle.git *** empty log message *** --- diff --git a/lang/en/quiz.php b/lang/en/quiz.php index 00fd004263..5e34cb73cb 100644 --- a/lang/en/quiz.php +++ b/lang/en/quiz.php @@ -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%%
Instead, they add up to $a%%
Do you want to go back and fix this question?'; $string['fractionsnomax'] = 'One of the answers should be 100%%, so that it is
possible to get a full grade for this question.
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'; diff --git a/mod/quiz/report/fullstat/report.php b/mod/quiz/report/fullstat/report.php index 9a3c4eef0c..d86b2a99ec 100755 --- a/mod/quiz/report/fullstat/report.php +++ b/mod/quiz/report/fullstat/report.php @@ -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; }