if (@unserialize($userinfo)) { $userinfo = @unserialize($userinfo); $account_purpose = $userinfo[0]; } else { $account_purpose = $userinfo; } $rejected = preg_match("/^Account rejected:/", $note); if ($rejected) { continue; } $table->addRow(array('<input type="checkbox" value="' . $handle . '" name="uid[]" onclick="return highlightAccountRow(this)"/>', sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $name), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $handle), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $account_purpose), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $rejected ? "rejected" : "<font color=\"#c00000\"><strong>Outstanding</strong></font>"), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', "<a onclick=\"event.cancelBubble = true\" href=\"{$self}?acreq={$handle}\">" . make_image("edit.gif") . "</a>"))); } } else { print "No account requests."; } $table->setAllAttributes('style="vertical-align: top;"'); echo $table->toHTML(); ?> <br /> <table align="center"> <tr> <td> <select name="reason"> <option value="">Select rejection reason...</option> <option value="Account not needed">Account not needed</option> </select> </td> <td><input type="submit" value="Reject selected accounts" onclick="return setCmdInput('reject')" /></td> </tr> <tr> <td> </td>