diff --git a/mod/data/field/date/field.class.php b/mod/data/field/date/field.class.php
index 4bffcc377d6..313058c2b53 100644
--- a/mod/data/field/date/field.class.php
+++ b/mod/data/field/date/field.class.php
@@ -44,12 +44,9 @@ class data_field_date extends data_field_base {
}
$str = '
';
- $dayselector = html_writer::label(get_string('days'), 'menufield_'.$this->field->id.'_day', false, array('class' => 'accesshide'))
- . html_writer::select_time('days', 'field_'.$this->field->id.'_day', $content);
- $monthselector = html_writer::label(get_string('months'), 'menufield_'.$this->field->id.'_month', false, array('class' => 'accesshide'))
- . html_writer::select_time('months', 'field_'.$this->field->id.'_month', $content);
- $yearselector = html_writer::label(get_string('years'), 'menufield_'.$this->field->id.'_year', false, array('class' => 'accesshide'))
- . html_writer::select_time('years', 'field_'.$this->field->id.'_year', $content);
+ $dayselector = html_writer::select_time('days', 'field_'.$this->field->id.'_day', $content);
+ $monthselector = html_writer::select_time('months', 'field_'.$this->field->id.'_month', $content);
+ $yearselector = html_writer::select_time('years', 'field_'.$this->field->id.'_year', $content);
$str .= $dayselector . $monthselector . $yearselector;
$str .= '
';
@@ -58,11 +55,8 @@ class data_field_date extends data_field_base {
//Enable the following three functions once core API issues have been addressed.
function display_search_field($value=0) {
- $selectors = html_writer::label(get_string('days'), 'menuf_'.$this->field->id.'_d', false, array('class' => 'accesshide'))
- . html_writer::select_time('days', 'f_'.$this->field->id.'_d', $value)
- . html_writer::label(get_string('months'), 'menuf_'.$this->field->id.'_m', false, array('class' => 'accesshide'))
+ $selectors = html_writer::select_time('days', 'f_'.$this->field->id.'_d', $value)
. html_writer::select_time('months', 'f_'.$this->field->id.'_m', $value)
- . html_writer::label(get_string('years'), 'menuf_'.$this->field->id.'_y', false, array('class' => 'accesshide'))
. html_writer::select_time('years', 'f_'.$this->field->id.'_y', $value);
return $selectors;
diff --git a/mod/data/field/file/field.class.php b/mod/data/field/file/field.class.php
index 0ed8cb9c457..51f9a629609 100644
--- a/mod/data/field/file/field.class.php
+++ b/mod/data/field/file/field.class.php
@@ -91,7 +91,7 @@ class data_field_file extends data_field_base {
}
function display_search_field($value = '') {
- return 'field->id . '">' . $this->field->name . ' ' .
+ return '' . $this->field->name . ' ' .
' ';
}
diff --git a/mod/data/field/file/mod.html b/mod/data/field/file/mod.html
index 03584336ce8..73815b5abbe 100644
--- a/mod/data/field/file/mod.html
+++ b/mod/data/field/file/mod.html
@@ -14,7 +14,6 @@
maxbytes = $DB->get_field('course', 'maxbytes', array('id'=>$this->data->course));
$choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
- echo html_writer::label($this->field->param3, 'menuparam3', false, array('class' => 'accesshide'));
echo html_writer::select($choices, 'param3', $this->field->param3, false, array('id' => 'param3'));
?>
diff --git a/mod/data/field/picture/mod.html b/mod/data/field/picture/mod.html
index f48b4cbbda7..9dd1583f6b3 100644
--- a/mod/data/field/picture/mod.html
+++ b/mod/data/field/picture/mod.html
@@ -46,7 +46,6 @@
maxbytes = $DB->get_field('course', 'maxbytes', array('id'=>$this->data->course));
$choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
- echo html_writer::label($this->field->param3, 'menuparam3', false, array('class' => 'accesshide'));
echo html_writer::select($choices, 'param3', $this->field->param3, false, array('id'=>'param3'));
?>
diff --git a/mod/data/field/url/mod.html b/mod/data/field/url/mod.html
index 0757afc96e6..f39d376daeb 100644
--- a/mod/data/field/url/mod.html
+++ b/mod/data/field/url/mod.html
@@ -8,7 +8,7 @@
-
+
diff --git a/mod/data/lib.php b/mod/data/lib.php
index 0eeb8eb212e..012b5323f5b 100644
--- a/mod/data/lib.php
+++ b/mod/data/lib.php
@@ -243,6 +243,7 @@ class data_field_base { // Base class for Database Field Types (see field/*/
}
$str = '';
+ $str .= ''.$this->field->description.' ';
$str .= ' ';
$str .= '
';
@@ -1671,9 +1672,9 @@ function data_print_preference_form($data, $perpage, $search, $sort='', $order='
$fn = !empty($search_array[DATA_FIRSTNAME]->data) ? $search_array[DATA_FIRSTNAME]->data : '';
$ln = !empty($search_array[DATA_LASTNAME]->data) ? $search_array[DATA_LASTNAME]->data : '';
$patterns[] = '/##firstname##/';
- $replacement[] = ' ';
+ $replacement[] = ''.get_string('authorfirstname', 'data').' ';
$patterns[] = '/##lastname##/';
- $replacement[] = ' ';
+ $replacement[] = ''.get_string('authorfirstname', 'data').' ';
// actual replacement of the tags
$newtext = preg_replace($patterns, $replacement, $data->asearchtemplate);