Patch for postgresql happiness
[moodle.git] / admin / creators.html
blob295b53d473e1ae0dfd43f5462fea45e6b3e2efbb
2 <form name="creatorsform" id="creatorsform" method="post" action="creators.php">
3 <input type="hidden" name="previoussearch" value="<?php echo $previoussearch ?>">
4 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
5 <table align="center" border="0" cellpadding="5" cellspacing="0">
6 <tr>
7 <td valign="top">
8 <?php echo count($creators) . " ". $strexistingcreators ?>
9 </td>
10 <td></td>
11 <td valign="top">
12 <?php echo $usercount . " " . $strpotentialcreators ?>
13 </td>
14 </tr>
15 <tr>
16 <td valign="top">
17 <select name="removeselect[]" size="20" id="removeselect" multiple
18 onFocus="document.creatorsform.add.disabled=true;
19 document.creatorsform.remove.disabled=false;
20 document.creatorsform.addselect.selectedIndex=-1;">
21 <?php
22 foreach ($creators as $creator) {
23 $fullname = fullname($creator, true);
24 echo "<option value=\"$creator->id\">".$fullname.", ".$creator->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="document.creatorsform.add.disabled=false;
39 document.creatorsform.remove.disabled=true;
40 document.creatorsform.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 <script>
60 function
61 </script>
62 <input type="text" name="searchtext" size="30" value="<?php echo $searchtext ?>"
63 onFocus ="document.creatorsform.add.disabled=true;
64 document.creatorsform.remove.disabled=true;
65 document.creatorsform.removeselect.selectedIndex=-1;
66 document.creatorsform.addselect.selectedIndex=-1;"
67 onkeydown = "var keyCode = event.which ? event.which : event.keyCode;
68 if (keyCode == 13) {
69 document.creatorsform.previoussearch.value=1;
70 document.creatorsform.submit();
71 } " />
72 <input name="search" id="search" type="submit" value="<?php p($strsearch) ?>"/>
73 <?php
74 if (!empty($searchusers)) {
75 echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
78 </td>
79 </tr>
80 </table>
81 </form>