[svn r13238] Small aesthetic changes

skala
Yannick Warnier 19 years ago
parent 1629999b4f
commit d24fbbee95
  1. 8
      main/exercice/export/scorm/scorm_classes.php
  2. 7
      main/exercice/export/scorm/scorm_export.php

@ -104,13 +104,13 @@ class ScormQuestion extends Question
/**
* Returns an HTML-formatted question
*/
function getQuestionHtml()
function getQuestionHTML()
{
$title = $this->selectTitle();
$description = $this->selectDescription();
$cols = 0;
$cols = 2;
$s='<tr>' .
'<td valign="top" colspan="'.$cols.'" id="question_'.$this->id.'_title">' . "\n" .
'<td colspan="'.$cols.'" id="question_'.$this->id.'_title" valign="middle" style="background-color:#d6d6d6;">' . "\n" .
api_parse_tex($title).
'</td>' . "\n" .
'</tr>' . "\n" .
@ -440,7 +440,7 @@ class ScormAnswerFree extends Answer
// some javascript must be added for that kind of questions
$html .= '<tr>' . "\n"
. '<td>' . "\n"
. '<textarea name="question_'.$qId.'_free" id="question_'.$qId.'_free" rows="20" cols="200"></textarea>' . "\n"
. '<textarea name="question_'.$qId.'_free" id="question_'.$qId.'_free" rows="20" cols="100"></textarea>' . "\n"
. '</td>' . "\n"
. '</tr>' . "\n";
$html .= '</table></td></tr>' . "\n";

@ -519,7 +519,8 @@ class ScormSection
{
return '<body>'. "\n".
'<h1>'.$this->exercise->selectTitle().'</h1>'."\n".
'<form id="dokeos_scorm_form" method="post" action="">'."\n";
'<form id="dokeos_scorm_form" method="post" action="">'."\n".
'<table width="100%">'."\n";
}
/**
@ -528,7 +529,7 @@ class ScormSection
*/
function end_body()
{
return '<br /><input type="button" id="dokeos_scorm_submit" name="dokeos_scorm_submit" value="OK" /></form>'."\n".'</body>'. "\n";
return '</table><br /><input type="button" id="dokeos_scorm_submit" name="dokeos_scorm_submit" value="OK" /></form>'."\n".'</body>'. "\n";
}
/**
@ -582,7 +583,7 @@ class ScormSection
{
list($jstmp,$htmltmp)= export_question($q, false);
$js .= $jstmp."\n";
$html .= $htmltmp."<br /><br />";
$html .= $htmltmp."\n";
}
return array($js,$html);
}

Loading…
Cancel
Save