From: toyomoyo Date: Fri, 5 Jan 2007 04:57:58 +0000 (+0000) Subject: MDL-7861, fixing xhtml strict problems X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d9cb14b8855aaab21389105b5ef607c716bf9f4d;p=moodle.git MDL-7861, fixing xhtml strict problems --- diff --git a/lib/tablelib.php b/lib/tablelib.php index aa7c37d2b6..6db74ab2e3 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -527,7 +527,8 @@ class flexible_table { echo ''.$icon_hide.''; } else { - echo 'make_styles_string($this->column_style[$column]).' scope="col">'.$this->headers[$index].$icon_sort.'
'.$icon_hide.'
'; + // took out nowrap for accessibility, might need replacement + echo 'make_styles_string($this->column_style[$column]).' scope="col">'.$this->headers[$index].$icon_sort.'
'.$icon_hide.'
'; } } diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 65f75ad51e..3a989ad451 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -886,6 +886,7 @@ class assignment_base { echo ''; echo ''; echo '
'; + echo '
'; echo ''; echo ''; echo ''; @@ -929,6 +930,7 @@ class assignment_base { echo ''; } echo ''; + echo '
'; echo '
'; $customfeedback = $this->custom_feedbackform($submission, true); @@ -1060,7 +1062,7 @@ class assignment_base { $table->set_attribute('id', 'attempts'); $table->set_attribute('class', 'submissions'); $table->set_attribute('width', '90%'); - $table->set_attribute('align', 'center'); + //$table->set_attribute('align', 'center'); // Start working -- this is necessary as soon as the niceties are over $table->setup(); @@ -1187,16 +1189,18 @@ class assignment_base { /// Print quickgrade form around the table if ($quickgrade){ echo '
'; + echo '
'; echo ''; echo ''; echo ''; - echo '

'; + echo '
'; } $table->print_html(); /// Print the whole table if ($quickgrade){ - echo '

'; + echo '
'; + echo '
'; echo '
'; } /// End of fast grading form @@ -1204,8 +1208,9 @@ class assignment_base { /// Mini form for setting user preference echo '
'; echo '
'; + echo '
'; echo ''; - echo ''; + echo '
'; echo ''; @@ -1229,6 +1234,7 @@ class assignment_base { echo '
'; echo ''; echo ':'; echo ''; echo '
'; + echo '
'; echo '
'; ///End of mini form print_footer($this->course); diff --git a/mod/assignment/type/online/assignment.class.php b/mod/assignment/type/online/assignment.class.php index 0c510f11f5..6215b033be 100644 --- a/mod/assignment/type/online/assignment.class.php +++ b/mod/assignment/type/online/assignment.class.php @@ -100,9 +100,9 @@ class assignment_online extends assignment_base { if ($submission) { echo format_text($submission->data1, $submission->data2); } else if (!has_capability('mod/assignment:submit', $context)) { //fix for #4604 - echo '
'. get_string('guestnosubmit', 'assignment').'
'; + echo '
'. get_string('guestnosubmit', 'assignment').'
'; } else if ($this->isopen()){ //fix for #4206 - echo '
'.get_string('emptysubmission', 'assignment').'
'; + echo '
'.get_string('emptysubmission', 'assignment').'
'; } if ($editable) { print_single_button('view.php', array('id'=>$this->cm->id, 'edit'=>'1'), diff --git a/mod/assignment/type/upload/assignment.class.php b/mod/assignment/type/upload/assignment.class.php index 2d4e4f58a3..f6de3a6677 100644 --- a/mod/assignment/type/upload/assignment.class.php +++ b/mod/assignment/type/upload/assignment.class.php @@ -147,16 +147,18 @@ class assignment_upload extends assignment_base { } if ($this->can_upload_file($submission)) { - echo '
'; + echo '
'; echo '
'; + echo '
'; echo "

$struploadafile ($strmaxsize)

"; echo ''; echo ''; require_once($CFG->libdir.'/uploadlib.php'); upload_print_form_fragment(1,array('newfile'),null,false,null,0,$this->assignment->maxbytes,false); echo ''; + echo '
'; echo '
'; - echo '
'; + echo ''; echo '
'; } @@ -173,9 +175,9 @@ class assignment_upload extends assignment_base { } if ($this->can_update_notes($submission)) { $options = array ('id'=>$this->cm->id, 'action'=>'editnotes'); - echo '
'; + echo '
'; print_single_button('upload.php', $options, get_string('edit'), 'post', '_self', false); - echo '
'; + echo ''; } } @@ -187,13 +189,15 @@ class assignment_upload extends assignment_base { if ($this->can_finalize($submission)) { //print final submit button print_heading(get_string('submitformarking','assignment'), '', 3); - echo '
'; + echo '
'; echo '
'; + echo '
'; echo ''; echo ''; echo ''; + echo '
'; echo '
'; - echo '
'; + echo ''; } else if ($this->is_finalized($submission)) { print_heading(get_string('submitedformarking','assignment'), '', 3); } else { diff --git a/mod/assignment/type/uploadsingle/assignment.class.php b/mod/assignment/type/uploadsingle/assignment.class.php index 25e7fd5d00..1930ef3a03 100644 --- a/mod/assignment/type/uploadsingle/assignment.class.php +++ b/mod/assignment/type/uploadsingle/assignment.class.php @@ -83,16 +83,18 @@ class assignment_uploadsingle extends assignment_base { $struploadafile = get_string("uploadafile"); $strmaxsize = get_string("maxsize", "", display_size($this->assignment->maxbytes)); - echo '
'; + echo '
'; echo '
wwwroot/mod/assignment/upload.php\">"; + echo '
'; echo "

$struploadafile ($strmaxsize)

"; echo ''; require_once($CFG->libdir.'/uploadlib.php'); upload_print_form_fragment(1,array('newfile'),false,null,0,$this->assignment->maxbytes,false); echo ''; + echo '
'; echo '
'; - echo '
'; + echo ''; }