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">
8 <?php
echo count($subscribers) . " ". $strexistingsubscribers ?>
12 <?php echo $strpotentialsubscribers ?>
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;">
22 foreach ($subscribers as $subscriber) {
23 $fullname = fullname($subscriber, true);
24 echo "<option value=\"$subscriber->id\">".$fullname.", ".$subscriber->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=
"getElementById('subscriberform').add.disabled=false;
39 getElementById('subscriberform').remove.disabled=true;
40 getElementById('subscriberform').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";
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;
66 getElementById('subscriberform').previoussearch.value=1;
67 getElementById('subscriberform').submit();
69 <input name
="search" id
="search" type
="submit" value
="<?php p($strsearch) ?>" />
71 if (!empty($searchusers)) {
72 echo '<input name="showall" id="showall" type="submit" value="'.$strshowall.'" />'."\n";