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("Username")."</th>";
echo " <th>".i18n("Email Address")."</th>"; echo " <th>".i18n("Email Address")."</th>";
echo " <th>".i18n("Pending Email")."</th>"; echo " <th>".i18n("Pending Email")."</th>";
echo " <th>".i18n("Roles")."</th>"; echo " <th>".i18n("User Info")."</th>";
// echo " <th>".i18n("Actions")."</th>"; // echo " <th>".i18n("Actions")."</th>";
echo "</tr>"; echo "</tr>";
echo "</thead>"; echo "</thead>";
@ -93,21 +93,30 @@ if($_POST['show_types'])
echo "<td>"; echo "<td>";
$u=user_load_by_accounts_id($r['id']); $u=user_load_by_accounts_id($r['id']);
if($u) { if($u) {
echo "<table>"; if(count($u['roles'])) {
foreach($u['roles'] AS $r=>$rd) { echo "<b>";
echo "<tr><td>"; echo "<a href=\"#\" onclick=\"return openeditor({$u['id']})\">";
echo $rd['name']; echo $u['firstname']." ".$u['lastname'];
echo "</td>"; echo "</a>";
if($rd['active']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; } echo "</b>";
echo "<td class=\"$cl\">{$cls}active</td>"; echo "<table>";
if($rd['complete']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; } foreach($u['roles'] AS $r=>$rd) {
echo "<td class=\"$cl\">{$cls}complete</td>"; echo "<tr><td>";
echo "</tr>"; 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 { else {
echo "no roles"; echo "no user record for this conference";
} }
echo "</td>"; echo "</td>";
echo "</tr>"; echo "</tr>";