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' ) ); ?> "; if( ($_POST['action']=="invitenew" || $_POST['action']=="inviteexisting") && trim($_POST['email']) && $type != '') { $newUser=user_invite(trim($_POST['email']), null, trim($_POST['email']), $type); if(is_array($newUser)) { echo happy(i18n("%1 successfully invited to be a %2",array(trim($_POST['email']),$type))); } else { echo error($newUser); } } echo "
\n"; echo "\n"; echo ""; /* echo ""; */ echo "
"; echo i18n("Select a Role: "); echo "
"; echo i18n("Enter an Email: "); echo ""; echo "
"; echo "
\n"; echo "
".i18n('Enter an email address')."
"; echo "
\n"; echo "\n"; echo "
\n"; if($_SESSION['superuser']=="yes") { $q=mysql_query("SELECT users.id, users.firstname, users.lastname, accounts.username, accounts.email, accounts.pendingemail, users.schools_id, schools.school, schools.conferences_id FROM users LEFT JOIN schools ON users.schools_id=schools.id JOIN accounts on users.accounts_id=accounts.id JOIN user_roles ON user_roles.users_id=users.id JOIN roles ON user_roles.roles_id=roles.id AND users.conferences_id='{$conference['id']}' AND roles.type='participant'"); } else { $q=mysql_query("SELECT users.id, users.firstname, users.lastname, accounts.username, accounts.email, accounts.pendingemail FROM users JOIN accounts on users.accounts_id=accounts.id JOIN user_roles ON user_roles.users_id=users.id JOIN roles ON user_roles.roles_id=roles.id WHERE schools_id='$schoolid' AND conferences_id='{$conference['id']}' AND roles.type='participant'"); } echo mysql_error(); echo "
"; echo "
"; if($_SESSION['superuser']=="yes") { echo "

".i18n("The following %1 participants have been invited from all schools (you're a superuser!)",array(mysql_num_rows($q)))."

\n"; } else { echo "

".i18n("The following %1 participants have been invited from your school",array(mysql_num_rows($q)))."

\n"; } echo "\n"; echo ""; echo ""; if($_SESSION['superuser']=="yes") { echo ""; } echo ""; echo "\n"; echo ""; echo ""; while($r=mysql_fetch_object($q)) { echo ""; echo " "; echo " "; echo " "; echo " "; if($_SESSION['superuser']=="yes") { echo ""; } echo " "; echo ""; } echo ""; echo "
UsernameEmail AddressFirst NameLast NameSchoolActions
$r->username"; if($r->email) { echo "$r->email"; } else if($r->pendingemail) { echo "$r->pendingemail"; } echo "$r->firstname$r->lastname$r->school"; if($r->conferences_id!=$conference['id'] && $r->schools_id) echo error("invalid school for this conference"); echo "id)\">uninvite
\n"; send_footer(); ?>