[svn r22257] Minor - some more space for questions

skala
Julio Montoya 17 years ago
parent 335018c44d
commit 1e8c404e0f
  1. 4
      main/exercice/matching.class.php
  2. 6
      main/exercice/question.class.php

@ -147,7 +147,7 @@ class Matching extends Question {
$puce->freeze();
$group[] = $puce;
$group[] = FormValidator :: createElement ('text', 'answer['.$i.']',null, 'size="40" style="margin-left: 0em;"');
$group[] = FormValidator :: createElement ('text', 'answer['.$i.']',null, 'size="60" style="margin-left: 0em;"');
$group[] = FormValidator :: createElement ('select', 'matches['.$i.']',null,$a_matches);
$group[] = FormValidator :: createElement ('text', 'weighting['.$i.']',null, 'style="vertical-align:middle;margin-left: 0em;" size="5" value="10"');
$form -> addGroup($group, null, null, '</td><td width="0">');
@ -195,7 +195,7 @@ class Matching extends Question {
$puce = FormValidator :: createElement ('text', null,null,'value="'.chr(64+$i).'"');
$puce->freeze();
$group[] = $puce;
$group[] = FormValidator :: createElement ('text', 'option['.$i.']',null, 'size="40" style="margin-left: 0em;"');
$group[] = FormValidator :: createElement ('text', 'option['.$i.']',null, 'size="60" style="margin-left: 0em;"');
$form -> addGroup($group, null, null, '</td><td width="0">');
$form -> addElement ('html', '</td></tr>');
}

@ -1,4 +1,4 @@
<?php // $Id: question.class.php 22250 2009-07-20 16:41:20Z ivantcholakov $
<?php // $Id: question.class.php 22257 2009-07-20 17:50:09Z juliomontoya $
/*
==============================================================================
@ -28,7 +28,7 @@
* File containing the Question class.
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: question.class.php 22250 2009-07-20 16:41:20Z ivantcholakov $
* @version $Id: question.class.php 22257 2009-07-20 17:50:09Z juliomontoya $
*/
@ -967,7 +967,7 @@ abstract class Question
$renderer = $form->defaultRenderer();
$form->addElement('html','<div class="form">');
// question name
$form->addElement('text','questionName','<span class="form_required">*</span> '.get_lang('Question'),'size="60"');
$form->addElement('text','questionName','<span class="form_required">*</span> '.get_lang('Question'),'size="80"');
//$form->applyFilter('questionName','html_filter');
//$radios_results_enabled[] = $form->createElement('static', null, null, null);

Loading…
Cancel
Save