MDL-21695 Replaced search.html without AMOScript, to be translated from scratch
This commit is contained in:
@@ -36,7 +36,7 @@ class block_search_forums extends block_base {
|
||||
'<input id="searchform_search" name="search" type="text" size="16" />';
|
||||
$this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />';
|
||||
$this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->page->course->id.'">'.$advancedsearch.'</a>';
|
||||
$this->content->text .= $OUTPUT->old_help_icon('search', $advancedsearch);
|
||||
$this->content->text .= $OUTPUT->help_icon('search');
|
||||
$this->content->text .= '</fieldset></form></div>';
|
||||
|
||||
return $this->content;
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
<h1>How to Search</h1>
|
||||
|
||||
<p>Full-text searching supports a number of options, listed below. You can combine
|
||||
these to specify your search more precisely.</p>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td valign="top"><strong>search for these words</strong></td>
|
||||
<td>For basic searching of one or more words anywhere in the texts, just type them separated by spaces. All words longer than two characters are used.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top"><strong>+search +for these words</strong></td>
|
||||
<td>The previous example would also match "information" because it contains "for". To force exact matching of a word, use the plus sign.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top"><strong>+search -engine</strong></td>
|
||||
<td>Use the minus sign if there are particular exact words you don't want included in the search.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top"><strong>"search engine"</strong></td>
|
||||
<td>To search for a particular phrase, use double quotes around it.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top"><strong>user:Kim</strong></td>
|
||||
<td>To search for texts by a particular user, prefix a word from their name with "user:".</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top"><strong>userid:6</strong></td>
|
||||
<td>If you know the user id of a particular user, you can search for them like this.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top"><strong>subject:assessment</strong></td>
|
||||
<td>To search for a word within the subject or title of a text only, prefix the word with "subject:".</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>For advanced searching, press the search button without typing anything in the words field - you will see
|
||||
a complete form that makes it easier to do advanced searches.</p>
|
||||
|
||||
+1
-1
@@ -1414,7 +1414,7 @@ $string['screenreaderno'] = 'No';
|
||||
$string['screenreaderuse'] = 'Screen reader';
|
||||
$string['screenreaderyes'] = 'Yes';
|
||||
$string['screenshot'] = 'Screenshot';
|
||||
$string['search'] = 'Search';
|
||||
$string['search'] = 'Search'; // TODO rename to searchforums and move to mod_forum
|
||||
$string['search_help'] = 'For basic searching of one or more words anywhere in the text, just type them separated by spaces. All words longer than two characters are used.
|
||||
|
||||
For advanced searching, press the search button without typing anything in the search box to access the advanced search form.';
|
||||
|
||||
+1
-1
@@ -3636,7 +3636,7 @@ function forum_search_form($course, $search='') {
|
||||
$output = '<div class="forumsearch">';
|
||||
$output .= '<form action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
|
||||
$output .= '<fieldset class="invisiblefieldset">';
|
||||
$output .= $OUTPUT->old_help_icon('search', get_string('search'));
|
||||
$output .= $OUTPUT->help_icon('search');
|
||||
$output .= '<label class="accesshide" for="search" >'.get_string('search', 'forum').'</label>';
|
||||
$output .= '<input id="search" name="search" type="text" size="18" value="'.s($search, true).'" alt="search" />';
|
||||
$output .= '<label class="accesshide" for="searchforums" >'.get_string('searchforums', 'forum').'</label>';
|
||||
|
||||
Reference in New Issue
Block a user