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' )); $_SESSION['last_page'] = 'committee_management'; ?> "; echo ""; echo "

".i18n("Add Committee")."

\n"; echo "
\n"; echo "\n"; echo ""; echo " \n"; echo "
".i18n("Committee Name").":
\n"; echo "
\n"; echo " "; echo "

".i18n("Add Committee Member")."

\n"; echo "
\n"; echo "\n"; echo "\n"; echo " \n"; echo "
".i18n("Member Name").": "; echo "\n"; echo "
\n"; echo "
\n"; echo ""; echo ""; echo "
"; echo "

".i18n("Committee Member Management")."

\n"; echo "
\n"; echo ""; echo ""; echo "
"; echo ""; echo ""; $q=mysql_query("SELECT * FROM users WHERE types LIKE '%committee%' ORDER BY firstname"); echo ""; echo ""; //The Assign Div echo "
"; echo i18n("To Committee").": "; $q=mysql_query("SELECT * FROM committees ORDER BY ord,name"); echo ""; echo "
"; //The Edit or Remove Div echo "
"; echo "
"; echo ""; echo "
"; $q=mysql_query("SELECT * FROM committees ORDER BY ord,name"); if(mysql_num_rows($q)) { echo "

".i18n("Committees")."

"; echo "
\n"; echo ""; echo ""; while($r=mysql_fetch_object($q)) { echo ""; echo "\n"; echo mysql_error(); while($r2=mysql_fetch_object($q2)) { echo ""; echo "\n"; } echo "\n"; } echo "\n"; echo "
".i18n("Public Email / Private Email")."
"; echo "id\" />"; echo "ord\" />"; echo "  $r->name"; $q2=mysql_query("SELECT users.id, users.firstname,users.lastname, users.email, users_committee.emailprivate, committees_link.title, committees_link.ord FROM users, users_committee, committees_link WHERE users_committee.users_id=users.id AND committees_link.users_id=users.id AND committees_link.committees_id='$r->id' ORDER BY ord,firstname"); if(mysql_num_rows($q2)==0) { echo "   "; echo "id\">\"Remove"; } echo "
    "; echo "id}\">\"Edit\""; echo " "; echo "id&unlinkcommittee={$r->id}\">\"Unlink\""; echo ""; $name = $r2->firstname.' '.$r2->lastname; echo " $name"; if($r2->title) echo " - $r2->title    "; echo ""; if($r2->email) { list($b,$a)=split("@",$r2->email); echo ""; } if($r2->emailprivate) { if($r2->email) echo " / "; list($b,$a)=split("@",$r2->emailprivate); echo ""; } echo "
 
"; echo "
\n"; } send_footer(); ?>