[svn r20913] Fixed student display is longer than needed double empty line between multiple questions FS#4232

skala
Arthur Portugal 17 years ago
parent bc01ef328e
commit ad4f0571b8
  1. 7
      main/exercice/exercice_submit.php
  2. 10
      main/exercice/exercise.lib.php

@ -1,5 +1,5 @@
<?php
// $Id: exercice_submit.php 20776 2009-05-18 12:43:44Z pcool $
// $Id: exercice_submit.php 20913 2009-05-20 16:48:25Z aportugal $
/*
==============================================================================
@ -43,7 +43,7 @@
* @package dokeos.exercise
* @author Olivier Brouckaert
* @author Julio Montoya multiple fill in blank option added
* @version $Id: exercice_submit.php 20776 2009-05-18 12:43:44Z pcool $
* @version $Id: exercice_submit.php 20913 2009-05-20 16:48:25Z aportugal $
*/
include ('exercise.class.php');
@ -1077,6 +1077,7 @@ if (!empty ($error)) {
echo "
<!-- <button type='submit' name='buttonCancel' class='cancel'>" . get_lang('Cancel') . "</button>
&nbsp;&nbsp; //--><br />";
echo '<div style="padding-left:10px; margin-top:-10px;">';
$submit_btn = "<button class='next' type='submit' name='submit'>";
// $submit_btn.=get_lang('ValidateAnswer');
if ($objExercise->selectFeedbackType() == 1 && $_SESSION['objExercise']->selectType() == 2) {
@ -1107,7 +1108,7 @@ if (!empty ($error)) {
</table></form>";
$b = 2;
}
echo '</div>';
if ($_configuration['live_exercise_tracking'] == true && $exerciseFeedbackType != 1) {
//if($questionNum < 2){
if ($table_recorded_not_exist) {

@ -1,4 +1,4 @@
<?php // $Id: exercise.lib.php 20860 2009-05-20 00:09:00Z cvargas1 $
<?php // $Id: exercise.lib.php 20913 2009-05-20 16:48:25Z aportugal $
/*
==============================================================================
@ -29,7 +29,7 @@
* shows a question and its answers
* @package dokeos.exercise
* @author Olivier Brouckaert <oli.brouckaert@skynet.be>
* @version $Id: exercise.lib.php 20860 2009-05-20 00:09:00Z cvargas1 $
* @version $Id: exercise.lib.php 20913 2009-05-20 16:48:25Z aportugal $
*/
/**
@ -205,11 +205,11 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false,$current_it
} elseif($answerType == MULTIPLE_ANSWER) {
// multiple answers
$s.="<tr >
<td ><div style='float:left;margin-top:10px;margin-right:10px;margin-left:5px'>
$s.="<tr>
<td><div style='float:left;margin-top:2px;margin-right:10px;margin-left:5px'>
<input class='checkbox' type='checkbox' name='choice[".$questionId."][".$answerId."]' value='1'>
<input type='hidden' name='choice2[".$questionId."][0]' value='0'>
</div><div style='float:rigth;margin-top:10px;margin-right:10px;margin-left:30px'>";
</div><div style='float:rigth;margin-top:2px;margin-right:10px;margin-left:30px'>";
$answer = api_parse_tex($answer);
$s.=$answer;
$s.="</div></td></tr>";

Loading…
Cancel
Save