. */ if( !isset($_SESSION['sess_uid']) AND !isset($_SESSION['body_BodyCode']) ) { include("../include/header.php"); echo " You cannot call this file directly."; include("../include/footer.php"); exit; } if( !isset($setup['SetupEventType']) ) { exit(); } if( !is_before("EventDatePartTypeFix") ) { // Deadline passed, no access echoln("It is after the deadline, you cannot change the number of members for your body any more."); echoln("
As the selection of participants already started, which is based upon the number of members your local has, you cannot change this number any more. Also, keep in mind "); echoln("that this is the number of members you'll have to pay for at the Agora, and which is used to assign the amount of votes."); echoln("

Back"); }else { echoln("Back

"); echoln("

Edit the number of members for ".$Body[ $_SESSION['body_BodyCode'] ]."

"); echoln("The selection of visitors is based on the number of members a local has. The more members, the more visitor places you get. To have the accurate number of members of your local "); echoln("you have to fill it in here. Your name will be saved with the number of members."); echoln("
Warning: the number of members filled in here is the number of members you'll have to pay for at the Agora to AEGEE-Europe and the number of stickers to validate the "); echoln("membership cards you'll receive. The Juridical Commission will base the number of votes you receive upon this number. It is not possible to lower this number after the "); echoln("deadline (".$setup['EventDatePartTypeFix'].")!"); echoln("
You can change it until ".$setup['EventDatePartTypeFix']."."); $numclaimed = $_SESSION['body_MemberClaimed']; if( $_SERVER["REQUEST_METHOD"]=="POST" ) { if( get_int("MemberClaimed")<10 ) { echoln("

A local must have at least 10 members. Data not saved."); }else { if( isset($_POST['Agree']) ) { $query="UPDATE `ab_bodies` SET `MemberClaimed`=".addslashes(get_int("MemberClaimed")).", `MemberClaimedBy`='".addslashes(strlen($_SESSION['sess_name'])>0?$_SESSION['sess_name']:"Board")."', `MemberLastUpdate`='" . date("Y-m-d H:i:s") . "' WHERE `BodyCode`='".addslashes($_SESSION['body_BodyCode'])."'"; if( doquery($query) ) { echoln("

Number of members saved."); $_SESSION['body_MemberClaimed'] = get_int("MemberClaimed"); $_SESSION['body_MemberClaimedBy'] = $_SESSION['sess_name']; $_SESSION['body_MemberLastUpdate'] = date("Y-m-d H:i:s"); $numclaimed = get_int("MemberClaimed"); }else { echoln("

Failed saving number of members."); } }else { echoln("

You must agree to the agreement."); $numclaimed = get_int("MemberClaimed"); } } } echoln("

"); echoln(" "); echoln(" "); if( $_SESSION['body_MemberClaimed']>0 ) { echoln(" "); echoln(" "); echoln(" "); }else { echoln(" "); echoln(" "); echoln(" "); } echoln(" "); echoln(" "); echoln("
Current number of members:".$_SESSION['body_MemberClaimed']."
Filled in by:".$_SESSION['body_MemberClaimedBy']."
Last update:".$_SESSION['body_MemberLastUpdate']."
Current number of members:No info available
Filled in by: 
Last update: 
New number of members:
Filled in by:
"); echoln("
"); echoln("

  "); echoln("

"); } ?>