forked from science-ation/science-ation
Add a link to reload list (we severly need to fix this whole page!)
Show email addresses in the management list as well, so when we add users and dotn give them names they wont just show blank.
This commit is contained in:
parent
ec5ab0a26b
commit
a4fbff953c
@ -227,13 +227,14 @@ if($_GET['unlinkmember'] && $_GET['unlinkcommittee'])
|
||||
echo "</td><td width=\"40\"> </td><td>";
|
||||
|
||||
echo "<h4>".i18n("Add Committee Member")."</h4>\n";
|
||||
echo "<form method=\"post\" name=\"addmember\" action=\"committees.php\">\n";
|
||||
echo "<form method=\"post\" name=\"addmember\" action=\"committees.php\" onsubmit=\"return neweditor();\">\n";
|
||||
echo "<table>\n";
|
||||
echo "<tr><td>".i18n("Member Email").": </td><td>";
|
||||
echo "<input type=\"text\" size=\"15\" name=\"add_member\" />\n";
|
||||
echo "</td>\n";
|
||||
echo " <td><input type=\"submit\" onclick=\"neweditor();\" value=\"".i18n("Add")."\" /></td></tr>\n";
|
||||
echo " <td><input type=\"submit\" onclick=\"return neweditor();\" value=\"".i18n("Add")."\" /></td></tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "<a href=\"committees.php\">".i18n("Reload committee list (needed after adding a new member)")."</a>\n";
|
||||
echo "</form>\n";
|
||||
|
||||
echo "</td></tr>";
|
||||
@ -253,17 +254,18 @@ if($_GET['unlinkmember'] && $_GET['unlinkcommittee'])
|
||||
echo "</select>";
|
||||
|
||||
echo "</td><td>";
|
||||
$q=mysql_query("SELECT uid,MAX(year),firstname,lastname,deleted FROM users WHERE types LIKE '%committee%' GROUP BY uid ORDER BY firstname");
|
||||
$q=mysql_query("SELECT uid,MAX(year),firstname,lastname,email,deleted FROM users WHERE types LIKE '%committee%' GROUP BY uid ORDER BY firstname");
|
||||
echo "<select name=\"users_uid\">";
|
||||
echo "<option value=\"\">".i18n("Select a Member")."</option>\n";
|
||||
while($r=mysql_fetch_object($q))
|
||||
{
|
||||
if($r->deleted != 'no') continue;
|
||||
$displayname = $r->firstname.' '.$r->lastname;
|
||||
echo "<option value=\"$r->uid\">$displayname</option>\n";
|
||||
echo "<option value=\"$r->uid\">$displayname ($r->email)</option>\n";
|
||||
}
|
||||
echo "</select>";
|
||||
|
||||
|
||||
echo "</td><td>";
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user