Skip to content

Commit

Permalink
Accessibility: replaced <input type="submit"> with button-embedded im…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
nfreear committed Mar 8, 2006
1 parent 9f79b50 commit 9252cbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/search_forums/block_search_forums.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ function get_content() {

$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>';
Expand Down
Binary file added pix/em1_bwgreater.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9252cbb

Please sign in to comment.