From 4abeb7c731c72de5f1425c76f137d13a513fbb6e Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 5 Apr 2012 16:23:51 +0200 Subject: [PATCH] Minor style corrections --- main/gradebook/lib/fe/catform.class.php | 7 ++----- main/gradebook/lib/fe/displaygradebook.php | 15 +++++++++------ main/gradebook/user_stats.php | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/main/gradebook/lib/fe/catform.class.php b/main/gradebook/lib/fe/catform.class.php index a3b4e016a6..85f2dcaf6e 100644 --- a/main/gradebook/lib/fe/catform.class.php +++ b/main/gradebook/lib/fe/catform.class.php @@ -189,9 +189,8 @@ class CatForm extends FormValidator { $content .= Display::tag('li', $skill['name'].'', array('id'=>'skill_'.$skill['id'], 'class'=>'bit-box')); } } - $this->addElement('html', '
'. - Display::tag('ul', $content, array('class'=>'holder holder_simple')).'
' - ); + $this->addElement('label', null, Display::tag('ul', $content, array('class'=>'holder holder_simple'))); + } if (isset($this->category_object) && $this->category_object->get_parent_id() == 0) { @@ -208,8 +207,6 @@ class CatForm extends FormValidator { $this->addElement('hidden','hid_parent_id'); $this->addElement('textarea', 'description', get_lang('Description'),array('rows'=>'3','cols' => '34')); - - if ($this->form_type == self :: TYPE_ADD) { $this->addElement('style_submit_button', null, get_lang('AddCategory'), 'class="save"'); } else { diff --git a/main/gradebook/lib/fe/displaygradebook.php b/main/gradebook/lib/fe/displaygradebook.php index b28c5fb7ee..f128e8e16c 100644 --- a/main/gradebook/lib/fe/displaygradebook.php +++ b/main/gradebook/lib/fe/displaygradebook.php @@ -650,12 +650,15 @@ class DisplayGradebook //limit display width to 200px $img_attributes .= 'width="200" '; } - $info = '
'; - $info.= get_lang('Name') . ' : ' . api_get_person_name($user['firstname'], $user['lastname']) . '
'; - $info.= get_lang('Email') . ' : ' . $user['email'] . '
'; - $info.= get_lang('TotalUser') . ' : ' . $scorecourse_display . '
'; - $info.= '
'; - $info.= '
'; + $info = '
'; + $info .= '
'; + $info .= '
'; + $info .= '
'; + $info .= get_lang('Name') . ' : ' . api_get_person_name($user['firstname'], $user['lastname']) . '
'; + $info .= get_lang('Email') . ' : ' . $user['email'] . '
'; + $info .= get_lang('TotalUser') . ' : ' . $scorecourse_display . ''; + $info .= '
'; + $info .= '
'; //$scoreinfo = get_lang('StatsStudent') . ' : '.api_get_person_name($user['lastname'], $user['firstname']).'
'; //$scoreinfo.= '
'.get_lang('Total') . ' : ' . $scorecourse_display . ''; diff --git a/main/gradebook/user_stats.php b/main/gradebook/user_stats.php index 729717648d..88c15ad2ee 100644 --- a/main/gradebook/user_stats.php +++ b/main/gradebook/user_stats.php @@ -110,7 +110,7 @@ $actions.= '