. */ include("./include/include.php"); include("./include/numparticipants_func.php"); admin_header(); if( !in_array("body_acceptparticipant", $_SESSION['sess_functions']) ) { echoln("You are not authorized to see this page."); }else { echoln("

Participant approval

"); if( isset($_GET['bodycode']) ) { // load data $query="SELECT `BodyName`, `BodyCategory`, `BodyCategoryOrder`, `BodyStatus`, `MemberClaimed`, `MemberClaimedBy`, `NoDelegates`, `NoEnvoys`, `NoVisitors`, `NoObservers` FROM `ab_bodies` WHERE `BodyCode`='".addslashes($_GET['bodycode'])."'"; if( @mysql_num_rows( $res=doquery($query) )==1 ) { $row = mysql_fetch_array($res); $_SESSION['body_BodyCode'] = $_GET['bodycode']; $_SESSION['body_BodyName'] = $row['BodyName']; $_SESSION['body_BodyCategory'] = $row['BodyCategory']; $_SESSION['body_BodyCategoryOrder'] = $row['BodyCategoryOrder']; $_SESSION['body_BodyStatus'] = $row['BodyStatus']; $_SESSION['body_MemberClaimed'] = $row['MemberClaimed']; $_SESSION['body_MemberClaimedBy'] = $row['MemberClaimedBy']; $nums = getParticipantNum($row); $_SESSION['body_NoDelegates'] = $nums['NoDelegates']; $_SESSION['body_NoEnvoys'] = $nums['NoEnvoys']; $_SESSION['body_NoVisitors'] = $nums['NoVisitors']; $_SESSION['body_NoObservers'] = $nums['NoObservers']; }else { echoln("Failed selecting body, please enter this page via the Address Book."); } } if( !isset($_SESSION['body_BodyCode']) ) { echoln("No body selected, please enter this page via the Address Book."); }else { include("./include/bodyedit.php"); } } admin_footer(); ?>