From d71bc1ab61ac33f849394bab1e1141094ff9d12b Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 9 Jan 2007 01:38:24 +0000 Subject: [PATCH] MDL-7861, fixing xhtml strict problems --- mod/choice/lib.php | 26 +++++++++++++------------- theme/standard/styles_layout.css | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 5fb434b7ff0..bc13adc526c 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -170,7 +170,7 @@ function choice_show_form($choice, $user, $cm) { switch ($choice->display) { case CHOICE_DISPLAY_HORIZONTAL: - echo ""; + echo "
"; foreach ($cdisplay as $cd) { echo "
"; @@ -188,7 +188,7 @@ function choice_show_form($choice, $user, $cm) { case CHOICE_DISPLAY_VERTICAL: $displayoptions->para = false; - echo ""; + echo "
"; foreach ($cdisplay as $cd) { echo "
"; echo "optionid."\" alt=\"".strip_tags(format_text($cd->text))."\"". $cd->checked.$cd->disabled." />"; @@ -220,14 +220,14 @@ function choice_show_form($choice, $user, $cm) { break; } //show save choice button - echo "
"; + echo '
'; echo "id\" />"; if (!isguest()) { //don't show save button if the logged in user is the guest user. echo ""; } else { print_string('havetologin', 'choice'); } - echo "
"; + echo ""; } function choice_user_submit_response($formanswer, $choice, $userid, $courseid, $cm) { @@ -362,14 +362,14 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { echo ''; } - echo ""; + echo "
"; echo ""; $count = 0; foreach ($useranswer as $optionid => $userlist) { if ($optionid) { - echo ""; if (has_capability('mod/choice:readresponses', $context) && $optionid!=0) { - echo ''; + echo ''; } echo "
"; + echo ""; } else if ($choice->showunanswered) { - echo ""; + echo ""; } else { continue; } @@ -382,9 +382,9 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { $count = 0; foreach ($useranswer as $optionid => $userlist) { if ($optionid) { - echo ""; + echo ""; } else if ($choice->showunanswered) { - echo ""; + echo ""; } else { continue; } @@ -397,7 +397,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { if (!($optionid==0 && has_capability('mod/choice:readresponses', $context, $user->id))) { // make sure admins and hidden teachers are not shown in not answered yet column. echo "
"; print_user_picture($user->id, $course->id, $user->picture); @@ -467,14 +467,14 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { $tablewidth = (int) (100.0 / count($useranswer)); - echo ""; + echo "
"; echo ""; $count = 0; foreach ($useranswer as $optionid => $userlist) { if ($optionid) { - echo "
"; + echo ""; } else if ($choice->showunanswered) { - echo ""; + echo ""; } else { continue; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 9ae12446cd4..ad146fde7a0 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -2077,6 +2077,24 @@ body#user-index .rolesform { /*** *** Modules: Choice ***/ +.button { + text-align:center; +} + +.attemptcell { + width:5px; + white-space: nowrap; +} + +.anonymous { + margin-left:auto; + margin-right:auto; +} + +.names { + margin-left:auto; + margin-right:auto; +} /*** *** Modules: Data