forked from science-ation/science-ation
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:
parent
f58e53cdb8
commit
04283b7383
@ -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,21 +93,30 @@ if($_POST['show_types'])
|
||||
echo "<td>";
|
||||
$u=user_load_by_accounts_id($r['id']);
|
||||
if($u) {
|
||||
echo "<table>";
|
||||
foreach($u['roles'] AS $r=>$rd) {
|
||||
echo "<tr><td>";
|
||||
echo $rd['name'];
|
||||
echo "</td>";
|
||||
if($rd['active']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; }
|
||||
echo "<td class=\"$cl\">{$cls}active</td>";
|
||||
if($rd['complete']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; }
|
||||
echo "<td class=\"$cl\">{$cls}complete</td>";
|
||||
echo "</tr>";
|
||||
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>";
|
||||
echo $rd['name'];
|
||||
echo "</td>";
|
||||
if($rd['active']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; }
|
||||
echo "<td class=\"$cl\">{$cls}active</td>";
|
||||
if($rd['complete']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; }
|
||||
echo "<td class=\"$cl\">{$cls}complete</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
} else {
|
||||
echo "no roles";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
else {
|
||||
echo "no roles";
|
||||
echo "no user record for this conference";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
Loading…
Reference in New Issue
Block a user