2007-01-04 21:32:36 +00:00
|
|
|
<form id="personsearch" action="index.php" method="post">
|
2008-05-02 05:15:26 +00:00
|
|
|
<div><input type="hidden" name="tab" value="search" /></div>
|
2004-12-16 12:40:36 +00:00
|
|
|
|
2004-12-28 13:49:15 +00:00
|
|
|
|
2008-05-02 05:15:26 +00:00
|
|
|
<table cellpadding="5" class="message_form boxaligncenter">
|
2004-12-16 12:40:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
2006-12-18 17:10:35 +00:00
|
|
|
<td colspan="3" class="message_heading"><?php print_heading(get_string('searchforperson', 'message')) ?></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-12-18 17:10:35 +00:00
|
|
|
<td align="right"><label for="name"><?php print_string('name') ?></label></td>
|
|
|
|
<td><input type="text" name="name" size="16" id="name" /></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
<td><input type="submit" name="personsubmit" value="<?php print_string('search') ?>" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2004-12-28 13:49:15 +00:00
|
|
|
<td> </td>
|
2004-12-31 20:02:45 +00:00
|
|
|
<td colspan="2">
|
2006-12-18 17:10:35 +00:00
|
|
|
<input type="checkbox" name="mycourses" id="mycourses" /><label for="mycourses"><?php print_string('onlymycourses', 'message') ?></label></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
</tr>
|
|
|
|
|
2006-12-18 17:10:35 +00:00
|
|
|
<tr><td colspan="3"></td></tr>
|
2004-12-16 12:40:36 +00:00
|
|
|
|
2004-12-28 13:49:15 +00:00
|
|
|
|
2004-12-16 12:40:36 +00:00
|
|
|
<tr>
|
2006-12-18 17:10:35 +00:00
|
|
|
<td colspan="3" class="message_heading"><?php print_heading(get_string('searchmessages', 'message')) ?></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-12-18 17:10:35 +00:00
|
|
|
<td align="right"><label for="keywords"><?php print_string('keywords', 'message') ?></label></td>
|
|
|
|
<td><input type="text" name="keywords" id="keywords" size="16" /></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
<td><input type="submit" name="keywordssubmit" value="<?php print_string('search') ?>" /></td>
|
|
|
|
</tr>
|
2004-12-28 13:49:15 +00:00
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td> </td>
|
2004-12-31 20:02:45 +00:00
|
|
|
<td colspan="2">
|
2006-12-18 17:10:35 +00:00
|
|
|
<input type="checkbox" name="includeblocked" id="includeblocked" /><label for="includeblocked"><?php print_string('includeblockedusers', 'message') ?></label></td>
|
2004-12-28 13:49:15 +00:00
|
|
|
</tr>
|
|
|
|
|
2006-12-18 17:10:35 +00:00
|
|
|
<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>
|
2004-12-16 12:40:36 +00:00
|
|
|
|
2008-05-02 04:37:02 +00:00
|
|
|
<?php if (has_capability('moodle/site:readallmessages', get_context_instance(CONTEXT_SYSTEM))) { ?>
|
2006-12-18 17:10:35 +00:00
|
|
|
<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>
|
2004-12-16 12:40:36 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
2004-12-28 13:49:15 +00:00
|
|
|
<?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>';
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
?>
|
2004-12-16 12:40:36 +00:00
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</form>
|