File: search.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (60 lines) | stat: -rw-r--r-- 2,907 bytes parent folder | download | duplicates (2)
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
59
60
<form name="personsearch" action="index.php" method="post">
<input type="hidden" name="tab" value="search" />


<table cellpadding="5" align="center" class="message_form">


    <tr>
        <td colspan="3" class="message_heading"><?php print_string('searchforperson', 'message') ?></td>
    </tr>
    <tr>
        <td align="right"><?php print_string('name') ?>:</td>
        <td><input type="text" name="name" size="16" alt="<?php print_string('name')?>" /></td>
        <td><input type="submit" name="personsubmit" value="<?php print_string('search') ?>" /></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <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>
    </tr>
    
    <tr><td colspan="3"><hr /></td></tr>


    <tr>
        <td colspan="3" class="message_heading"><?php print_string('searchmessages', 'message') ?></td>
    </tr>
    <tr>
        <td align="right"><?php print_string('keywords', 'message') ?>:</td>
        <td><input type="text" name="keywords" size="16" alt="<?php print_string('keywords', 'message')?>" /></td>
        <td><input type="submit" name="keywordssubmit" value="<?php print_string('search') ?>" /></td>
    </tr>
    
    <tr>
        <td>&nbsp;</td>
        <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>
    </tr>
    
    <tr><td>&nbsp;</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>&nbsp;</td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('onlyfromme', 'message') ?>" value="fromme" /><?php print_string('onlyfromme', 'message') ?></td></tr>
    <tr><td>&nbsp;</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>
    
    <?php if (isadmin()) { ?>
    <tr><td>&nbsp;</td><td colspan="2"><input type="radio" name="keywordsoption" alt="<?php print_string('allusers', 'message') ?>" value="allusers" /><?php print_string('allusers', 'message') ?></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 />&nbsp;&nbsp;&nbsp;'.$cs.'; </td></tr>';

*/

?>
    
</table>

</form>