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") && $_POST['email'] && $type != '') { $newUser=user_invite($_POST['email'], null, $_POST['email'], $type); if(is_array($newUser)) { echo happy(i18n("%1 successfully invited to be a %2",array($_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 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 schools.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 participants have been invited from all school (you're a superuser!)")."

\n"; } else { echo "

".i18n("The following participants have been invited from your school")."

\n"; } echo "\n"; echo ""; if($_SESSION['superuser']=="yes") { echo ""; } echo ""; echo "\n"; while($r=mysql_fetch_object($q)) { echo ""; echo " "; echo " "; echo " "; echo " "; if($_SESSION['superuser']=="yes") { 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->schoolid)\">uninvite
\n"; send_footer(); ?>