]> git.mjollnir.org Git - moodle.git/commitdiff
Accessibility: replaced <input type="submit"> with button-embedded image.
authornfreear <nfreear>
Wed, 8 Mar 2006 12:11:30 +0000 (12:11 +0000)
committernfreear <nfreear>
Wed, 8 Mar 2006 12:11:30 +0000 (12:11 +0000)
blocks/search_forums/block_search_forums.php
pix/em1_bwgreater.gif [new file with mode: 0644]

index deffb33031be500d78ea3cc552846daf8fad9a81..cf87a207ff0da127b68c7ffe4cee5b6c7633882c 100644 (file)
@@ -26,11 +26,12 @@ class block_search_forums extends block_base {
 
         $advancedsearch = get_string('advancedsearch', 'block_search_forums');
 
+        //Accessibility: replaced <input value=">" type="submit"> with button-embedded image.
         $this->content->text  = '<div class="searchform">';
         $this->content->text .= '<form name="search" action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
         $this->content->text .= '<input name="id" type="hidden" value="'.$this->instance->pageid.'" />';  // course
         $this->content->text .= '<input name="search" type="text" size="16" value="" alt="search" />';
-        $this->content->text .= '<input value=">" type="submit" /><br />';
+        $this->content->text .= '<button type="submit" title="'.get_string('search').'"><img src="'.$CFG->wwwroot.'/pix/em1_bwgreater.gif" alt="" class="resize" /><i class="accesshide">'.get_string('search').'</i></button><br />'; 
         $this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->instance->pageid.'">'.$advancedsearch.'</a>';
         $this->content->text .= helpbutton('search', $advancedsearch, 'moodle', true, false, '', true);
         $this->content->text .= '</form></div>';
diff --git a/pix/em1_bwgreater.gif b/pix/em1_bwgreater.gif
new file mode 100644 (file)
index 0000000..0e8c70a
Binary files /dev/null and b/pix/em1_bwgreater.gif differ