forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
58 lines (43 loc) · 2.8 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<form id="personsearch" action="index.php" method="post">
<div><input type="hidden" name="tab" value="search" /></div>
<table cellpadding="5" class="message_form boxaligncenter">
<tr>
<td colspan="3" class="message_heading"><?php print_heading(get_string('searchforperson', 'message')) ?></td>
</tr>
<tr>
<td align="right"><label for="name"><?php print_string('name') ?></label></td>
<td><input type="text" name="name" size="16" id="name" /></td>
<td><input type="submit" name="personsubmit" value="<?php print_string('search') ?>" /></td>
</tr>
<tr>
<td> </td>
<td colspan="2">
<input type="checkbox" name="mycourses" id="mycourses" /><label for="mycourses"><?php print_string('onlymycourses', 'message') ?></label></td>
</tr>
<tr><td colspan="3"></td></tr>
<tr>
<td colspan="3" class="message_heading"><?php print_heading(get_string('searchmessages', 'message')) ?></td>
</tr>
<tr>
<td align="right"><label for="keywords"><?php print_string('keywords', 'message') ?></label></td>
<td><input type="text" name="keywords" id="keywords" size="16" /></td>
<td><input type="submit" name="keywordssubmit" value="<?php print_string('search') ?>" /></td>
</tr>
<tr>
<td> </td>
<td colspan="2">
<input type="checkbox" name="includeblocked" id="includeblocked" /><label for="includeblocked"><?php print_string('includeblockedusers', 'message') ?></label></td>
</tr>
<tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" id="keywordsoption1" value="tome" /><label for="keywordsoption1"><?php print_string('onlytome', 'message') ?></label></td></tr>
<tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" id="keywordsoption2" value="fromme" /><label for="keywordsoption2"><?php print_string('onlyfromme', 'message') ?></label></td></tr>
<tr><td> </td><td colspan="2"><input type="radio" checked="checked" name="keywordsoption" id="keywordsoption3" value="allmine" /><label for="keywordsoption3"><?php print_string('allmine', 'message') ?></label></td></tr>
<?php if (has_capability('moodle/site:readallmessages', get_context_instance(CONTEXT_SYSTEM))) { ?>
<tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" id="keywordsoption4" value="allusers" /><label for="keywordsoption4"><?php print_string('allusers', 'message') ?></label></td></tr>
<?php } ?>
<?php
/* Potential abuse problems - temporarily disabled
echo '<tr><td colspan="3"><input type="radio" name="keywordsoption" alt="'.get_string('allstudents', 'message').'" value="courseusers" />'.get_string('allstudents', 'message').'<br /> '.$cs.'; </td></tr>';
*/
?>
</table>
</form>