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">
8 <?php
echo count($creators) . " ". $strexistingcreators ?>
12 <?php echo $usercount . " " . $strpotentialcreators ?>
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;">
22 foreach ($creators as $creator) {
23 $fullname = fullname($creator, true);
24 echo "<option value=\"$creator->id\">".$fullname.", ".$creator->email
."</option>\n";
31 <input name=
"add" type=
"submit" id=
"add" value=
"←" />
33 <input name=
"remove" type=
"submit" id=
"remove" value=
"→" />
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;">
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";
51 foreach ($users as $user) {
52 $fullname = fullname($user, true);
53 echo "<option value=\"$user->id\">".$fullname.", ".$user->email
."</option>\n";
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;
69 document.creatorsform.previoussearch.value=1;
70 document.creatorsform.submit();
72 <input name
="search" id
="search" type
="submit" value
="<?php p($strsearch) ?>"/>
74 if (!empty($searchusers)) {
75 echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";