Merge branch 'MDL-25708' of git://github.com/stronk7/moodle
[moodle.git] / message / search_advanced.html
CommitLineData
c8621a02 1<form id="personsearch" method="post">
c8621a02
AD
2<div id="advancedcontactssearchspan">
3<table cellpadding="5" class="message_form mdl-left">
4 <tr>
08cd70cf 5 <td colspan="3" class="message_heading mdl-left"><div id="hideadvancedsearch" class="mdl-align"><a href="index.php?usergroup=<?php echo VIEW_SEARCH ?>" id="combinedcontactsearchlink"><?php print_string('hideadvanced','form') ?></a></div></td>
c8621a02
AD
6 </tr>
7 <tr>
8 <td colspan="3" class="message_heading mdl-left"><p class="heading"><?php echo get_string('searchforperson', 'message') ?></p></td>
9 </tr>
10 <tr>
11 <td><label for="name"><?php print_string('name') ?></label></td>
31da70cc 12 <td><input type="text" name="name" size="40" id="name" value="<?php p($personsearch) ?>" /></td>
a813a748 13 <td><input type="submit" name="personsubmit" value="<?php print_string('searchforperson','message') ?>" /></td>
c8621a02
AD
14 </tr>
15 <tr>
16 <td>&nbsp;</td>
17 <td colspan="2">
2c1aa960 18 <input type="checkbox" name="mycourses" id="mycourses" /><label for="mycourses"><?php print_string('onlymycourses', 'message') ?></label>
31da70cc 19 <input type="hidden" name="sesskey" value="<?php p(sesskey()); ?>" />
2c1aa960 20 </td>
c8621a02
AD
21 </tr>
22
23 <tr><td colspan="3"></td></tr>
24
25
26 <tr>
27 <td colspan="3" class="message_heading"><p class="heading"><?php echo get_string('searchmessages', 'message') ?></p></td>
28 </tr>
29 <tr>
30 <td><label for="keywords"><?php print_string('keywords', 'message') ?></label></td>
31da70cc 31 <td><input type="text" name="keywords" id="keywords" size="40" value="<?php p($messagesearch) ?>" /></td>
a813a748 32 <td><input type="submit" name="keywordssubmit" value="<?php print_string('searchmessages','message') ?>" /></td>
c8621a02
AD
33 </tr>
34
35 <tr>
36 <td>&nbsp;</td>
37 <td colspan="2">
38 <input type="checkbox" name="includeblocked" id="includeblocked" /><label for="includeblocked"><?php print_string('includeblockedusers', 'message') ?></label></td>
39 </tr>
40
41 <tr><td>&nbsp;</td><td colspan="2"><input type="radio" name="keywordsoption" id="keywordsoption1" value="tome" /><label for="keywordsoption1"><?php print_string('onlytome', 'message') ?></label></td></tr>
42 <tr><td>&nbsp;</td><td colspan="2"><input type="radio" name="keywordsoption" id="keywordsoption2" value="fromme" /><label for="keywordsoption2"><?php print_string('onlyfromme', 'message') ?></label></td></tr>
43 <tr><td>&nbsp;</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>
44
45 <?php if (has_capability('moodle/site:readallmessages', get_context_instance(CONTEXT_SYSTEM))) { ?>
46 <tr><td>&nbsp;</td><td colspan="2"><input type="radio" name="keywordsoption" id="keywordsoption4" value="allusers" /><label for="keywordsoption4"><?php print_string('allusers', 'message') ?></label></td></tr>
47 <?php } ?>
48
c8621a02
AD
49</table>
50</div>
51
52</form>