adding some strings
[moodle-linuxchix.git] / mod / forum / subscriber.html
blob3eb59d1a59f0889cccf5b6062d715d8a63da8975
2 <form id="subscriberform" method="post" action="subscribers.php">
3 <input type="hidden" name="previoussearch" value="<?php echo $previoussearch ?>" />
4 <input type="hidden" name="id" value="<?php echo $id?>" />
5 <table align="center" border="0" cellpadding="5" cellspacing="0">
6 <tr>
7 <td valign="top">
8 <?php echo count($subscribers) . " ". $strexistingsubscribers ?>
9 </td>
10 <td></td>
11 <td valign="top">
12 <?php echo $strpotentialsubscribers ?>
13 </td>
14 </tr>
15 <tr>
16 <td valign="top">
17 <select name="removeselect[]" size="20" id="removeselect" multiple
18 onFocus="getElementById('subscriberform').add.disabled=true;
19 getElementById('subscriberform').remove.disabled=false;
20 getElementById('subscriberform').addselect.selectedIndex=-1;">
21 <?php
22 foreach ($subscribers as $subscriber) {
23 $fullname = fullname($subscriber, true);
24 echo "<option value=\"$subscriber->id\">".$fullname.", ".$subscriber->email."</option>\n";
28 </select></td>
29 <td valign="top">
30 <br />
31 <input name="add" type="submit" id="add" value="&larr;" />
32 <br />
33 <input name="remove" type="submit" id="remove" value="&rarr;" />
34 <br />
35 </td>
36 <td valign="top">
37 <select name="addselect[]" size="20" id="addselect" multiple
38 onFocus="getElementById('subscriberform').add.disabled=false;
39 getElementById('subscriberform').remove.disabled=true;
40 getElementById('subscriberform').removeselect.selectedIndex=-1;">
41 <?php
42 if (!empty($searchusers)) {
43 echo "<optgroup label=\"$strsearchresults (" . count($searchusers) . ")\">\n";
44 foreach ($searchusers as $user) {
45 $fullname = fullname($user, true);
46 echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
48 echo "</optgroup>\n";
50 if (!empty($users)) {
51 foreach ($users as $user) {
52 $fullname = fullname($user, true);
53 echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
57 </select>
58 <br />
59 <input type="text" name="searchtext" size="30" value="<?php echo $searchtext ?>"
60 onFocus ="getElementById('subscriberform').add.disabled=true;
61 getElementById('subscriberform').remove.disabled=true;
62 getElementById('subscriberform').removeselect.selectedIndex=-1;
63 getElementById('subscriberform').addselect.selectedIndex=-1;"
64 onkeydown = "var keyCode = event.which ? event.which : event.keyCode;
65 if (keyCode == 13) {
66 getElementById('subscriberform').previoussearch.value=1;
67 getElementById('subscriberform').submit();
68 } " />
69 <input name="search" id="search" type="submit" value="<?php p($strsearch) ?>" />
70 <?php
71 if (!empty($searchusers)) {
72 echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
75 </td>
76 </tr>
77 </table>
78 </form>