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. */ ?> << ".i18n("Back to Administration")."\n"; ?> \n"; } */ //print_r($config); if($config['committees_executeonsave']) { echo happy(i18n("Executing:").$config['committees_executeonsave']); system($config['committees_executeonsave']); } echo happy(i18n("Committee member saved")); } if($_POST['action']=="edit") { $edit=$_POST['committees_members_id']; } if($_GET['edit'] || $edit) { if($_GET['edit']) $e=$_GET['edit']; else $e=$edit; $q=mysql_query("SELECT * FROM committees_members WHERE id='$e'"); $r=mysql_fetch_object($q); echo "

".i18n("Edit Committee Member")."

"; echo "<< ".i18n("Back to Committees Editor")."\n"; echo "
\n"; echo "\n"; echo ""; echo ""; echo ""; $cq=mysql_query("SELECT committees.name, committees.id, committees_link.title, committees_link.ord FROM committees,committees_link WHERE committees_link.committees_id=committees.id AND committees_link.committees_members_id='$e' ORDER BY committees.name"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if(auth_has_access("super")) { echo ""; echo ""; } echo "\n"; echo "
".i18n("Name").":name)."\" />
".i18n("Password").":password\" />
".i18n("Committees").":"; if(mysql_num_rows($cq)) { echo ""; echo ""; while($cr=mysql_fetch_object($cq)) { echo ""; } echo "
".i18n("Committee")."".i18n("Title in Committee")."".i18n("Order")."
$cr->nameid]\" value=\"$cr->title\" />id]\" value=\"$cr->ord\" size=\"3\" />
"; } else echo "None"; echo "
".i18n("Organization").":organization\" />
".i18n("Email (Public)").":email\" />
".i18n("Email (Private)").":emailprivate\" />
".i18n("Display Emails").":"; if($r->displayemail=="N") $checked="checked=\"checked\""; else $checked=""; echo "".i18n("No"); echo "     "; if($r->displayemail=="Y") $checked="checked=\"checked\""; else $checked=""; echo "".i18n("Yes"); echo "
".i18n("Phone (Home)").":phonehome\" />
".i18n("Phone (Work)").":phonework\" />
".i18n("Phone (Cell)").":phonecell\" />
".i18n("Fax").":fax\" />

".i18n("Access Controls").":"; if($r->access_admin=="Y") $checked="checked=\"checked\""; else $checked=""; echo " ".i18n("Administration")."
"; if($r->access_config=="Y") $checked="checked=\"checked\""; else $checked=""; echo " ".i18n("Configuration")."
"; if($r->access_super=="Y") $checked="checked=\"checked\""; else $checked=""; echo " ".i18n("Superuser")."
"; echo "
"; echo "

"; echo "\n"; echo "
\n"; echo "
\n"; } else { echo ""; echo ""; 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 "

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

\n"; echo "
\n"; echo ""; echo ""; echo "
"; echo ""; echo ""; $q=mysql_query("SELECT * FROM committees_members ORDER BY name"); 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 ""; 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 "
"; echo "id\" />"; echo "ord\" />"; echo "  $r->name"; $q2=mysql_query("SELECT ". "committees_members.id,". "committees_members.name,". "committees_members.email,". "committees_members.emailprivate,". "committees_link.title, ". "committees_link.ord ". "FROM committees_members, committees_link ". "WHERE committees_link.committees_members_id=committees_members.id ". " AND committees_link.committees_id='$r->id'". " ORDER BY ord,name"); if(mysql_num_rows($q2)==0) { echo "   "; echo "id\">\"Remove"; } echo "
    "; echo "id\">\"Edit\""; echo " "; echo "id&unlinkcommittee=$r->id\">\"Unlink\""; echo ""; echo " $r2->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(); ?>