diff --git a/mod/data/add.php b/mod/data/add.php index 3d025494a34..4090a62fc7f 100755 --- a/mod/data/add.php +++ b/mod/data/add.php @@ -214,7 +214,7 @@ print_simple_box_start('center','80%'); if (!$rid){ - print_heading(get_string('newentry','data'),2); + print_heading(get_string('newentry','data'), '', 2); } /****************************************** diff --git a/mod/data/field/checkbox/field.class.php b/mod/data/field/checkbox/field.class.php index 47ce05d3f20..3deb3218b2d 100755 --- a/mod/data/field/checkbox/field.class.php +++ b/mod/data/field/checkbox/field.class.php @@ -80,8 +80,8 @@ class data_field_checkbox extends data_field_base { foreach (explode("\n", $field->param1) as $checkbox) { $checkbox = ltrim(rtrim($checkbox)); - $str .= 'id . '[]" '; + $str .= 'value="' . $checkbox . '" '; if (array_search($checkbox, $content) !== false) { // Selected by user. diff --git a/mod/data/field/checkbox/mod.html b/mod/data/field/checkbox/mod.html index 7111842a828..0b73e09a783 100755 --- a/mod/data/field/checkbox/mod.html +++ b/mod/data/field/checkbox/mod.html @@ -1,11 +1,11 @@ -
| + | - + name()); ?> | |
| : | ||
| : | -+ | |
| - - + + | ||
| + | - + name()); ?> | |
| : | ||
| - | + | |
| - - + + | ||
|
- | |||||||||||||||||||||
| : | |||||||||||||||||||||
| : | |||||||||||||||||||||
| : | - | ||||||||||||||||||||
| : | - | ||||||||||||||||||||
| : | - | ||||||||||||||||||||
| : | - | ||||||||||||||||||||
| : | - maxbytes, $course->maxbytes); - choose_from_menu ($choices, "param3", $field->param3, ""); - ?> - | +||||||||||||||||||||
| + name()); ?> + | +|
| + : | + | +
| + : + | ++ + | +
| + : + | ++ + | +
| + : + | ++ + | +
| + : | + | +
| + : + | ++ + | +
| + : + | ++ maxbytes, $course->maxbytes); + choose_from_menu ($choices, "param3", $field->param3, ""); + ?> + | +
| + | + + + + + + + |
| - - - - - | +|
| + | - + name()); ?> | |
| : | -+ | |
| - - + + | ||
| + | - + name()); ?> | |
| - - + + | ||
| + | - + name()); ?> | |
| : | ||
| - - + + | ||
| ';
+ $str = ' ';
+ $str .= ' ';
@@ -215,9 +215,11 @@
else if ($mode != 'display'){ //display main form - add new, update, delete
- echo '
';
echo '';
- echo ' | ';
///Print Fieldname Column
diff --git a/mod/data/lib.php b/mod/data/lib.php
index f3932c03fd1..2a734508b4e 100755
--- a/mod/data/lib.php
+++ b/mod/data/lib.php
@@ -303,10 +303,11 @@ function data_generate_empty_add_form($id, $rid=0){
//this only applies to add and single template
$str .= '';
- $str .= ' ';
}
@@ -835,18 +837,18 @@ function data_print_preference_form($data, $perpage, $search, $sort='', $order='
echo '';
echo '
| ||||||||||||||||||||||||||||||