when inserting 'Give Up' button, if site encoding is not iso-8859-1, then set page...
[moodle.git] / admin / creators.html
blob433042d28f85621c3af226c78b754b941b1f609a
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
9 $a->count = count($creators);
10 $a->items = $strexistingcreators;
11 print_string('counteditems', '', $a);
13 </td>
14 <td></td>
15 <td valign="top">
16 <?php
17 $a->count = $usercount;
18 $a->items = $strpotentialcreators;
19 print_string('counteditems', '', $a);
21 </td>
22 </tr>
23 <tr>
24 <td valign="top">
25 <select name="removeselect[]" size="20" id="removeselect" multiple
26 onFocus="document.creatorsform.add.disabled=true;
27 document.creatorsform.remove.disabled=false;
28 document.creatorsform.addselect.selectedIndex=-1;">
29 <?php
30 foreach ($creators as $creator) {
31 $fullname = fullname($creator, true);
32 echo "<option value=\"$creator->id\">".$fullname.", ".$creator->email."</option>\n";
36 </select></td>
37 <td valign="top">
38 <br />
39 <input name="add" type="submit" id="add" value="&larr;" />
40 <br />
41 <input name="remove" type="submit" id="remove" value="&rarr;" />
42 <br />
43 </td>
44 <td valign="top">
45 <select name="addselect[]" size="20" id="addselect" multiple
46 onFocus="document.creatorsform.add.disabled=false;
47 document.creatorsform.remove.disabled=true;
48 document.creatorsform.removeselect.selectedIndex=-1;">
49 <?php
50 if (!empty($searchusers)) {
51 echo "<optgroup label=\"$strsearchresults (" . count($searchusers) . ")\">\n";
52 foreach ($searchusers as $user) {
53 $fullname = fullname($user, true);
54 echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
56 echo "</optgroup>\n";
58 if (!empty($users)) {
59 foreach ($users as $user) {
60 $fullname = fullname($user, true);
61 echo "<option value=\"$user->id\">".$fullname.", ".$user->email."</option>\n";
65 </select>
66 <br />
67 <input type="text" name="searchtext" size="30" value="<?php p($searchtext) ?>"
68 onFocus ="document.creatorsform.add.disabled=true;
69 document.creatorsform.remove.disabled=true;
70 document.creatorsform.removeselect.selectedIndex=-1;
71 document.creatorsform.addselect.selectedIndex=-1;"
72 onkeydown = "var keyCode = event.which ? event.which : event.keyCode;
73 if (keyCode == 13) {
74 document.creatorsform.previoussearch.value=1;
75 document.creatorsform.submit();
76 } " />
77 <input name="search" id="search" type="submit" value="<?php p($strsearch) ?>"/>
78 <?php
79 if (!empty($searchusers)) {
80 echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";
83 </td>
84 </tr>
85 </table>
86 </form>