2005-01-05 07:22:08 +00:00
|
|
|
<form name="personsearch" action="index.php" method="post">
|
2004-12-16 12:40:36 +00:00
|
|
|
<input type="hidden" name="tab" value="search" />
|
|
|
|
|
2004-12-28 13:49:15 +00:00
|
|
|
|
2005-01-02 14:33:17 +00:00
|
|
|
<table cellpadding="5" align="center" class="message_form">
|
2004-12-16 12:40:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
2005-01-03 10:49:40 +00:00
|
|
|
<td colspan="3" class="message_heading"><?php print_string('searchforperson', 'message') ?></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><?php print_string('name') ?>:</td>
|
2005-01-03 17:05:30 +00:00
|
|
|
<td><input type="text" name="name" size="16" alt="<?php print_string('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">
|
|
|
|
<input type="hidden" name="mycourses" value="0" />
|
|
|
|
<input type="checkbox" name="mycourses" alt="<?php print_string('onlymycourses', 'message') ?>" /><?php print_string('onlymycourses', 'message') ?></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr><td colspan="3"><hr /></td></tr>
|
|
|
|
|
2004-12-28 13:49:15 +00:00
|
|
|
|
2004-12-16 12:40:36 +00:00
|
|
|
<tr>
|
2005-01-03 10:49:40 +00:00
|
|
|
<td colspan="3" class="message_heading"><?php print_string('searchmessages', 'message') ?></td>
|
2004-12-16 12:40:36 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2004-12-28 13:49:15 +00:00
|
|
|
<td align="right"><?php print_string('keywords', 'message') ?>:</td>
|
2005-01-03 17:05:30 +00:00
|
|
|
<td><input type="text" name="keywords" size="16" alt="<?php print_string('keywords', 'message')?>" /></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">
|
|
|
|
<input type="hidden" name="includeblocked" value="0" />
|
|
|
|
<input type="checkbox" name="includeblocked" alt="<?php print_string('includeblockedusers', 'message') ?>" /><?php print_string('includeblockedusers', 'message') ?></td>
|
2004-12-28 13:49:15 +00:00
|
|
|
</tr>
|
|
|
|
|
2005-01-02 14:33:17 +00:00
|
|
|
<tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('onlytome', 'message') ?>" value="tome" checked="checked" /><?php print_string('onlytome', 'message') ?></td></tr>
|
|
|
|
<tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('onlyfromme', 'message') ?>" value="fromme" /><?php print_string('onlyfromme', 'message') ?></td></tr>
|
2005-01-03 12:16:06 +00:00
|
|
|
<tr><td> </td><td colspan="2"><input type="radio" checked="checked" name="keywordsoption" alt="<?php print_string('allmine', 'message') ?>" value="allmine" /><?php print_string('allmine', 'message') ?></td></tr>
|
2004-12-16 12:40:36 +00:00
|
|
|
|
2006-09-08 08:46:26 +00:00
|
|
|
<?php if (has_capability('moodle/site:readmessages', get_context_instance(CONTEXT_SYSTEM, SITEID))) { ?>
|
2005-01-02 14:33:17 +00:00
|
|
|
<tr><td> </td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('allusers', 'message') ?>" value="allusers" /><?php print_string('allusers', 'message') ?></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>
|