';
echo ' typ.'_'.$item->id.'" '.
'size="10" '.
'maxlength="10" '.
diff --git a/mod/feedback/item/textarea/lib.php b/mod/feedback/item/textarea/lib.php
index 74605bc87c8..5a09a6aada7 100644
--- a/mod/feedback/item/textarea/lib.php
+++ b/mod/feedback/item/textarea/lib.php
@@ -190,7 +190,7 @@ class feedback_item_textarea extends feedback_item_base {
return $row_offset;
}
- /**
+ /**
* print the item at the edit-page of feedback
*
* @global object
@@ -206,7 +206,9 @@ class feedback_item_textarea extends feedback_item_base {
$presentation = explode ("|", $item->presentation);
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
+ $inputname = $item->typ . '_' . $item->id;
echo '';
+ echo '';
echo '('.$item->label.') ';
echo format_text($item->name.$requiredmark, true, false, false);
if ($item->dependitem) {
@@ -216,12 +218,14 @@ class feedback_item_textarea extends feedback_item_base {
echo '';
}
}
+ echo ' ';
echo '
';
//print the presentation
echo '';
echo '';
- echo '';
@@ -229,7 +233,7 @@ class feedback_item_textarea extends feedback_item_base {
echo '
';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object
@@ -252,14 +256,18 @@ class feedback_item_textarea extends feedback_item_base {
$requiredmark = ($item->required == 1) ? $str_required_mark :'';
//print the question and label
+ $inputname = $item->typ . '_' . $item->id;
echo '';
+ echo '';
echo format_text($item->name . $requiredmark, true, false, false);
+ echo ' ';
echo '
';
//print the presentation
echo '';
echo '';
- echo '
';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object
diff --git a/mod/feedback/item/textfield/lib.php b/mod/feedback/item/textfield/lib.php
index 0d151ae12a5..505531d9b27 100644
--- a/mod/feedback/item/textfield/lib.php
+++ b/mod/feedback/item/textfield/lib.php
@@ -179,7 +179,7 @@ class feedback_item_textfield extends feedback_item_base {
return $row_offset;
}
- /**
+ /**
* print the item at the edit-page of feedback
*
* @global object
@@ -194,7 +194,9 @@ class feedback_item_textfield extends feedback_item_base {
$presentation = explode ("|", $item->presentation);
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
+ $inputname = $item->typ . '_' . $item->id;
echo '';
+ echo '';
echo '('.$item->label.') ';
echo format_text($item->name.$requiredmark, true, false, false);
if ($item->dependitem) {
@@ -204,13 +206,15 @@ class feedback_item_textfield extends feedback_item_base {
echo '';
}
}
+ echo ' ';
echo '
';
//print the presentation
echo '';
echo '';
echo ' typ.'_'.$item->id.'" '.
+ 'id="'.$inputname.'" '.
+ 'name="'.$inputname.'" '.
'size="'.$presentation[0].'" '.
'maxlength="'.$presentation[1].'" '.
'value="" />';
@@ -218,7 +222,7 @@ class feedback_item_textfield extends feedback_item_base {
echo '
';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object
@@ -241,15 +245,19 @@ class feedback_item_textfield extends feedback_item_base {
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
+ $inputname = $item->typ . '_' . $item->id;
echo '';
+ echo '';
echo format_text($item->name.$requiredmark, true, false, false);
+ echo ' ';
echo '
';
//print the presentation
echo '';
echo '';
echo ' typ.'_'.$item->id.'" '.
+ 'id="'.$inputname.'" '.
+ 'name="'.$inputname.'" '.
'size="'.$presentation[0].'" '.
'maxlength="'.$presentation[1].'" '.
'value="'.$value.'" />';
@@ -257,7 +265,7 @@ class feedback_item_textfield extends feedback_item_base {
echo '
';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object