From 051aad681b9a5f3b696724b5b8556c2b45898107 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 8 Jan 2007 01:09:54 +0000 Subject: [PATCH] MDL-7861, fixing xhtml strict bugs --- mod/data/field.php | 14 ++++++-------- mod/data/lib.php | 2 +- theme/standard/styles_layout.css | 8 ++++++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/mod/data/field.php b/mod/data/field.php index a4669b41b7..f083022905 100755 --- a/mod/data/field.php +++ b/mod/data/field.php @@ -267,21 +267,18 @@ $table->data[] = array( - - ''.$field->field->name.'', - $field->image().' '.get_string($field->type, 'data'), shorten_text($field->field->description, 30), ''. - ''.get_string('edit').''. + ''.get_string('edit').''. ' '. ''. - ''.get_string('delete').'' + ''.get_string('delete').'' ); } @@ -290,7 +287,7 @@ } - echo '
'; + echo '
'; echo get_string('newfield','data').': '; popup_form($CFG->wwwroot.'/mod/data/field.php?d='.$data->id.'&mode=new&sesskey='. sesskey().'&newtype=', $menufield, 'fieldform', '', 'choose'); @@ -298,8 +295,9 @@ echo '
'; if ($fields = get_records('data_fields','dataid',$data->id)) { - echo '
'; + echo '
'; echo '
'; + echo '
'; echo ''; echo ''; echo ''; @@ -319,7 +317,7 @@ 1 => get_string('descending', 'data')); choose_from_menu($options, 'defaultsortdir', $data->defaultsortdir, ''); echo ''; - + echo '
'; echo '
'; echo '
'; } diff --git a/mod/data/lib.php b/mod/data/lib.php index 3ca39f9792..3e0052b7a8 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -303,7 +303,7 @@ class data_field_base { /// Base class for Database Field Types (see field/* $str = ''; $str .= 'iconheight.'" width="'.$this->iconwidth.'" border="0" alt="'.$this->type.'" title="'.$this->type.'" />'; + $str .= 'height="'.$this->iconheight.'" width="'.$this->iconwidth.'" alt="'.$this->type.'" title="'.$this->type.'" />'; return $str; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 8f803641f9..cd0a90faf0 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -2023,6 +2023,14 @@ body#user-index .rolesform { *** Modules: Choice ***/ +/*** + *** Modules: Data + ***/ +.fieldadd, +.sortdefault { + text-align:center; +} + /*** *** Modules: Forum ***/ -- 2.39.5