Copyright (C) 2005 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> 'committee_main.php', 'Administration' => 'admin/index.php') ); $querystr = "SELECT * FROM accounts ORDER BY username"; /* echo $querystr; echo "
\n"; echo "
\n"; */ $q = mysql_query($querystr); echo mysql_error(); echo "
\n"; $num = mysql_num_rows($q); echo i18n("Listing %1 account total.",array($num)); echo mysql_error(); echo ""; echo ""; echo ""; echo " "; echo " "; echo " "; echo " "; echo " "; // echo " "; echo ""; echo ""; echo ""; $tally = array(); $tally['active'] = array(); $tally['inactive'] = array(); $tally['active']['complete'] = 0; $tally['active']['incomplete'] = 0; $tally['active']['na'] = 0; $tally['inactive']['complete'] = 0; $tally['inactive']['incomplete'] = 0; $tally['inactive']['na'] = 0; while($r=mysql_fetch_assoc($q)) { // get the role data for this user echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; echo "
".i18n("Account ID")."".i18n("Username")."".i18n("Email Address")."".i18n("Pending Email")."".i18n("User Info")."".i18n("Actions")."
"; echo $r['id']; echo ""; echo $r['username']; echo ""; echo $r['email']; echo ""; echo $r['pendingemail']; echo ""; $u=user_load_by_accounts_id($r['id']); if($u) { //we can edit them even if they dont have any roles, duh echo ""; echo ""; if($u['firstname'] || $u['lastname']) { echo $u['firstname']." ".$u['lastname']; } else { echo i18n("No name specified"); } echo ""; echo ""; echo "
"; if(count($u['roles'])) { echo ""; foreach($u['roles'] AS $r=>$rd) { echo ""; if($rd['active']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; } echo ""; if($rd['complete']=="yes"){ $cl="happy"; $cls=""; } else { $cl="error"; $cls="not "; } echo ""; echo ""; } echo "
"; echo $rd['name']; echo "{$cls}active{$cls}complete
"; } else { echo "no roles"; } } else { echo "no user record for this conference. "; echo " click to join conference"; } echo "
"; send_footer(); ?>