Add ability to edit users from the account_list

TODO: force user to join a conference if they dont have a user record for the conference yet (then roles cna be added, like say, committee :p )
This commit is contained in:
james 2011-03-03 05:44:49 +00:00
parent f58e53cdb8
commit 04283b7383

View File

@ -59,7 +59,7 @@ if($_POST['show_types'])
echo " <th>".i18n("Username")."</th>";
echo " <th>".i18n("Email Address")."</th>";
echo " <th>".i18n("Pending Email")."</th>";
echo " <th>".i18n("Roles")."</th>";
echo " <th>".i18n("User Info")."</th>";
// echo " <th>".i18n("Actions")."</th>";
echo "</tr>";
echo "</thead>";
@ -93,6 +93,12 @@ if($_POST['show_types'])
echo "<td>";
$u=user_load_by_accounts_id($r['id']);
if($u) {
if(count($u['roles'])) {
echo "<b>";
echo "<a href=\"#\" onclick=\"return openeditor({$u['id']})\">";
echo $u['firstname']." ".$u['lastname'];
echo "</a>";
echo "</b>";
echo "<table>";
foreach($u['roles'] AS $r=>$rd) {
echo "<tr><td>";
@ -105,9 +111,12 @@ if($_POST['show_types'])
echo "</tr>";
}
echo "</table>";
} else {
echo "no roles";
}
}
else {
echo "no roles";
echo "no user record for this conference";
}
echo "</td>";
echo "</tr>";